Skip to content

Commit

Permalink
Fix README example's missing import (#661)
Browse files Browse the repository at this point in the history
* Fix example missing import

* Tab and spaces

Co-authored-by: Bernardo Heynemann <bernardo.heynemann@coinbase.com>
  • Loading branch information
heynemann and heynemann-cb committed Mar 29, 2022
1 parent 671c55d commit 5996bb0
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 5996bb0

Please sign in to comment.