How to add the rule to MISRA 2012 rulemap?

Andrey MadanAndrey Madan Posts: 351 ✭✭✭

Suppose I created a rule and I want that rule to behave (name and severity wise ) as a MISRA 2012 rule. Where do I add it to MISRA 2012 rulemap?


  • Mark LambertMark Lambert Posts: 270 admin

    In the Test Configuration Editor (i.e. in DTP)
    1. Select the 'gears icon' next to the Tool that you are configuring the rulemap for (i.e. in DTP 5.3.3 this is labelled "DTP Engine for C/C++")
    2. Select the Rule Map you are configuring in the pull-down
    3. Select the "Upload/Download" tab
    4. Upload your custom rule using the "Custom Rules" section (NOTE: if this section does not have the "Upload" button, then your user does not have the correct permissions)
    5. (Optionally) edit the rule properties in the "Rule Customization" tab

    See for more details

  • Andrey MadanAndrey Madan Posts: 351 ✭✭✭
    edited March 2018

    @Mark Lambert . I understand when managing all the MISRA 2012 rules in a centralized location (i.e. DTP). However, what if I duplicate and update MISRA 2012 rule locally via RuleWizard, how do I update the local (desktop) MISRA 2012 rulemap?

  • Mark LambertMark Lambert Posts: 270 admin

    If you are using the full C/C++test desktop then this section of the docs should help with modifying the local rulemap;

    One thing to note, which is probably what you are experiencing ... when you edit a rule that has been remapped (such as one of the MISRA 2012 rules, that are remaps of other rules) then the rule still has the internal ID for the original. So you have two options;
    1) Create the new/updated rule with the MISRA category ID
    2) Update the new/updated rule in the Rule Map

Sign In or Register to comment.