Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.
/ solidhunter Public archive

Solidhunter is an open source project created by Astrodevs-Labs. Its goal is to provide a fast and efficient linting for Solidity code.

License

Notifications You must be signed in to change notification settings

astrodevs-labs/solidhunter

Repository files navigation

This is an open source project for linting Solidity code. This project provides Style Guide validations.

Installation

Download the last release from here.

Usage

First initialize a configuration file, if you don't have one:

solidhunter --init

This will create a .solidhunter.json file with the default rules enabled.

Run solidhunter without arguments to get more information:

Usage: solidhunter.exe [OPTIONS]

Options:
  -p, --path <PROJECT_PATH>    Specify project path [default: .]
  -e, --exclude <IGNORE_PATH>  Exclude part of the project path
  -r, --rules <RULES_FILE>     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

Configuration

You can use a .solidhunter.json file to configure Solidhunter for the whole project.

This file has the following format:

{
  "name": "solidhunter",
  "includes": [],
  "plugins": [],
  "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.

You can disable a rule by simply removing the entry in the file.

IDE Integrations

About

Solidhunter is an open source project created by Astrodevs-Labs. Its goal is to provide a fast and efficient linting for Solidity code.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages