← Tools

cpl lint

warn about code that is legal but probably wrong or slow

usage: cpl lint [--fix] [--taste] [path]...

Reports code that is legal but probably wrong, slow or unidiomatic. A
directory stands for every .cp file under it; no path at all means the
current directory. Levels come from [lints] in the nearest cp.toml and
from @allow(name) on an item.

options:
  --fix     apply the fixes that are safe to apply, then report what is left
  --taste   only the taste lints (L05xx, the plan/PORTING.md checklist):
            a line per file with findings, then the total by lint
  --list    print every lint with its code and default level

Generated from cpl 0.2.2 (dev, a0d0078e).