onflow / cadence-tools

Developer tools for Cadence
https://www.onflow.org/
Apache License 2.0
24 stars 20 forks source link

[lint] Add Cadence 1.0 analyzer with basic linting rules #285

Closed jribbink closed 6 months ago

jribbink commented 7 months ago

Closes #287

Description

This PR adds a cadence 1.0 analyzer with initial linting rules which identify some instances of pre-Cadence 1.0 code. These diagnostics will display more verbose errors than syntax errors reported by the checker or lexical errors reported by the parser, potentially provide automatic fixes, as well as direct users to relevant documentation regarding how to upgrade their code.

This PR depends on the 2 following PRs:

and will not be valid until these PRs are merged & this PR is updated to the latest version of Cadence