Skip to content

lint: fix niliness typo in govet config#106

Open
Saijayavinoth wants to merge 1 commit into
mainfrom
fix-golangci-niliness-typo
Open

lint: fix niliness typo in govet config#106
Saijayavinoth wants to merge 1 commit into
mainfrom
fix-golangci-niliness-typo

Conversation

@Saijayavinoth
Copy link
Copy Markdown

@Saijayavinoth Saijayavinoth commented May 18, 2026

Fixes two latent issues in .golangci.yml that both surface under golangci-lint v1.64.x's stricter config verify. Currently breaking CI on every open PR — see #105 Lint job.

Changes

1. nilinessnilness (the govet analyzer name has no double i)

Typo introduced in e66de90 (Sep 2023). Older golangci-lint versions silently ignored unknown analyzer names; v1.64.x rejects them during config verification:

@codecov
Copy link
Copy Markdown

codecov Bot commented May 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.94%. Comparing base (4cdfe95) to head (176d3d3).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #106   +/-   ##
=======================================
  Coverage   67.94%   67.94%           
=======================================
  Files          32       32           
  Lines        2059     2059           
=======================================
  Hits         1399     1399           
  Misses        636      636           
  Partials       24       24           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

lint: fix .golangci.yml to pass on golangci-lint v1.64.x

Two changes, both surfacing because v1.64.x added strict `config verify`
that older versions silently bypassed:

- Fix niliness → nilness (typo in govet enable list since e66de90).
  Older golangci-lint silently ignored the unknown name; v1.64.x
  rejects it during config verification.

- Exclude fmt.Fprint/Fprintf/Fprintln from errcheck. Once config
  verify passes, errcheck actually runs and catches conventional
  fmt-write callsites where the returned error is intentionally
  ignored. Standard exclusion in Go projects.
@Saijayavinoth Saijayavinoth force-pushed the fix-golangci-niliness-typo branch from 589e6da to 176d3d3 Compare May 18, 2026 11:07
@Saijayavinoth Saijayavinoth requested a review from abhinav May 18, 2026 11:42
@Saijayavinoth Saijayavinoth self-assigned this May 18, 2026
@Saijayavinoth
Copy link
Copy Markdown
Author

@abhinav PTAL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant