123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- /* comment here per global region
- *
- * metrix++: suppress std.code.length:total
- * metrix++: suppress std.general:size
- * metrix++: suppress std.general:size intentional duplicate
- */
- /*metrix++: suppress std.code.length:total*/
- int func()
- {
- /* comment here */
- }
- int func2()
- {
- /*metrix++: suppress std.code.length:total*/
- }
- /* metrix++: suppress std.code.length:total */
- int func3()
- {
- /* metrix++: suppress std.code.length:total*/
- }
- /* bla-bla */
- /* metrix++: suppress std.code.length:total */
- /* bla-bla */
- int func4()
- {
- /* metrix++: suppress std.code.length:total*/
- }
- /* metrix++: suppress std.code.length:total */
- struct cl1
- {
- };
- struct cl2
- {
- /* metrix++: suppress std.code.length:total*/
- };
- // bla-bla
- //metrix++: suppress std.code.length:total
- // bla-bla
- struct cl3
- {
- };
- /* bla-bla-bla */
- struct no_suppress_cl
- {
- };
- /* bla-bla-bla */
- int nu_suppress_func()
- {
- /* bla-bla-bla */
- }
- struct cl2
- {
- /* metrix++: suppress std.code.length:total per class */
- /* metrix++: suppress std.code.length:total per function */
- int func4()
- {
- }
- int func_no_suppress_within_struct()
- {
- }
- };
- /* metrix++: suppress invalid:metric */
- struct suppresed_for_invalid_metric
- {
- };
- /* metrix++: suppress std.code.length:invlaid_metric */
- struct suppresed_for_invalid_metric
- {
- };
- /* metrix++: suppress invalid:metric */
- /* metrix++: suppress std.code.length:total */
- struct suppressed_for_size_and_invalid_metric
- {
- };
- /* metrix++: suppress invalid:metric */
- /* metrix++: suppress std.code.length:total */
- /* metrix++: suppress std.code.complexity:cyclomatic */
- int suppressed_for_size_and_complexity_and_invalid_metric()
- {
- if (1) return;
- }
- // metrix++: suppress std.code.length:total asdas
- // metrix++: suppress std.code.complexity:cyclomatic adsad
- int func7()
- {
- if (1) return;
- }
- // metrix++: suppress std.code.complexity:cyclomatic adsad
- int nu_suppress_for_size()
- {
- if (1) return;
- }
- // metrix++: suppress std.code.length:total adsad
- int no_suppress_for_cyclomatic_complexity()
- {
- if (1) return;
- }
- // metrix++: suppress std.code.length:total long-long
- // description why it was suppressed
- // metrix++: suppress std.code.complexity:cyclomatic
- int func8()
- {
- if (1) return;
- }
- /* metrix++: suppress std.code.length:total long-long */
- /* description why it was suppressed */
- /* metrix++: suppress std.code.complexity:cyclomatic */
- int func9()
- {
- if (1) return;
- }
- // metrix++: suppress std.code.complexity:cyclomatic adsad
- int bad_suppress_for_size()
- {
- // metrix++: suppress std.code.length:total
- if (1) return;
- }
- /* metrix++: suppress std.code.length:total long-long
- * description why it was suppressed
- * metrix++: suppress std.code.complexity:cyclomatic */
- int func10()
- {
- if (1) return;
- }
- /* metrix++: suppress std.code.length:total
- * metrix++: suppress std.code.length:total */
- int duplicate_suppression_of_size()
- {
- }
- /* metrix++: suppress std.general:size intentional suppression per file metric
- * metrix++: suppress std.code.length:total */
- int bad_suppression_of_file_size()
- {
- }
|