Skip to content

ci: enforce bytesbufferstring, ioutildeprecated, mapdeletecheck linters - #45631

Merged
pelikhan merged 2 commits into
mainfrom
copilot/enforce-readiness-add-linters
Jul 15, 2026
Merged

ci: enforce bytesbufferstring, ioutildeprecated, mapdeletecheck linters#45631
pelikhan merged 2 commits into
mainfrom
copilot/enforce-readiness-add-linters

Conversation

Copilot AI commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Three analyzers in the registry had zero production violations and met the full enforcement bar (type-resolved, nolint suppression, test-file skip, autofix golden coverage where applicable) but were not gated in CI — allowing silent regressions.

Changes

  • .github/workflows/cgo.yml — adds -bytesbufferstring -ioutildeprecated -mapdeletecheck to LINTER_FLAGS on both the default run and the GOOS=js GOARCH=wasm run
Analyzer Flags Autofix
bytesbufferstring string(buf.Bytes())buf.String() (value receiver only) yes
ioutildeprecated deprecated io/ioutil usage no
mapdeletecheck if _, ok := m[k]; ok { delete(m, k) }delete(m, k) yes

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add three clean, type-resolved linters to CI enforcement ci: enforce bytesbufferstring, ioutildeprecated, mapdeletecheck linters Jul 15, 2026
Copilot AI requested a review from pelikhan July 15, 2026 05:05
@pelikhan
pelikhan marked this pull request as ready for review July 15, 2026 05:06
Copilot AI review requested due to automatic review settings July 15, 2026 05:06
@pelikhan
pelikhan merged commit c1ef9a2 into main Jul 15, 2026
@pelikhan
pelikhan deleted the copilot/enforce-readiness-add-linters branch July 15, 2026 05:06

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 CI enforcement for three existing custom Go analyzers.

Changes:

  • Enables bytesbufferstring, ioutildeprecated, and mapdeletecheck.
  • Applies enforcement to native and WASM lint runs.
Show a summary per file
File Description
.github/workflows/cgo.yml Adds all three analyzers 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

@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.82.10

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