Skip to content

Enable configuration of exceptions for specific projects in ReferenceCop ruleset #29

@mfogliatto

Description

@mfogliatto

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

  1. Update the configuration model to support project-level exceptions to rules
  2. Modify the violation detectors to check for these exceptions before reporting violations
  3. Update the XML schema definition to include project-level exception elements
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions