Need help in exclude option in sonarqube

Hello Community,
I have below folder structure

I want to exclude folder2 and all folder inside folder2 that is folder3 and folder4 also and folder 4 from scan.
I added them as below
property name=“sonar.exclusions” value=“/var/lib/hybris/folderB/folder2/**,/var/lib/hybris/folderC/folder4”
but somehow still folder 3 and folder 4 is still appearing in scans


As described in the docs (and the UI):

  • * Match zero or more characters (not including the directory delimiter, /).
  • ** Match zero or more directory segments within the path.

I suggest a pattern like: folder2/**/*


1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.