Hi, while working with code coverage wildcard patterns are not getting excluded. This is an intermittent issue as when we reset the wildcards and do it again it accepts the exclusions.
SonarQube scanner integrated with CI pipeline is sometimes not considering the pre-configured coverage and source exclusion wild card patterns.
Its Sonarqube community edition.
You haven’t provided a lot of detail here so it’s down to guessing at this point. That said, you mentioned that sometimes it works and sometimes it doesn’t. That suggests to me that the content of your edits may be the problem. If you’re sure about your syntax, you might also double-check trailing whitespace.
Not sure what else there is to say. You say there’s an intermittent problem. For me that points to something outside SonarQube. You need to isolate the circumstances under which it stops working and the circumstances under which it resumes working.
The only way i can explain is, when wildcard exclusion doesnt happen, we try to remove one and save and run it again and then it accepts. But this is the issue that we cant keep on doing it every time whenever the wildcard patterns are missed.