Just small clarification.
If I want exclude files and sub folders within a package, which one of below is right
**/{package-folder}/**
**/{package-folder}/**/*.*
Just small clarification.
If I want exclude files and sub folders within a package, which one of below is right
**/{package-folder}/**
**/{package-folder}/**/*.*
**/package-folder/**/*
if package-folder has no parent folder(s) package-folder/**/*
is sufficient
similar to the given example org/sonar/**/*
at Narrowing the Focus | SonarQube Docs
Is this excluded all files inside package-folder
?
package-folder/**/*
is excluding all files in package-folder
or package-folder/sub/sub ..
Did you check the documentation ?
Paths are relative to the project base directory. The following wildcards can be used:
*
- Match zero or more characters**
- Match zero or more directories?
- Match a single characterThanks for your reply, Yes I did but still had a doubt regarding below,
/folderA/**
- Exclude both files and subfolders under folderA
/folderA/*
- Exclude ONLY files under folderA
Hope my above understanding is correct.
Yes, this is correct.
So in your case package-folder/**
or folder-A/**
will exclude all files and subfolders.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.