Skip to content

Enforce sprintfbool in cgo custom-linter CI gates - #46987

Merged
pelikhan merged 2 commits into
mainfrom
copilot/add-sprintfbool-linter
Jul 21, 2026
Merged

Enforce sprintfbool in cgo custom-linter CI gates#46987
pelikhan merged 2 commits into
mainfrom
copilot/add-sprintfbool-linter

Conversation

Copilot AI commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

sprintfbool is already clean and enforce-ready (no production findings), but CI was not enforcing it. This change wires the analyzer into the two existing custom-linter gates so future regressions are blocked in both default and wasm scopes.

  • What changed

    • Added -sprintfbool to the LINTER_FLAGS used by:
      • Run custom linters (default build)
      • Run custom linters (wasm) (GOOS=js GOARCH=wasm package subset)
  • CI enforcement surface

    • No analyzer-family reshuffle or scope change; this only extends the existing production-only custom-linter set (-test=false) with sprintfbool.
- ... -mapdeletecheck -test=false
+ ... -mapdeletecheck -sprintfbool -test=false

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add sprintfbool linter to enforce readiness Enforce sprintfbool in cgo custom-linter CI gates Jul 21, 2026
Copilot AI requested a review from pelikhan July 21, 2026 06:31
@pelikhan
pelikhan marked this pull request as ready for review July 21, 2026 06:36
Copilot AI review requested due to automatic review settings July 21, 2026 06:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds sprintfbool enforcement to existing production custom-linter CI gates.

Changes:

  • Enables -sprintfbool for default Go builds.
  • Enables it for the wasm package subset.
Show a summary per file
File Description
.github/workflows/cgo.yml Adds sprintfbool to both custom-linter invocations.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Medium

@pelikhan
pelikhan merged commit 75c6f16 into main Jul 21, 2026
20 checks passed
@pelikhan
pelikhan deleted the copilot/add-sprintfbool-linter branch July 21, 2026 06:38
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.82.15

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

Labels

None yet

Projects

None yet

3 participants