• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bstoll / kne / 28410823909

30 Jun 2026 12:01AM UTC coverage: 41.982% (-0.08%) from 42.058%
28410823909

Pull #10

github

bstoll
Fix golangci-lint violations and format YAML/Go files

This change aggregates several fixes to address golangci-lint violations, format code files, and update deprecated APIs.

Key changes:
- Refactored Go code to address golangci-lint violations and update deprecated APIs:
  - Replaced deprecated `k8s.io/utils/pointer` with `k8s.io/utils/ptr`.
  - Replaced deprecated `grpc.DialContext` with `grpc.NewClient`.
  - Replaced deprecated `remotecommand.Stream` with `StreamWithContext`.
  - Handled or logged errors from `CloseSend`, `ReadFrom`, `BindPFlags`, etc.
  - Standardized error message capitalization (removed leading capitals and ending punctuation).
  - Simplified boolean expressions and struct field accesses.
  - Addressed various linter-raised spelling errors and style comments (e.g. in `topo/node/sonic` and other nodes).
  - Renamed internal fields for better readability (e.g., `wantInitCtr` to `wantInitContainer` and `wantSonicCtr` to `wantSonicContainer` in `sonic.go`).
- Ran `go fmt` across all Go source files.
- Formatted YAML files and manifests according to linter configurations (added `---` document start markers, fixed spacing/indentation in cloudbuild config, deployments, and various topological templates).
- Updated configuration files for Super-Linter:
  - Added codespell configuration file `.github/linters/.codespellrc`.
  - Adjusted `.golangci.yml` linter settings.
  - Added rules to `.github/linters/.checkov.yaml`, `.github/linters/.gitleaks.toml`, etc.
  - Added dependency cooldown periods in `.github/dependabot.yml`.
- Ran Prettier and resolved various Markdown lint errors (non-descriptive link text, spacing around code blocks, spelling errors).
Pull Request #10: Golangci lint fixes

62 of 134 new or added lines in 26 files covered. (46.27%)

1 existing line in 1 file now uncovered.

5186 of 12353 relevant lines covered (41.98%)

0.48 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

31.45
/topo/node/node.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc