question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

solhint error/wraning not showing up

See original GitHub issue

I wanted to switch to solhint for linting my code but vscode-solidity does not show any error or warning when I configure solhint via “solidity.linter” : “solhint” config.

When I run solhint via

solhint -f table src/**/*.sol

it shows a lot of warning and errors

Also when I use solium, it shows the error correctly

What can be wrong ?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jjgonecryptocommented, Apr 22, 2020

Hmmm - I’m on 0.0.72 now and the plugin is still not adhering to solhint:recommended items… For instance if you checkout our code (https://github.com/Synthetixio/synthetix), npm install, then lookup contracts/LimitedSetup.sol in VSCode say, you won’t see warnings. Yet if you run npx solhint contracts/*.sol you’ll see state-visibility warnings. If you add "state-visibility": "warn" to .solhint.json then the warnings come up in vscode as expected.

1reaction
juanfranblancocommented, Nov 7, 2019

@justinjmoses thanks for that, ill put that in the next release. The expectation is to have just the rules: https://github.com/juanfranblanco/vscode-solidity/blob/master/src/linter/solhint.ts#L66-L71

Read more comments on GitHub >

github_iconTop Results From Across the Web

solhint
Start using solhint in your project by running `npm i solhint`. There are 45 other projects in the npm registry using solhint.
Read more >
Solhint - GitHub Pages
Solhint is an open source project created by https://protofire.io. Its goal is to provide a linting utility for Solidity code.
Read more >
Solhint-Prettier Plugin - Static Analysis Tools
The Solhint Prettier plugin allows you to connect the Prettier formatting rules to the Solhint linter. Used as a Solidity linter, Solhint detects...
Read more >
Intro to Solidity Linting and Formatting
A developer workflow for Solhint, Prettier-Solidity and Git Hooks. ... This tutorial goes over one of the many ways to set them up....
Read more >
solhint-plugin-prettier - npm package
All security vulnerabilities belong to production dependencies of direct and indirect packages. License: MIT. Security Policy: No. We found ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found