lint
pants lint [args]
Run linters/formatters/fixers in check mode.
This goal runs tools that check code quality/styling etc, without changing that code. This includes running formatters and fixers, but instead of writing changes back to the workspace, Pants treats any changes they would make as a linting failure.
See also:
-
[The
fmt
goal](https://www.pantsbuild.org/2.26/reference/goals/fix will save the the result of formatters (code-editing tools that make only "syntactic" changes) back to the workspace. -
[The
fmt
goal](https://www.pantsbuild.org/2.26/reference/goals/fix will save the the result of fixers (code-editing tools that may make "semantic" changes too) back to the workspace. -
Documentation about linters for various ecosystems, such as: Python, Go, JVM, Shell, Docker.
Backend: pants.core
Config section: [lint]