mirror of
https://github.com/mgechev/revive.git
synced 2025-03-17 20:57:58 +02:00
Merge branch 'master' of github.com:mgechev/revive
* 'master' of github.com:mgechev/revive: Fix README example's missing import (#661)
This commit is contained in:
commit
639d12bb4f
@ -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…
x
Reference in New Issue
Block a user