How to specify wildcards in sonar-project.properties

I am trying to use Sonarqube to scan for UI modules I have. The user interface modules are plentiful. They have a common structure. Each module has its own js files.

I need to specify sonar.sources value to match all js files in my project. is something like this possible?

sonar.sources = * / * / script

sonar.language = JS

I've used them. But there was an error such as "could not resolve path". can anyone help?

+3


source to share


2 answers


Try using wildcard:

*   Match zero or more characters
**  Match zero or more directories
?   Match a single character

      



sonar.sources = ** / script

+2


source


Thanks everyone. I used sonar.sources =. in my properties file. This properties file is next to my modules. So now sonar takes all the folders next to this file and scans the specified file extensions. He is working now



0


source







All Articles