{"repo":"protofire/solhint","free":true,"listed":false,"github":"https://github.com/protofire/solhint","clone":"git clone https://github.com/protofire/solhint.git","description":"Solhint is an open-source project to provide a linting utility for Solidity code.","language":"JavaScript","stars":1125,"topics":["solidity","linter","security-scanner","ethereum","ast","developer-tools","code-quality","smart-contracts","solhint","dapp"],"license":"MIT","category":"dev-tools","readme_excerpt":"By Protofire This is an open source project for linting Solidity code. This project provides both Security and Style Guide validations. VISIT OUR WEBSITE JOIN OUR DISCORD SERVER Tech Lead: dbale-arg Installation You can install Solhint using npm : Usage First initialize a configuration file, if you don't have one: This will create a .solhint.json file with the recommended rules enabled. Then run Solhint with one or more Globs) as arguments. For example, to lint all files inside contracts directory, you can do: To lint a single file: Run solhint without arguments to get more information: New Versions - Solhint checks if there are newer versions. The --disc option avoids that check. - --save option will create a file named as YYYYMMDDHHMMSS solhintReport.txt on current folder with default or specified format Fix This option currently works on: - avoid-throw - avoid-sha3 - no-console - explicit-types - private-vars-underscore - payable-fallback - quotes - contract-name-capwords - avoid-suicide Configuration You can use a .solhint.json file to configure Solhint for the whole project. To generate a new sample .solhint.json file in current folder you can do: This file has the following format: Default The solhint:default configuration contains only two rules: max-line-length & no-console It is now deprecated since version 5.1.0 Multiple Configs Multiple configs files can be used at once. All config files should be named .solhint.json . If not done like this, multiple hierarchy conf","default_branch":null,"files":null,"tree":[],"storefront":"/r/protofire","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/protofire/solhint/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}