fortran-linter
fortran-linter copied to clipboard
Allow certain rules to be deactivated
It would be great to be able to deactivate certain rules (similarly to how flake8 rules can be deactivated).
+1 to this. The usual method is to have a .fortran-format.yaml where you read the rules you want to add/remove. Maybe check cmake-format for some tips.
Some implementation notes:
- Split the fortran-format from fortran-lint. E.g. comment formatting would be in fortran-format not in the latter
- Read a
.fortran-format.yaml(or json, or etc.) for the default format/lint rules of the project - For fortran-format:
- Add regex syntax to ignore a comment block. (
cmake-formatreference - Toggle off parsing for first comment block. This is usually a copyright header.
- Add regex syntax to ignore a comment block. (
- For fortran-lint:
- Maybe coordinate with
flintto codify the naming - Disable linting if a
fortran-lint on/offblock is defined (likeclang-format) or if a specific lint command is specified (likeclang-tidy)
- Maybe coordinate with