Skip to content

fix(lint): resolve staticcheck issues breaking main CI#394

Closed
raifdmueller wants to merge 2 commits into
mainfrom
hotfix/lint-staticcheck-main
Closed

fix(lint): resolve staticcheck issues breaking main CI#394
raifdmueller wants to merge 2 commits into
mainfrom
hotfix/lint-staticcheck-main

Conversation

@raifdmueller
Copy link
Copy Markdown
Collaborator

Summary

  • Fixes 9 staticcheck lint issues introduced by PRs feat: Architecture Health Score Dashboard (#296) #368 and feat: Relationship Graph Analysis (#301) #369 that are currently breaking main branch CI
  • cmd/bausteinsicht/graph.go: use fmt.Fprintf instead of WriteString(fmt.Sprintf(...)) (QF1012)
  • cmd/bausteinsicht/health.go: remove unnecessary fmt.Sprintf on string literals (S1039)
  • internal/health/analyzer.go: use tagged switch on elem.Status (QF1003)
  • internal/graph/types.go: remove unused inDegree/outDegree fields from NodeInfo (unused)

Test plan

  • CI passes (lint + build + tests)
  • No functional changes — all fixes are purely code style/cleanup

🤖 Generated with Claude Code

- graph.go: use fmt.Fprintf instead of WriteString(fmt.Sprintf(...)) (QF1012)
- health.go: remove unnecessary fmt.Sprintf on string literals (S1039)
- health/analyzer.go: use tagged switch on elem.Status (QF1003)
- graph/types.go: remove unused inDegree/outDegree fields from NodeInfo (unused)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

📊 Test Report (Multi-OS)

Metric 🐧 Linux 🪟 Windows 🍎 macOS
Total Tests 789 789 789
✅ Passed 786 (99.6%) 786 (99.6%) 786 (99.6%)
❌ Failed 0 0 0
⏱️ Duration 7.34s 10.63s 6.87s
📦 Coverage 68.7% 68.6% 68.7%

💡 Full report: Download artifacts from this workflow run.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

📊 Test Report (Multi-OS)

Metric 🐧 Linux 🪟 Windows 🍎 macOS
Total Tests 789 789 789
✅ Passed 786 (99.6%) 786 (99.6%) 786 (99.6%)
❌ Failed 0 0 0
⏱️ Duration 7.46s 20.02s 6.82s
📦 Coverage 68.7% 68.6% 68.7%

💡 Full report: Download artifacts from this workflow run.

@raifdmueller
Copy link
Copy Markdown
Collaborator Author

Lint fixes were already included in PRs #370 and #374, which are now merged. Main CI should be green again.

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