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

How to ignore the folder using the exclusions file #408

Open
balajimandava-eaton opened this issue Feb 10, 2025 · 3 comments
Open

How to ignore the folder using the exclusions file #408

balajimandava-eaton opened this issue Feb 10, 2025 · 3 comments

Comments

@balajimandava-eaton
Copy link

./abc/app/src/JSON/test.hpp;ALL
./abc/app/src/REST/URI;ALL

File level I am able to exclude.

how to exclude the folder and how if we declare the folder will be excluded from the run.

In the duplications logic I am able to logic. Please let me know how that can be done or is there any workaround for the same.

@balajimandava-eaton
Copy link
Author

@terryyin - Please can you look into it.

@terryyin
Copy link
Owner

-x EXCLUDE, --exclude EXCLUDE
Exclude files that match the pattern. * matches everything, ? matches any
single character, "./folder/*" exclude everything in the folder
recursively. Multiple patterns can be specified. Don't forget to add ""
around the pattern.

And also, if there is a .gitignore file in the folder it will also ignore files ignored by git.

@balajimandava-eaton
Copy link
Author

@terryyin - As I want to declare in the text file and when I declare in the text file then the ignoring the folder is not working.

I tried with the -x then it is working within the github action however I want to try through the text file.

./abc/app/src/tes/test.hpp;ALL
"./abc/app/src/test/URI/*";ALL

File "/home/runner/work/_actions/etn-ccis/edge-devops-actions-complexity-lizard/ci/EMBDO-419-PR-Gating-threshold-comparison/scripts/GenLizardHTML.py", line 90, in create_filtered_csv
file_path, function_name = line.split(';')
^^^^^^^^^^^^^^^^^^^^^^^^
I am declaring in the text file where the file within the lizard complexity it is able to ignore the file however the folder is not able to remove.

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

No branches or pull requests

2 participants