Comments (5)
Hello @avinashmaheshjoshi. There's no way right now to do this, except using the workaround that @hiqua mentioned. And since solhint is a linter, I don't think this feature would make sense. Either something is a warning or an error, or it isn't.
It would be nice to have a different tool to do this, though. The code that does this is not too complex. Look at lib/rules/best-practises/code-complexity
if you want to give it a shot.
from solhint.
If you use:
{
"rules": {
"code-complexity": ["warn", 0.5]
}
}
then at least you will obtain the complexities for all the functions. You would have to parse the output to compute a proper report from this.
from solhint.
I think it should be considered to be built into the linter. The team will take a look at it.
BTW, pls feel free to contribute with your PRs
from solhint.
One could argue that it still belongs there, as part of a general report about the code quality, cf pylint as an example of a linter that goes a bit beyond warnings or errors (e.g. it can grade Python code).
from solhint.
Closing this since we probably won't do this.
from solhint.
Related Issues (20)
- The `--fix` option not working HOT 1
- restore 'compact' formatter HOT 2
- No Unused Imports Rule false positives HOT 1
- the reentrancy rules is out-of-date HOT 1
- The `var-name-mixedcase` rule triggers when using `$` as a variable name HOT 1
- Default is not catching any errors. HOT 4
- Setup solhint to fail github CI on any warning with `--max-warnings 0` HOT 4
- dynamic loading of rules breaks bundlers HOT 3
- New rule `func-named-parameters` enforced on built-in functions HOT 9
- Enforce underscore for internal or private functions HOT 1
- Low sensitivity of explicit-types HOT 3
- Can't install solhint through yarn/npm package manager HOT 2
- "no-empty-blocks": ["error", { "ignoreConstructors": true }] not working HOT 6
- e2e tests to fixable rules and store report to file (?)
- Make custom-errors rules check only from version it appearead HOT 1
- Allow Solhint report to be exported to file HOT 1
- The comprehensive-interface rule results in compiler warning: Interface functions are implicitly "virtual" HOT 7
- Add an official docker image for solhint HOT 3
- private-vars-leading-underscore on internal functions in libraries is not a best practice HOT 2
- Make fallback functions 'external' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solhint.