Is it possible to match on directories that start with a letter (or better yet a set of letters)?

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    7.9, 4.0, using a builkite plugin (proprietary), no etensions
  • what are you trying to achieve
    I’m trying to parallelize buildkite jobs to scan sections of a large repository and have the results all posted to the same SQ project.
  • what have you tried so far to achieve this
    using “a**” does not seem to work.

I would like my sonar.sources to look like this: sonar.sources=./[a-d]** to only scan directories that start with a,b,c or d.
Is this possible?


Welcome to the community!

The only pattern characters that parameter accepts are * (any number of characters) and ** (any number of directories). To accomplish what you’re after, I think you’re going to have to do something like:


Note that I haven’t tested this before hitting ‘reply’ so you may need to tune this.