lint command
Report bug-prone, obsolescent and non-portable Fortran constructs and parallel-code defects (OpenMP, OpenACC, MPI).
bash
fobis lint [PATHS...] [options]How to use it, with examples: Code quality.
All options
Arguments: PATHS...
| Option | Value | Default | Description |
|---|---|---|---|
--fobos, -f | TEXT | Specify a "fobos" file named differently from "fobos" | |
--fci | Assume fobos inputs as case insensitive | ||
--mode | TEXT | Select a mode defined into a fobos file | |
--src, -s | TEXT | Root-directory of source files [default: ./] | |
--select | TEXT | Rule ids or prefixes to run (repeatable, comma-separated; 'ALL' for every rule). Replaces the default set. | |
--ignore | TEXT | Rule ids or prefixes to skip (repeatable, comma-separated). | |
--format | TEXT | text | Output format: text, json, sarif or github. |
--baseline | TEXT | Baseline file: findings recorded there are not reported. | |
--update-baseline | Record all current findings into the baseline file and exit. | ||
--compiler-feedback | TEXT | Build log with compiler optimisation reports (nvfortran -Minfo, gfortran -fopt-info); '-' reads stdin. | |
--diff | Print the automatic fixes as a unified diff; change nothing. | ||
--fix | Apply the automatic fixes to the files, then report what remains. | ||
--exit-zero | Exit 0 even when findings are reported. | ||
--list-rules | List every rule and exit. | ||
--explain | TEXT | Explain a rule (by id) and exit. | |
--deep | Review the findings with the LLM, region by region: a cited verdict per finding (confirmed, dismissed, uncertain) and advisory concerns. Nothing is hidden; the exit status is unchanged. | ||
--deep-max | INTEGER | 10 | Review at most this many regions (most severe first). |
--deep-context | With --deep or --ask: print what the model would receive, run no model. | ||
--ask | TEXT | Ask a question about the code around FILE:LINE (given as the path), answered with citations. | |
--varset | TEXT | Apply one or more [varset:NAME] sections' $variable bindings before linting. |