Skip to main content
Version: 2024.41.17

aspect lint

Run configured linters over the dependency graph.

Synopsis

Run linters and collect the reports they produce.

To setup linters, see the documentation on https://github.com/aspect-build/rules_lint

In addition to flags listed below, flags accepted by the 'bazel build' command are also accepted.

aspect lint <target patterns> [flags]

Options

      --diff      Show unified diff instead of diff stats for fixes
--fix Auto-apply all fixes
--fixes Request fixes from linters (where supported) (default true)
-h, --help help for lint
--machine Request machine readable lint reports from linters (where supported)
--report Request lint reports from linters (default true)

Options inherited from parent commands

      --aspect:config string   User-specified Aspect CLI config file. /dev/null indicates that all further --aspect:config flags will be ignored.
--aspect:interactive Interactive mode (e.g. prompts for user input)

SEE ALSO