hirosystems / clarinet

Write, test and deploy high-quality smart contracts to the Stacks blockchain and Bitcoin.
https://hiro.so/clarinet
GNU General Public License v3.0
307 stars 141 forks source link

Improve clarinet's clarity linter #1105

Open smcclellan opened 1 year ago

smcclellan commented 1 year ago

Linting rules can be configured to be “off”, “info”, “warning” or “error”. Default value is indicated here between parenthesis.

obycode commented 6 months ago

We could also add a check for a function that is defined as public but could be readonly. It should always be preferred to make the function read-only if it doesn't need to modify any state so that it is clear that it can be called via the API.