Solhint did nothing
AlexMerigot opened this issue · 2 comments
I installed solhint et did "solhint --init"
I filled my .solhint.json with :
{
"extends": "solhint:recommended",
"rules": {
"compiler-version": ["error", "^0.8.0"],
"func-visibility": ["warn", {"ignoreConstructors": true}]
}
}
my package.json :
{
"devDependencies": {
"@nomiclabs/hardhat-solhint": "^3.0.0",
"hardhat": "^2.13.0",
"hardhat-gas-reporter": "^1.0.9"
},
"dependencies": {
"@nomiclabs/hardhat-etherscan": "^3.1.7",
"dotenv": "^16.0.3"
}
}
I test :
"yarn solhint contracts*.sol"
"solhint contracts*.sol"
result :
"yarn run v1.22.19
warning package.json: No license field
Done in 0.40s."
I just write mistake in my code to test solhint "uint256 test;" but nothing happened.
What did I forgot ?
Please provide following information:
What is the path of the contract ?
What is the contract name ?
If there are many, please post the file structure here
Did you verify that it was installed correctly ?
solhint --version
Closed due to lack of user feedback
New version is released
Feel free to comment if you have any issue