solhint icon indicating copy to clipboard operation
solhint copied to clipboard

Solhint is an open-source project to provide a linting utility for Solidity code.

Results 127 solhint issues
Sort by recently updated
recently updated
newest added

Currently, the `--quiet` option only applies to the first file evaluated by solhint. Say you have a directory with three contracts: `contracts/Greeter.sol`, `contracts/Greeter2.sol` and `contracts/Greeter3.sol`. All three contracts have one...

When I run `solhint` directly, I get this error: ``` node:internal/fs/utils:344 throw err; ^ Error: EISDIR: illegal operation on a directory, read at Object.readSync (node:fs:723:3) at tryReadSync (node:fs:433:20) at Object.readFileSync...

Using the SolHint plugin for Remix, I get `Error: Parse error: missing ';' at '{'` with the following code, at the line marked `// (*)`: ``` unchecked { // (*)...

hey setting `ignoreConstructors` to `true` still gives the warning ![image](https://user-images.githubusercontent.com/39130640/143687537-2ce90a69-f29d-4f33-99cc-ea8a97459568.png)

hi. installing solhint globally and running `--init` creates a config file but installing it as a local dependency and running `npx solhint --init` says unknown options ![image](https://user-images.githubusercontent.com/39130640/143686952-fdba49a9-78f0-4a36-8f38-b6eafb3524f5.png)

Hi, solhint formatter just crashed on my one of my contracts. See the minimal example below to reproduce: ```solidity //SPDX-License-Identifier: Unlicense pragma solidity ^0.8.9; contract TestDecoder { function decodeNestedArray(bytes calldata...

Yul doesn't have `while` loops, only `for`, which to emulate `while` needs to contain empty blocks: ```solidity assembly { for {} /*while_condition*/ {} { ... } } ``` These empty...

Is there a way to avoid a warning for this specific case? I believe it is currently the recommended way to transfer funds. `(bool succeed, ) = _address.call{value: _amount}("");`

To reproduce: Test.sol ``` fallback() external payable { } ``` .solhint.json ``` { "extends": "solhint:recommended", "rules": { "func-visibility": ["warn", { "ignoreConstructors": true }], } } ``` output: ``` /Users/t/Test.sol 4:5...

Hey I just wanted to point out that in the documentation of your tool you don't mention the json output format (which is the most useful one). I though it...