solhint
solhint copied to clipboard
Solhint is an open-source project to provide a linting utility for Solidity code.
I think there is a false positive with the `gas-struct-packing` rule when using contract types. Here is the MRE: ```solidity pragma solidity 0.8.24; contract Bar {} contract Foo { //...
When developing smart contracts in Solidity, it is a common convention to write event names in CapWord style (also known as PascalCase), such as BeforeTransfer, AfterTransfer, etc., as per Solidity...
Hello I found several spelling issues in your docs. Glad I could help. Br, Elias.
[pre-commit](https://pre-commit.com/) became pretty popular as framework to combine linters / code-formatters via [hooks](https://pre-commit.com/hooks.html) across different languages. It can be enabled as actual git hook or just used by running `pre-commit...
**Context:** Solidity developers often make the mistake of assigning or comparing addresses to the zero address (`0x0000000000000000000000000000000000000000`). This can lead to vulnerabilities and bugs in smart contracts. **Suggestion:** Implement a...
I'd like to suggest a new rule to catch when something is imported twice in a Solidity file, example below. File `./Imported.sol`: ```solidity contract Imported {} ``` File `./Contract.sol`: ```solidity...