1
0
mirror of https://github.com/mgechev/revive.git synced 2024-11-24 08:32:22 +02:00

Fix README example's missing import (#661)

* Fix example missing import

* Tab and spaces

Co-authored-by: Bernardo Heynemann <bernardo.heynemann@coinbase.com>
This commit is contained in:
Bernardo Heynemann 2022-03-29 17:30:36 -03:00 committed by GitHub
parent 671c55d82e
commit 5996bb0b66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -586,6 +586,7 @@ package main
import (
"github.com/mgechev/revive/cli"
"github.com/mgechev/revive/lint"
"github.com/mgechev/revive/revivelib"
)
func main() {
@ -621,7 +622,7 @@ func LintMyFile(file string) {
true, // Set exit status
2048, // Max open files
// Then add as many extra rules as you need
// Then add as many extra rules as you need
revivelib.NewExtraRule(&myRule{}, lint.RuleConfig{}),
)