Skip to content

Commit

Permalink
Merge branch 'master' of github.com:mgechev/revive
Browse files Browse the repository at this point in the history
* 'master' of github.com:mgechev/revive:
  Fix README example's missing import (#661)
  • Loading branch information
mgechev committed Mar 29, 2022
2 parents 8bbeab2 + 5996bb0 commit 639d12b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,7 @@ package main
import (
"github.com/mgechev/revive/cli"
"github.com/mgechev/revive/lint"
"github.com/mgechev/revive/revivelib"
)

func main() {
Expand Down Expand Up @@ -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{}),
)

Expand Down

0 comments on commit 639d12b

Please sign in to comment.