Skip to content

Widen accepted namespaces in CheckRequiredInterfaceInContractNamespaceRule - #328

Merged
TomasVotruba merged 1 commit into
mainfrom
widen-interface-contract-namespaces
Sep 29, 2026
Merged

TomasVotruba merged 1 commit into
mainfrom
widen-interface-contract-namespaces

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Fixes #327

Widen CheckRequiredInterfaceInContractNamespaceRule to also accept the Interface/Interfaces namespace, next to the existing Contract/Contracts.

Note: singular Interface is a reserved keyword and cannot be used as a namespace segment, so only Interfaces is covered by a fixture. The regex still accepts both spellings.

  • regex widened to #\b(Contracts?|Interfaces?)\b#
  • error message and README updated
  • added skip fixture + test case for the Interfaces namespace

@TomasVotruba
TomasVotruba merged commit 62a5904 into main Sep 29, 2026
8 checks passed
@TomasVotruba
TomasVotruba deleted the widen-interface-contract-namespaces branch September 29, 2026 09:01
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.

Make "CheckRequiredInterfaceInContractNamespaceRule" optional

1 participant