Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "inclusion/exclusion" list of alternatives for white/black list #73

Merged
merged 2 commits into from
May 5, 2021

Conversation

caitlinelfring
Copy link
Member

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Feature

What is the current behavior? (You can also link to an open issue here)

What is the new behavior (if this is a feature change)?
Violations to whitelist now provides "inclusion list" as an alternative and to blacklist now provides "exclusion list" as an alternative.

Does this PR introduce a breaking change? (What changes might users need to make due to this PR?)
No

Other information:
Closes #65

@@ -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{}))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using the default ruleset has the potential to break tests simply by updating a default rule. Using the test rule instead avoids this.

@caitlinelfring caitlinelfring marked this pull request as ready for review May 5, 2021 23:33
@caitlinelfring caitlinelfring merged commit 2e9f79d into main May 5, 2021
@caitlinelfring caitlinelfring deleted the issue-65 branch May 5, 2021 23:37
@caitlinelfring caitlinelfring changed the title Add "inclusion/exclusion" list of alterntives for white/black list Add "inclusion/exclusion" list of alternatives for white/black list May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix replacement suggestions for blacklist / whitelist
1 participant