Skip to content

fix: drop v1-only --out-format flag from default lint command - #18

Merged
bdougie merged 1 commit into
mainfrom
fix/golangci-lint-v2-default-command
Jun 25, 2026
Merged

bdougie merged 1 commit into
mainfrom
fix/golangci-lint-v2-default-command

Conversation

@bdougie

@bdougie bdougie commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Removes the --out-format flag from the default golangci-lint command, which is a v1-only flag and breaks under golangci-lint v2.

Changes

  • pkg/linter/linter.go — drop --out-format from the default lint invocation
  • SKILL.md, skills/sweeper/SKILL.md, docs/telemetry-format.md — update documented default command to match

Test plan

  • Run the default lint command against a golangci-lint v2 install and confirm it no longer errors on the unknown flag.

golangci-lint v2 removed the `--out-format` flag, so the documented
default command `golangci-lint run --out-format=line-number ./...`
errors out on current installs. v2's default text output is already
`file:line:col:` and parses fine, so just drop the flag.

Updated the functional default (pkg/linter), both SKILL.md copies, and
the telemetry-format example. Verified end-to-end: a live sweep using
the default command goes 1 lint issue -> 0.
@bdougie
bdougie merged commit 7d758a8 into main Jun 25, 2026
6 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