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

Fix Config file not including when there is a 'exclude' rule #209

Merged
merged 3 commits into from
Sep 29, 2021

Conversation

marinalimeira
Copy link
Contributor

Fixes #198.

Refactored the function ShouldInclude to behave properly when there is a exclude but no include config. I added a unit test to this function that catches the bug in question.

brikis98
brikis98 previously approved these changes Sep 28, 2021
Copy link
Member

@brikis98 brikis98 left a comment

Choose a reason for hiding this comment

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

Overall, LGTM! 👍

config/config.go Outdated Show resolved Hide resolved
config/config.go Outdated Show resolved Hide resolved
config/config_test.go Show resolved Hide resolved
@marinalimeira
Copy link
Contributor Author

Thank you for the review, Jim! Addressed the suggestions.

Copy link
Member

@brikis98 brikis98 left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@rhoboat rhoboat left a comment

Choose a reason for hiding this comment

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

LGTM!! Thanks for fixing this.

@marinalimeira marinalimeira merged commit 8b7414f into master Sep 29, 2021
@marinalimeira marinalimeira deleted the 198-config-should-include branch September 29, 2021 08:45
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.

Config file with only exclude rules do not work as expected
3 participants