Skip to content

Commit

Permalink
add IgnoreTests to API, so API users can exclude tests as well. (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
thetorpedodog authored Jun 8, 2021
1 parent c926a3f commit 1ab85de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ type Issue struct {
}

type Config struct {
IgnoreTests bool
MatchWithConstants bool
MinStringLength int
MinOccurrences int
Expand All @@ -26,7 +27,7 @@ func Run(files []*ast.File, fset *token.FileSet, cfg *Config) ([]Issue, error) {
p := New(
"",
"",
false,
cfg.IgnoreTests,
cfg.MatchWithConstants,
cfg.ParseNumbers,
cfg.NumberMin,
Expand Down

0 comments on commit 1ab85de

Please sign in to comment.