Skip to content

docs(golangci): correct comment example to kebab-case ignore-package-globs#6

Merged
ensarkovankaya merged 1 commit into
mainfrom
fix/golangci-comment-kebab
May 8, 2026
Merged

docs(golangci): correct comment example to kebab-case ignore-package-globs#6
ensarkovankaya merged 1 commit into
mainfrom
fix/golangci-comment-kebab

Conversation

@ensarkovankaya
Copy link
Copy Markdown
Contributor

Summary

Comment example in golangci.yml line 10 referenced the v1-style camelCase ignorePackageGlobs. golangci-lint v2 schema rejects camelCase under wrapcheck (config verify fails); canonical name is ignore-package-globs.

Discovery

Bug surfaced when paper-board/agents wrapped its vendored .golangci.yml in golangci-lint-action@v9 (which runs config verify pre-lint). Earlier action versions (v6) skipped that verify step + earlier binary versions silently ignored unknown keys, so the typo went undetected through Tasks 26-29.

Why comment-only

The actual linters.settings.wrapcheck block is empty in this baseline (services add their own ignore lists in vendored copies). The error only manifested in agents/.golangci.yml. Fixed there in paper-board/agents 42c45ee. This PR is purely documentation drift correction so future vendor copies don't propagate the wrong example.

Test plan

  • No CI required — comment-only.

🤖 Generated with Claude Code

…globs

Comment example referenced the v1-style camelCase ignorePackageGlobs key.
golangci-lint v2 schema rejects camelCase under wrapcheck (config verify
fails); canonical name is ignore-package-globs.

Bug surfaced when paper-board/agents wrapped its vendored .golangci.yml in
golangci-lint-action@v9 (which runs config verify pre-lint) — the camelCase
key in the agents copy failed validation. Comment update keeps the
baseline accurate so future vendor copies don't repeat the mistake.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@greptile-apps
Copy link
Copy Markdown

greptile-apps Bot commented May 8, 2026

Greptile Summary

  • Corrects a comment-only typo in golangci.yml line 10: replaces the v1-style camelCase wrapcheck.ignorePackageGlobs with the golangci-lint v2 canonical kebab-case wrapcheck.ignore-package-globs.
  • No functional or schema changes; the actual linters.settings.wrapcheck block remains empty in this baseline file.

Confidence Score: 5/5

Safe to merge — comment-only correction with no functional impact.

The change is a single comment line fix correcting a stale v1 camelCase example to the v2 kebab-case canonical name. No schema, logic, or configuration values are affected. The fix is accurate per the golangci-lint v2 wrapcheck configuration spec.

No files require special attention.

Important Files Changed

Filename Overview
golangci.yml Single comment line corrected from camelCase ignorePackageGlobs to kebab-case ignore-package-globs; no functional changes.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[paper-board/.github\ngolangci.yml baseline] -->|vendor verbatim| B[Service repo\n.golangci.yml]
    B -->|extend with| C["linters.settings.wrapcheck\nignore-package-globs:\n  - 'github.com/paper-board/*/internal/*'"]
    B -->|extend with| D["linters.exclusions.rules\nservice-specific overrides"]
    E["golangci-lint-action@v9\nruns config verify"] -->|validates schema| B
    E -->|rejects unknown keys| F["❌ camelCase ignorePackageGlobs\nfails v2 schema"]
    E -->|accepts| G["✅ kebab-case ignore-package-globs\npasses v2 schema"]
Loading

Reviews (1): Last reviewed commit: "docs(golangci): correct comment example ..." | Re-trigger Greptile

@ensarkovankaya ensarkovankaya merged commit 3772bfc into main May 8, 2026
@ensarkovankaya ensarkovankaya deleted the fix/golangci-comment-kebab branch May 8, 2026 19:42
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