Skip to content

fix: address review feedback on catch-all dep rule (#246)#256

Merged
rainerhahnekamp merged 1 commit into
softarc-consulting:mainfrom
rainerhahnekamp:fix/catch-all-dep-rule-review
May 31, 2026
Merged

fix: address review feedback on catch-all dep rule (#246)#256
rainerhahnekamp merged 1 commit into
softarc-consulting:mainfrom
rainerhahnekamp:fix/catch-all-dep-rule-review

Conversation

@rainerhahnekamp

Copy link
Copy Markdown
Collaborator

Follow-up to #246 (authored by @sdurnov), which introduced fromTags/toTags support in dependency rule matcher functions.

This commit addresses the review feedback:

  • Remove from/to from DependencyCheckContext; restore them to the RuleMatcherFn intersection type as they were originally
  • Remove the redundant tos parameter from isDependencyAllowed — the function now iterates context.toTags directly, eliminating the duplicated data at every call site
  • Drop the dummy from: ''/to: '' values that were needed in checkForDependencyRuleViolation as a result
  • Update tests to match the new signatures

🤖 Generated with Claude Code

… param

- Remove from/to from DependencyCheckContext; restore to intersection type
- Add fromTags/toTags to DependencyCheckContext
- Remove redundant tos param from isDependencyAllowed; use context.toTags
- Drop dummy from/to values in checkForDependencyRuleViolation
- Update tests to match new signatures

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@rainerhahnekamp rainerhahnekamp merged commit 7a33e36 into softarc-consulting:main May 31, 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