Add flow cadence lint
command
#1395
Labels
Feature
A new user feature or a new package API
Improvement
Technical work without new features, refactoring, improving tests
Instructions
Please fill out the template below to the best of your ability.
Issue To Be Solved
Currently, the Cadence linter is only really surfaced through the language server & adjacent tools (VSCode extension, playground). It is a valuable static-analysis tool which could be a part of automation processes and developers may want to run it independently (outside of integration with the aforementioned tooling).
We should surface this as a command in the Flow CLI so that developers can enforce better standards within their Cadence code and catch errors earlier in their development cycle.
(Optional): Suggest A Solution
Add a
flow cadence lint <files>
command which runs all linting analyzers as and surfaces these to the output. The command should also attempt to surface any parsing/checking errors in a structured format.(Optional): Context
This relates to efforts related to Cadence 1.0 and helps developers understand if problems exist in their code, what these problems are, and how they can attempt to mediate them.
related: onflow/cadence-tools#285
The text was updated successfully, but these errors were encountered: