Checker Playground

Design, test, and verify your static analysis rules.

We selected ten classic rules and generated code checkers for them. Choose a rule to quickly browse the generated results.

Choose one of the predefined cases to preview its rule definition and tests.

Rule Definition

Describe the rule clearly and support it with representative compliant and non-compliant cases.

Use a concise, clear name to label the rule.

Explain what should be detected.

Compliant

10

Safe code that should not trigger the checker.

dependent_call_in_expr_case_11.cpp Compliant Length: 235
dependent_call_in_expr_case_12.cpp Compliant Length: 313
dependent_call_in_expr_case_13.cpp Compliant Length: 286
dependent_call_in_expr_case_14.cpp Compliant Length: 263
dependent_call_in_expr_case_15.cpp Compliant Length: 320
dependent_call_in_expr_case_16.cpp Compliant Length: 158
dependent_call_in_expr_case_17.cpp Compliant Length: 196
dependent_call_in_expr_case_18.cpp Compliant Length: 360
dependent_call_in_expr_case_19.cpp Compliant Length: 509
dependent_call_in_expr_case_20.cpp Compliant Length: 419

Non-compliant

10

Unsafe code that should be detected by the checker.

dependent_call_in_expr_case_1.cpp Non-compliant Length: 341
dependent_call_in_expr_case_2.cpp Non-compliant Length: 326
dependent_call_in_expr_case_3.cpp Non-compliant Length: 469
dependent_call_in_expr_case_4.cpp Non-compliant Length: 394
dependent_call_in_expr_case_5.cpp Non-compliant Length: 325
dependent_call_in_expr_case_6.cpp Non-compliant Length: 285
dependent_call_in_expr_case_7.cpp Non-compliant Length: 391
dependent_call_in_expr_case_8.cpp Non-compliant Length: 403
dependent_call_in_expr_case_9.cpp Non-compliant Length: 314
dependent_call_in_expr_case_10.cpp Non-compliant Length: 316
enzh