Open Jaime-Iglesias opened 4 years ago
@juanfranblanco friendly ping
I wonder if it's related to - https://github.com/juanfranblanco/vscode-solidity/issues/169
Sorry I did not see this, actually the extension defaults to the recommended options, it might be a versioning issue, the extension is using 2.3.1.
@juanfranblanco I did some further testing and it does not seem to be related to the solhint
version. Linting manually keeps on giving the correct warnings while the extension indicates no problems.
hmm interesting it might be related, it should have picked the other warnings as it defaults to recommended. This used to work before, so it might have been a change.
It appears that this plugin does not work with solhint 0.3.x?
@petejkim it works now as this extension is using solhint 3.4.0 (at the time of writing), but maybe when you wrote your comment it was still using 2.x.x version.
Linting the following code:
Test with
default
linting options:npx solhint ...
does not report any error either.Test with
recommended
linting options:npx solhint...
does report errors:From what I can gather from some tests I've performed, the
.solhint.json
is being read by the extension, for example if I change the pragma to0.6.3
the rulecompiler-version
is enforced (both indefault
and inrecommended
). Also, thesettings.json
from the extension is being read since if I use thesha3
function the ruleavoid-sha3
gets triggered (also in both cases)