mirror of
https://github.com/mgechev/revive.git
synced 2024-11-28 08:49:11 +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:
parent
671c55d82e
commit
5996bb0b66
@ -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{}),
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user