-
Notifications
You must be signed in to change notification settings - Fork 356
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
applies_to_file_regex tag doesn't work propertly #588
Comments
Hi @ganchix, Sorry you're having trouble but I'm unable to reproduce this. |
Hi @gfs To reproduce use the following command
In the folder
In the The output should be 1 match, but it is 2. The difference is that the whole project folder is analyzed using the two structures. Thank you! |
Hi @ganchix, Sorry, I'm still unable to reproduce this, here's what I tried. I tried with the command you recommend above but it results in 0 matches due to missing the Once adding Based on the regex you provided, a file at If I modify your regular expression to include the full path to the .configuration file in the Here are two runs, first using your original regex, and second using a regex which excludes the .configuration file in the I'm using the same file structure you mention in your follow-up message: If you want to ignore files located at I also see the same behavior if the rules are loaded from a folder containing the rule json rather than the explicit path to the rules. Please let me know if that helps or if you still believe there is an issue I'm missing here.
|
Describe the bug
The following regex in applies_to_file_regex doesn't work properly:
The regex search
.configuration
files in folders or subfolders but not in the root, using the following rule:Inspector detects the root file:
I tested the regex using an online regex tester and seems to be ok:
To Reproduce
Expected behavior
The root file won't be detected by Inspector using the regex expression.
Operating Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: