Not detecting issues outside methods in some files

sonarqube

(vicky) #1

SQ-6.7.4
Scanner-3.2

Hi Team,

We have written some rules to detect the hardcoded sentence(string literal) in the code and it is working fine but in some of the java and typescript files, it is not raising violation for the string literal which are outside methods. It’s weird because it is happening in some of the files. Any help would be highly appreciated as there are nothing inside the log which will help us to troubleshoot.