Skip to content

Gendarme.Rules.Gendarme.ReviewAttributesOnRulesRule(git)

Sebastien Pouliot edited this page Mar 2, 2011 · 1 revision

ReviewAttributesOnRulesRule

Assembly: Gendarme.Rules.Gendarme
Version: git

Description

This rule checks if attribute usage match the following rules:

  • [Problem] and [Solution] attributes : should be used on rules only, every concrete rule must have both attributes (or inherit them), and their arguments cannot be null or empty
  • [FxCopCompatibility] attribute : should be used on rules only, its arguments cannot be null or empty, and second argument should match this format: AB1234:FxCopRuleName
  • [EngineDependency] attribute : should be used on rules only, its argument cannot be null or empty, and its argument should inherit from Gendarme.Framework.Engine
  • [DocumentationUri] attribute : should be used on rules only
  • [Description] and [DefaultValue] attributes : should be used on rules' public properties only, Description attribute argument cannot be null or empty

Examples

Source code

You can browse the latest source code of this rule on github.com

Clone this wiki locally