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 excludes and log a little more #542

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

scamden
Copy link

@scamden scamden commented May 3, 2024

Description

This PR fixes a bug we find when using includes and excludes clauses within the same rule.
closes #541

Copy link

sonarcloud bot commented May 3, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@gagoar
Copy link
Owner

gagoar commented May 6, 2024

It looks good! It is missing a test that includes the rule I asked you in the issue. Could you share it, so I make sure we don't regress ? thank you!

@scamden
Copy link
Author

scamden commented May 17, 2024

It looks good! It is missing a test that includes the rule I asked you in the issue. Could you share it, so I make sure we don't regress ? thank you!

Sorry pretty busy with the day job! It's any rule that includes a directory with */ and then exludes some sub folder

{
"includes" : "someFolder/**/",
"excludes" : "someFolder/subFolder/
"
// other options
}

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.

excludes are dropped between validating the rule and printing that it was loaded
2 participants