1
0
mirror of https://github.com/mgechev/revive.git synced 2025-01-08 03:13:27 +02:00
🔥 ~6x faster, stricter, configurable, extensible, and beautiful drop-in replacement for golint https://revive.run/
Go to file
2018-02-04 12:54:37 -08:00
assets Add logo 2017-08-27 20:59:53 -07:00
fixtures Add new rule 2018-02-02 13:32:03 -05:00
formatter Fix formatter and output 2018-01-27 23:03:07 -08:00
lint Refactoring 2018-02-03 19:37:38 -08:00
rule Add new rule 2018-02-02 13:32:03 -05:00
testutil Add new rule 2018-02-02 13:32:03 -05:00
.gitignore Refactor 2017-08-27 21:02:59 -07:00
config.toml Add default formatter 2018-01-27 17:01:18 -08:00
defaults.toml Update the error code handling 2018-02-03 19:33:14 -08:00
Gopkg.lock Use dep instead of glide 2018-01-29 13:49:24 -08:00
Gopkg.toml Use dep instead of glide 2018-01-29 13:49:24 -08:00
lintconfig.go Fail in case of invalid input directories 2018-02-04 12:54:37 -08:00
main.go Update the error code handling 2018-02-03 19:33:14 -08:00
README.md Update readme 2018-02-04 12:19:24 -08:00

revive

Fast, configurable, extensible, and beautiful linter for Go.

Usage

Revive is configurable linter which you can fit your needs.

Command Line Flags

Revive accepts only three command line parameters:

  • config - path to config file in TOML format.
  • exclude - pattern for files/directories/packages to be excluded for linting. You can specify the files you want to exclude for linting either as package name (i.e. github.com/mgechev/revive), list them as individual files (i.e. file.go file2.go), directories (i.e. ./foo/...), or any combination of the three.
  • formatter - formatter to be used for the output. The currently available formatters are:
    • default - will output the warnings the same way that golint does.
    • json - outputs the warnings in JSON format.
    • cli - formats the warnings in a table.

Configuration

Revive can be configured with a TOML file

License

MIT