Skip to content

modernize command ​

Apply the automatic lint fixes in a scratch copy and keep them only when build, tests and cases show they changed nothing.

bash
fobis modernize [options]

How to use it, with examples: Code quality.

All options ​

OptionValueDefaultDescription
--selectTEXTFixable rules to apply (repeatable or comma-separated) [default: all fixable].
--applyWrite the verified fixes into the working tree.
--unverifiedWith --apply: accept a build as the only check (no tests, no cases).
--keepKeep the scratch copies (path printed).
--fobos, -fTEXTSpecify a "fobos" file named differently from "fobos"
--fciAssume fobos inputs as case insensitive
--modeTEXTSelect a mode defined into a fobos file
--jsonEmit structured JSON to stdout instead of human-readable output (useful for scripting / agents)