Skip to content

Commit

Permalink
Add "inclusion/exclusion" list of alterntives for white/black list (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
caitlinelfring committed May 5, 2021
1 parent f017562 commit 2e9f79d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/parser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (p *testPrinter) Print(_ io.Writer, r *result.FileResults) error {
}

func testParser() *Parser {
return NewParser(rule.DefaultRules, ignore.NewIgnore([]string{}))
return NewParser([]*rule.Rule{&rule.TestRule}, ignore.NewIgnore([]string{}))
}

func parsePathTests(t *testing.T) {
Expand Down
2 changes: 2 additions & 0 deletions pkg/rule/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
- white-listed
alternatives:
- allowlist
- inclusion list
severity: warning

- name: blacklist
Expand All @@ -19,6 +20,7 @@
alternatives:
- denylist
- blocklist
- exclusion list
severity: warning

- name: master-slave
Expand Down

0 comments on commit 2e9f79d

Please sign in to comment.