Reduce immediate lint debt from custom-linter sweep#32675
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
Fix current lint violations after custom linter run
Reduce immediate lint debt from custom-linter sweep
May 16, 2026
Copilot created this pull request from a session on behalf of
pelikhan
May 16, 2026 18:27
View session
Contributor
There was a problem hiding this comment.
Pull request overview
This PR reduces lint debt with small Go modernizations and updates generated workflow lock files to match current repo-memory constraint rendering.
Changes:
- Replaced manual/env-copy and formatting patterns with
maps.Copyand string concatenation. - Modernized tests with
strings.SplitSeq,assert.Empty, and corrected expected/actual ordering. - Regenerated workflow lock snippets for repo-memory max patch-size text.
Show a summary per file
| File | Description |
|---|---|
pkg/workflow/safe_jobs.go |
Simplifies safe-job env setup construction. |
pkg/workflow/safe_jobs_threat_detection_test.go |
Modernizes line iteration in a secret-leak test. |
pkg/stringutil/spec_test.go |
Modernizes line iteration and testify assertions. |
pkg/cli/codemod_steps_run_secrets_env.go |
Simplifies equivalent step-key filtering logic. |
pkg/cli/codemod_steps_run_secrets_env_test.go |
Modernizes line iteration in codemod assertions. |
.github/workflows/workflow-health-manager.lock.yml |
Updates generated repo-memory max patch-size text. |
.github/workflows/weekly-blog-post-writer.lock.yml |
Updates generated repo-memory max patch-size text. |
.github/workflows/technical-doc-writer.lock.yml |
Updates generated repo-memory max patch-size text. |
.github/workflows/smoke-ci.lock.yml |
Updates generated repo-memory max patch-size text. |
.github/workflows/sergo.lock.yml |
Updates generated repo-memory max patch-size text. |
.github/workflows/security-compliance.lock.yml |
Updates generated repo-memory max patch-size text. |
.github/workflows/pr-triage-agent.lock.yml |
Updates generated repo-memory max patch-size text. |
.github/workflows/metrics-collector.lock.yml |
Updates generated repo-memory max patch-size text. |
.github/workflows/glossary-maintainer.lock.yml |
Updates generated repo-memory max patch-size text. |
.github/workflows/firewall-escape.lock.yml |
Updates generated repo-memory max patch-size text. |
.github/workflows/discussion-task-miner.lock.yml |
Updates generated repo-memory max patch-size text. |
.github/workflows/developer-docs-consolidator.lock.yml |
Updates generated repo-memory max patch-size text. |
.github/workflows/delight.lock.yml |
Updates generated repo-memory max patch-size text. |
.github/workflows/deep-report.lock.yml |
Updates generated repo-memory max patch-size text. |
.github/workflows/daily-testify-uber-super-expert.lock.yml |
Updates generated repo-memory max patch-size text. |
.github/workflows/daily-sentrux-report.lock.yml |
Updates generated repo-memory max patch-size text. |
.github/workflows/daily-news.lock.yml |
Updates generated repo-memory max patch-size text. |
.github/workflows/daily-community-attribution.lock.yml |
Updates generated repo-memory max patch-size text. |
.github/workflows/daily-code-metrics.lock.yml |
Updates generated repo-memory max patch-size text. |
.github/workflows/daily-cli-performance.lock.yml |
Updates generated repo-memory max patch-size text. |
.github/workflows/daily-agent-of-the-day-blog-writer.lock.yml |
Updates generated repo-memory max patch-size text. |
.github/workflows/copilot-token-optimizer.lock.yml |
Updates generated repo-memory max patch-size text. |
.github/workflows/copilot-token-audit.lock.yml |
Updates generated repo-memory max patch-size text. |
.github/workflows/copilot-session-insights.lock.yml |
Updates generated repo-memory max patch-size text. |
.github/workflows/copilot-pr-prompt-analysis.lock.yml |
Updates generated repo-memory max patch-size text. |
.github/workflows/copilot-pr-nlp-analysis.lock.yml |
Updates generated repo-memory max patch-size text. |
.github/workflows/copilot-cli-deep-research.lock.yml |
Updates generated repo-memory max patch-size text. |
.github/workflows/copilot-agent-analysis.lock.yml |
Updates generated repo-memory max patch-size text. |
.github/workflows/audit-workflows.lock.yml |
Updates generated repo-memory max patch-size text. |
.github/workflows/agent-performance-analyzer.lock.yml |
Updates generated repo-memory max patch-size text. |
Copilot's findings
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 35/35 changed files
- Comments generated: 0
Contributor
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR targets the “run custom linters and fix the maximum of issues” objective by removing currently surfaced, high-signal lint violations in touched areas without broad refactors. It focuses on modernize/staticcheck/testifylint findings that were actionable in-place.
Go 1.25 modernize updates
strings.Split(..., "\n")loops withstrings.SplitSeq(..., "\n")iteration in test code.assert.Empty, expected/actual ordering fixes).Workflow/CLI lint cleanups
maps.Copywhere env maps are merged.fmt.Sprintfwith direct string concatenation for static path composition.Scope and intent