⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Add allowedDependencies feature to override forbidden dependencies#27

Merged
floriankraemer merged 1 commit intomasterfrom
white-list-classes
Jan 15, 2026
Merged

Add allowedDependencies feature to override forbidden dependencies#27
floriankraemer merged 1 commit intomasterfrom
white-list-classes

Conversation

@floriankraemer
Copy link
Contributor

  • Introduced new classes AllowedOverride and StillForbidden to demonstrate the functionality of overriding forbidden dependencies with a whitelist.
  • Updated ForbiddenDependenciesRule to include an allowedDependencies parameter, allowing specific dependencies to bypass the forbidden rules.
  • Enhanced documentation for the Dependency-Constraints-Rule to explain the new allowedDependencies feature.
  • Added tests to validate the behavior of allowed dependencies and ensure that forbidden dependencies still trigger errors when not in the allowed list.

- Introduced new classes `AllowedOverride` and `StillForbidden` to demonstrate the functionality of overriding forbidden dependencies with a whitelist.
- Updated `ForbiddenDependenciesRule` to include an `allowedDependencies` parameter, allowing specific dependencies to bypass the forbidden rules.
- Enhanced documentation for the `Dependency-Constraints-Rule` to explain the new `allowedDependencies` feature.
- Added tests to validate the behavior of allowed dependencies and ensure that forbidden dependencies still trigger errors when not in the allowed list.
@floriankraemer floriankraemer merged commit cff3ef4 into master Jan 15, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant