Skip to content

Refactor operator status meanings#27

Merged
ktsaou merged 1 commit into
mainfrom
quality-operator-status-meaning-complexity
Jun 4, 2026
Merged

Refactor operator status meanings#27
ktsaou merged 1 commit into
mainfrom
quality-operator-status-meaning-complexity

Conversation

@ktsaou

@ktsaou ktsaou commented Jun 4, 2026

Copy link
Copy Markdown
Member

Summary

  • move static operator status meanings into a lookup table
  • keep failed and empty status cases explicit for context-sensitive behavior
  • add table-driven coverage for status labels, problem classes, and fallback formatting

Validation

  • go test ./pkg/engine
  • go test -coverprofile=/tmp/update-ipsets-engine-slice23.cover -covermode=atomic ./pkg/engine
  • go run ./tools/archposture -root . > /tmp/update-ipsets-archposture-slice23.json
  • make lint
  • make staticcheck
  • make golangci-lint
  • CI=true make coverage
  • make test-strict
  • git diff --check

@ktsaou ktsaou enabled auto-merge June 4, 2026 02:25
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics -20 complexity · 2 duplication

Metric Results
Complexity -20
Duplication 2

View in Codacy

AI Reviewer: first review requested successfully. AI can make mistakes. Always validate suggestions.

Run reviewer

TIP This summary will be updated as you push new changes.

@ktsaou ktsaou merged commit 8784339 into main Jun 4, 2026
13 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