I’m new to SonarQube and I have a requirement in which they want SonarQube to be able to find the hardcoded in the source code that Sonarqube has scanned. So far as I have learned, there is no Rules in SonarQube that can find hardcoded in the source code immediately. For example if I write “
String abc = "1234567890"”, SonarQube won’t be able to mark that line of code as findings immediately and I need to do custom rules.
I have read it here : https://docs.sonarqube.org/display/PLUG/Writing+Custom+Java+Rules+101
And I’m finding it quite difficult since I’m not used to Maven, so my question is, is there any template rules from SonarQube that I can custom in SonarQube immediately regarding this hardcoded in source code? Or is there any custom rules developed regarding this hardcoded in source code that I can use immediately?
Please help and advise.
Thank you very much