SonarQube complains about "String contains no format specifiers." when using org.slf4j.Logger
, in particular method "public void debug(String msg)
". For example
log.info("message");
It refers to this rule : https://wiki.sei.cmu.edu/confluence/display/c/FIO47-C.+Use+valid+format+strings
However, in this rule, we can find the following quote :
Each conversion specification is introduced by the % character followed (in order) by
Zero or more flags (in any order), which modify the meaning of the conversion specification
Is it me that miss something, or is this rule not well implemented? Any experience with that ?