Skip to content

feat: add circular-import project rule (IMP08) - #1828

Merged
bhirsz merged 1 commit into
feat/rule-keyword-not-foundfrom
feat/rule-circular-import
Aug 14, 2026
Merged

feat: add circular-import project rule (IMP08)#1828
bhirsz merged 1 commit into
feat/rule-keyword-not-foundfrom
feat/rule-circular-import

Conversation

@bhirsz

@bhirsz bhirsz commented Aug 14, 2026

Copy link
Copy Markdown
Member

Adds project rule circular-import (IMP08): reports resource imports that import, directly or indirectly, the file they are used in, including a file importing itself.

The message contains the chain leading back to the importing file, e.g. first.resource -> second.resource -> third.resource -> first.resource. Unresolved imports are not reported.

Stacked on #1827.

@bhirsz
bhirsz marked this pull request as ready for review August 14, 2026 16:43
@bhirsz
bhirsz force-pushed the feat/rule-circular-import branch from 08b6347 to 8b15802 Compare August 14, 2026 16:50
Report resource imports that import, directly or indirectly, the file they are used in. Every import taking part in the cycle is reported together with the path leading back to the importing file.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bhirsz
bhirsz force-pushed the feat/rule-circular-import branch from 8b15802 to 7036883 Compare August 14, 2026 16:56
@bhirsz
bhirsz merged commit ccc04ca into main Aug 14, 2026
11 checks passed
@bhirsz
bhirsz deleted the feat/rule-circular-import branch August 14, 2026 17:08
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