You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

 

While looking analysis results, you could find that (for example) a Kiuwan rule is generally helpful and must be kept active. But, in some concrete cases, it is not applicable (or it is not properly working) and some defects should not be considered in the analysis.

Reasons to “silence” (or mute) those defects can be of very different nature but you might decide that, the rule should not be applied in certain particular cases o situations.

In any case, you want to keep active the rule but discard some specific defects. Kiuwan provides the Mute Defect functionality to do it.

Please, also have a look at How to manage Kiuwan defects when I do not completely agree with them

 

Scope of Mute

Defects muting can be applied to three different scopes:

  1. Defect-specific
    1. A specific defect is muted (identified the rule and the line number of the source file
  2. File-scope
    1. To mute all the defects of a certain file, regardless of the nature (rule) of the defect
  3. Rule-scope
    1. To mute all the defects coming from a specific rule, regardless of the file where the defects are appearing
  4. Rule-File or File-Rule scope
    1. Rule-File: To mute all the defects of a certain rule belonging to a specific file (or to a set of files)
    2. File-Rule: To mute all the defects of a certain file coming for a specific rule

 

Kiuwan allows you to declare mute patterns for all the above situations, letting you to suite Kiuwan muting mechanism to your specific needs.

 

What is important to remember is that muted defects will not be considered when passing an Audit or calculating any Indicator.

Muted defects are still there (you can inspect them) but will not be part of the calculations made by Kiuwan.

 

Probably, you might be wondering at this moment some questions:

  1. Muting a rule is the same than deactivating that rule
    1. Yes, muting a rule will mute all the current defects of that rule as well as future defects of that rule in further analyses.  This way, you don’t need to deactivate the rule (that would imply to deactivate the rule for all the applications that use that model). Also, defects of that rule still exists (but muted) ,  but will not be considered in Audits or in the Indicators.  You can later un-mute again at a later stage and will be considered as “live” again. 
  2. Muting a file is the same as “excluding” that file from the analysis? 
    1. Yes, the final effect is the same. Muting a file will mute all the current defects of that file as well as future defects for that file. As above,  those defects will remain in the analysis, but muted, not being considered in Audits and Indicators.

 

 

 

  • No labels