Skip to content

Commit

Permalink
Merge 7d4e166 into 84648ca
Browse files Browse the repository at this point in the history
  • Loading branch information
Franco Victorio committed Aug 28, 2019
2 parents 84648ca + 7d4e166 commit f821dac
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Expand Up @@ -26,7 +26,13 @@ solhint -V

## Usage

For linting Solidity files you need to run Solhint with one or more [Globs](https://en.wikipedia.org/wiki/Glob_(programming)) as arguments. For example, to lint all files inside `contracts` directory, you can do:
First initialize a configuration file, if you don't have one:

```sh
solhint init-config
```

This will create a `.solhint.json` file some default rules enabled. Then run Solhint with one or more [Globs](https://en.wikipedia.org/wiki/Glob_(programming)) as arguments. For example, to lint all files inside `contracts` directory, you can do:

```sh
solhint "contracts/**/*.sol"
Expand Down

0 comments on commit f821dac

Please sign in to comment.