solhint
solhint copied to clipboard
Solhint is an open-source project to provide a linting utility for Solidity code.
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1. Changelog Sourced from y18n's changelog. Change Log All notable changes to this project will be documented in this file. See standard-version for commit guidelines....
Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1. Changelog Sourced from y18n's changelog. Change Log All notable changes to this project will be documented in this file. See standard-version for commit guidelines....
Take the following code snippet: ```solidity function isPowerOfTen(uint256 x) external view returns (bool result) { assembly { switch x case 1 { result := true } case 10 { result...
Solidity greater than 0.7.4 allows you to have file-level function definitions. Solidity forces you not to give them a `visibility modifier` because they are always `pure` by default. `solhint` still...
https://github.com/prettier-solidity/prettier-plugin-solidity/issues/427
```solidity contract C { function foo(address payable /* addr */) public view { this; } } ``` This contract triggers `Variable "payable" is unused` however payable is not a variable.
Some file is importing something from some test file. This means that we have to include the test directory in the published package, but besides that it's just a bad...
A rule for warning/error about any unused imports.
Requesting new rule to be added to solhint that's similar to `no-unused-vars` but for `no-unsed-functions` and it would look at all functions that are **not** `virtual` and thus should really...
See https://github.com/protofire/solhint/pull/253#issuecomment-709377691