You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CLS/chplcheck: Support editor agnostic configuration files (#26978)
This PR expands the existing support for using ConfigArgParse to allow
for editor-agnostic configuration files. This allows users to specify
options for their project in an editor-agnostic way, and then allow
CLS/chplcheck to auto-pick them up.
This also integrates nicely with Mason, allowing users to specify
CLS/chplcheck options in a Mason.toml file. For example
```toml
[brick]
...
[tool.chplcheck]
disable-rule = ["UnusedLoopIndex"]
```
This PR also expands the options for chplcheck, allowing the following
```toml
...
[tool.chplcheck]
file = ["src/*.chpl"]
add-rules = ["lint/rules.py"]
disable-rule = ["IncorrectIndentation"]
```
This lets users specify all the options needed in 1 file, and then from
the project root running just `chplcheck` does the right thing
This PR also adds the -M/--module-dir options to CLS, allowing users to
add a few paths to the module search path instead of needing a full
.cls-commands file. This also includes adding an internal, developer
only, ability to set the root directory for standard modules.
- [x] paratest with/without gasnet
[Reviewed by @DanilaFe]
METHOD(Context, _set_module_paths, "Set the module path arguments to the given lists of module paths and filenames, using a potentially different module root",
0 commit comments