This is an open source project for linting [Solidity](http://solidity.readthedocs.io/en/develop/) code. This project provides **Style Guide** validations. ## Installation ```sh cargo install solidhunter ``` ## Usage First initialize a configuration file, if you don't have one: ```sh solidhunter --init ``` This will create a `.solidhunter.json` file with the default rules enabled. Run `solidhunter` without arguments to get more information: ```text Usage: solidhunter [OPTIONS] Options: -p, --path Specify project path [default: .] -e, --exclude Exclude part of the project path -r, --rules Specify rules file [default: .solidhunter.json] -v, --verbose Verbose output -i, --init Initialize rules file -h, --help Print help information -V, --version Print version information -g, --ignore Specify ignore file ``` ## Configuration You can use a `.solidhunter.json` file to configure Solidhunter for the whole project. This file has the following format: ```json { "name": "solidhunter", "rules": [ { "id": "line-max-len", "severity": 2, "data": [ "80" ] }, { "id": "code-complexity", "severity": 2, "data": [ "7" ] }, { "id": "quotes", "severity": 1, "data": [] } ] } ``` A full list of all supported rules can be found [here](https://github.com/astrodevs-labs/osmium/tree/main/toolchains/solidity/core/crates/linter-lib/src/rules). You can disable a rule by simply removing the entry in the file. ## IDE Integrations - **[Visual Studio Extention](https://github.com/astrodevs-labs/osmium)**