Skip to content

[deep-report] Un-shadow stdlib log in 6 files so rawloginlib linter can fire #45508

Description

@github-actions

Description

Six files declare var log = logger.New(...), shadowing the stdlib log identifier: pkg/linters/largefunc, pkg/linters/deferinloop, pkg/linters/httprespbodyclose, pkg/linters/httpstatuscode, pkg/linters/excessivefuncparams, and pkg/modelsdev/catalog.go. Because log resolves to pkg/logger rather than stdlib log, the rawloginlib linter cannot detect accidental raw-log calls in these packages. Rename the package-level variable (e.g. var pkgLog = logger.New(...)) to restore the linter's coverage.

Expected Impact

Re-enables rawloginlib protection in 6 packages (including the linter packages themselves), closing a hole where accidental raw stdlib logging would go undetected. Mechanical rename + call-site update within each file.

Suggested Agent

ESLint Refiner / LintMonster, or any code-edit agent.

Estimated Effort

Quick (< 1 hour)

Data Source

DeepReport analysis 2026-07-14; source report [repository-quality] #45489.

Generated by 🔬 Deep Report · 260.7 AIC · ⌖ 17.6 AIC · ⊞ 10K ·

  • expires on Jul 16, 2026, 7:23 AM UTC-08:00

Activity

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

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions