Skip to content

Add support for running with JBang#2

Open
koppor wants to merge 4 commits into
adr:mainfrom
koppor:add-jbang
Open

Add support for running with JBang#2
koppor wants to merge 4 commits into
adr:mainfrom
koppor:add-jbang

Conversation

@koppor

@koppor koppor commented Apr 28, 2026

Copy link
Copy Markdown
Member

This enables jbang madrlint@koppor/madrlint

All *.java has to be enumerated because of jbangdev/jbang#2452

use:

$  jbang madrlint.java --help
Usage: madrlint [-hOqV] [-n <ruleNumber>[,ruleNumber...]>] [-o <outputFile>] <madrFile>
Lint MADR files
      <userPath>           Path to MADR document.
  -h, --help               Show this help message and exit.
  -n, --no-warn=<disabledRules>[,<disabledRules>...]
                           Disable warnings for certain rules. They can either
                             be declared separately(e.g -n1 -n2) or chained
                             together separated by comma(e.g -n1,2)
  -o, --out=<outputFile>   Output the diagnostics to a file. If that file does
                             not exist, it will be created.
  -O, --override           If the given output file already exists, it will be
                             overwritten.
  -q, --quiet              Information not relevant to the lint results will be
                             suppressed.
  -r, --root=<root>        Set the root directory of the project. Defaults to
                             current working directory if not specified.
  -V, --version            Print version information and exit.

@koppor

koppor commented Apr 28, 2026

Copy link
Copy Markdown
Member Author

Also enables jbang madrlint@koppor/madrlint --> needs to be adapted after merge -- repo should be moved to https://github.com/adr eventually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant