Jan 8, 2011

Design of FxCop Integrator New Feature: Support Ruleset and Configuration

I'm designing "Code Analysis Configuration", a new feature of FxCop Integrator, to support Ruleset and code analysis behavior configuration.

It will provide the following features.

  • Enable/Disable rules with Ruleset
  • Set some FxCopCmd option
  • Apply configuration to all projects are contained a solution
  • Override configuration on a specific project
  • Visual Configuration Editor


Enable/Disable rules with Ruleset
Ruleset is a logical grouping of code analysis rules. You can enable/disable rules with Ruleset.
I'll support to analyze your code with a built-in ruleset or a custom ruleset.

Set some FxCopCmd option
I'll enable to change some FxCopCmd option (e.g. whether FxCop searchs GAC for missing assembly or not, weather FxCop analyzes auto-generated code or not, and so on).

Apply configuration to all projects are contained a solution
If you create a configuration file for a solution, FxCop Integrator will use it to analyze each project is contained the solution.

Override configuration on a specific project
You'll be able to override "solution configuration" on a specific project. For example,  you can use different Rulesets between "Common Feature Project" and "UI Project".

Visual Configuration Editor
I'll implement Visual Configuration Editor to be able to edit above configurations in Visual Studio IDE. The following image is a preview of Visual Configuration Editor.

Visual Configuration Editor Preview

No comments:

Post a Comment