Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Directory excluding in sonar-project.properties file doesn't work (for me)

I have excluded the directory in my project properties but sonar doesn't exclude it. Can anyone help me to find problem?

sonar.sources=./ 
sonar.exclusions=./utility/Excel/**
like image 687
Fatemeh Rostami Avatar asked Sep 06 '25 11:09

Fatemeh Rostami


1 Answers

I realized that first I should have written directory name Like below to exclude all folders and file on that directory:

 sonar.exclusions=utility/Excel/**/*

Second I should have used comma separated directory names to exclude more than one directory:

 sonar.exclusions=utility/Excel/**/* , utility/mailer/**/*
like image 132
Fatemeh Rostami Avatar answered Sep 11 '25 06:09

Fatemeh Rostami