aptos-core icon indicating copy to clipboard operation
aptos-core copied to clipboard

[compiler-v2] Add `--lint` flag to CLI

Open wrwg opened this issue 6 months ago • 0 comments

Add a flag --lint to the CLI which enables linting with the rules which we have enabled for release.

The flag should error if compiler v2 is not selected either via the direct flag --move-2 or via --compiler-version.

The linting pass can run the regular compiler with linting experiment on and stop not before all other phases which produce error or warnings, but can skip codegen.

@vineethk for updating this as needed, bug unassigned for now.

We also need to make sure that the lint warnings are disabled for aptos-framework and stdlib until they are all fixed.

wrwg avatar Aug 21 '24 02:08 wrwg