How to detect source codes that contains a text that matches a pattern

Hi, I am looking for a plugin or solution that works with SonarQube to detect a string that matches a pattern (eg: regex) in any source codes language that is text readable and inclusive or commented source codes.

Some examples of string pattern matching includes:
A1234567Z
B7654321Y

Hi,

there’s a free sonar-text plugin, see https://github.com/gjd6640/sonar-text-plugin.
You might try the latest pre-release for Sonarqube 7 - which is still alpha - or roll your own plugin inspired by sonar-text sources.

Regards,
Gilbert

1 Like