MISRA Rule 16.6: Every switch statement shall have at least two switch-clauses.

Hierarchy (view full)

Constructors

Properties

context: MISRAContext

MISRA context for error tracking and rule transformations state

ruleID: string

Unique identifier for the MISRA rule.

Methods

  • Logs a MISRA-C rule violation error

    Parameters

    • $jp: Joinpoint

      The joinpoint where the violation occurred

    • msg: string

      Description of the violation

    Returns void

  • Logs a warning from automatic MISRA-C correction, which may change the program's behavior

    Parameters

    • $jp: Joinpoint

      The joinpoint where the correction was applied

    • msg: string

      Description of the warning

    Returns void