...
Code Block |
---|
int proc2(bool a, bool b, int i) { // parasoft-begin-suppress CS "begin suppress all rules in category CS" if (a | b) if(b = a) // parasoft-end-suppress CS "end suppress all rules in category CS" { string emptyString = ""; } return i++; } int proc3(bool a, bool b, int i) { if (a | b) // parasoft-begin-suppress CS.PB "begin suppress rule CS.PB" if(b = a) // parasoft-end-suppress CS.PB "end suppress rule CS.PB" { string emptyString = ""; } return i++; } int proc4(bool a, bool b, int i) { // parasoft-begin-suppress CS-1 "begin suppress all rules in category CS with severity level 1" if (a | b) if(b = a) { string emptyString = ""; } return i++; // parasoft-end-suppress CS-1 "end suppress all rules in category CS with severity level 1" } // parasoft-begin-suppress ALL "begin suppress all rules" int proc5(bool a, bool b, int i) { if (a | b) if(b = a) { string emptyString = ""; } return i++; } // parasoft-end-suppress ALL "end suppress all rules" |
...