solhint icon indicating copy to clipboard operation
solhint copied to clipboard

make --quiet option work for all files

Open scott-silver opened this issue 3 years ago • 0 comments

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 error and one warning.

If you run solhint contract/**/*.sol, you'll see all errors and warnings:

Screen Shot 2021-12-28 at 5 18 45 PM

But if you run solhint --quiet contract/**/*.sol, you'll see all errors for the first file (Greeter.sol) and errors+warnings for the other two files:

Screen Shot 2021-12-28 at 5 19 00 PM

Presumably, the preferred behavior is to hide warnings for all files:

Screen Shot 2021-12-28 at 5 19 48 PM

This patch hides warnings for all files when the --quiet flag is passed.

scott-silver avatar Dec 29 '21 01:12 scott-silver