Description
We need to implement a mechanism that allows configuring rule exceptions/exclusions of projects at the rule level in the ReferenceConfig ruleset file. This will give architects more flexibility in defining which references are allowed despite matching global rules.
Problem
Currently, rules are applied globally without the ability to define project-specific exceptions. This makes it difficult to handle legitimate cases where a project should be allowed to use a reference that would otherwise be prohibited.
Proposed Solution
- Update the configuration model to support project-level exceptions to rules
- Modify the violation detectors to check for these exceptions before reporting violations
- Update the XML schema definition to include project-level exception elements
- Add unit tests for the new functionality
Implementation Details
- Consider adding a project-specific configuration section in the ReferenceCop.config file
- Allow specifying rule exceptions by project name, path, or other identifiers
- Ensure backward compatibility with existing configuration files
- Consider the relationship with the NoWarn feature
Acceptance Criteria
- Projects can be configured with exceptions to specific rules
- The configuration is intuitive and well-documented
- Unit tests demonstrate the feature works as expected
- Existing configurations continue to work without modification
Description
We need to implement a mechanism that allows configuring rule exceptions/exclusions of projects at the rule level in the ReferenceConfig ruleset file. This will give architects more flexibility in defining which references are allowed despite matching global rules.
Problem
Currently, rules are applied globally without the ability to define project-specific exceptions. This makes it difficult to handle legitimate cases where a project should be allowed to use a reference that would otherwise be prohibited.
Proposed Solution
Implementation Details
Acceptance Criteria