Skip to content

🔧 fix(arch-lint): exclude .claude and ui from architecture scan (ARCH-A1) - #167

Merged
konih merged 1 commit into
mainfrom
fix/arch-a1-arch-lint-exclude
Aug 2, 2026
Merged

konih merged 1 commit into
mainfrom
fix/arch-a1-arch-lint-exclude

Conversation

@konih

@konih konih commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

ARCH-A1 / RELSE-05 (P3) — local arch gate broken by agent-worktree pollution

Surfaced by the 2026-08-02 /project-audit (architecture + release lenses; recurring prior RELSE-01). .go-arch-lint.yml's exclude: omitted .claude, so whenever agent worktrees exist under .claude/worktrees/, task arch-lint/task lint emit thousands of "not attached to any component" notices and exit 1 — the local architecture gate is unusable. CI is unaffected (clean checkout).

Fix

Add .claude and ui to the exclude list. ui/ has 0 tracked files (UI SPA removed; now untracked dist/node_modules) so nothing real is hidden; .claude is agent worktrees.

Verify

task arch-lint now exits 0 (OK - No warnings found) on a checkout containing .claude/worktrees/ (proven live). Independent reviewer: APPROVE, no findings — diff is exactly the two exclude entries, ui/ hides no Go source.

Copilot AI review requested due to automatic review settings August 2, 2026 10:58
@konih
konih merged commit ee7e8a8 into main Aug 2, 2026
23 checks passed
@konih
konih deleted the fix/arch-a1-arch-lint-exclude branch August 2, 2026 10:59

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the go-arch-lint configuration to prevent local, agent-created working directories from polluting the architecture scan and breaking the task arch-lint / task lint developer workflow.

Changes:

  • Add .claude to the exclude: list to avoid scanning agent worktree directories.
  • Add ui to the exclude: list to avoid scanning a locally present (but not tracked) UI directory.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .go-arch-lint.yml
Comment on lines +14 to +15
- .claude
- ui
@codecov

codecov Bot commented Aug 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@sonarqubecloud

sonarqubecloud Bot commented Aug 2, 2026

Copy link
Copy Markdown

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.

2 participants