Skip to content

[lint-monster] Guard direct slice and string indexing #71007

Done

Description

@github-actions

Daily custom lint findings

The 2026-10-23 pre-check for make golint-custom reported 1,464 direct slice or string indexing findings across 300 files. Scan run: §39890985293.

Representative diagnostics

  • pkg/logger/logger.go:55:60: direct slice indexing for basePaletteColors[idx] without a recognized bounds check.
  • pkg/parser/schedule_parser.go: direct slice indexing findings in parser paths.
  • pkg/workflow/js.go: direct indexing findings in JavaScript handling.

Top affected paths

  • pkg/parser/schedule_parser.go (40)
  • pkg/workflow/js.go (39)
  • pkg/workflow/trigger_parser.go (32)
  • pkg/cli/update_actions_content_refs.go (32)
  • pkg/workflow/expression_parser.go (26)
  • pkg/cli/spec.go (24)
  • pkg/parser/github_urls.go (23)
  • pkg/linters/sprintferrdot/sprintferrdot.go (20)
  • pkg/parser/inline_section_helpers.go (19)
  • pkg/parser/schema_errors.go (19)
  • pkg/parser/schedule_time_utils.go (16)
  • pkg/workflow/expression_optimizer.go (16)

Remediation checklist

  • Review each direct slice or string indexing finding and establish the index and length invariant.
  • Add the smallest correct bounds guard or safe access path; handle malformed or missing input using the surrounding function contract.
  • Preserve behavior for valid inputs, keep edits scoped to these diagnostics, and do not suppress the analyzer.
  • Run make fmt after Go edits, then validate with make golint-custom.

Recurrence: The tracker for the 2026-10-13 scan, #68289, is closed. The 2026-10-22 scan reported 1,471 findings; this scan reports 1,464.

Generated by 🧌 LintMonster · scan run §39890985293

Generated by 🧌 LintMonster · codex · gpt60 · ~3 AIC · ⌖ ~1 AIC · ⊞ 16.6K · ◷

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    automationcookielintlint-monster

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions