Skip to content

pnpm lint rewrite path reports "No issues found" while silently dropping ESLint warnings #2832

Closed as duplicate

Description

@yangtianxia

Summary

When a pnpm <script> that runs ESLint is intercepted by the Claude Code hook (rtk hook claude), the summarized output reports "ESLint: No issues found" with exit code 0 even though ESLint actually emitted warnings. The warnings are silently dropped. Running rtk lint directly on the same args reports them correctly, so the two code paths disagree.

Environment

  • rtk 0.42.4 (homebrew, macOS arm64)
  • ESLint 8.57.1
  • Invoked via the rtk hook claude Claude Code hook

Repro

package.json script:

"lint": "eslint assets/scripts build-templates --ext .ts,.js"

The project has 5 max-lines-per-function warnings (0 errors).

$ pnpm lint          # rewritten by the hook
ESLint: No issues found
exit code: 0

$ rtk lint assets/scripts build-templates --ext .ts,.js
ESLint: 0 errors, 5 warnings in 4 files
Top rules:
  max-lines-per-function (5x)
...

Expected

The pnpm-script path should surface warnings just like rtk lint does, or at minimum not claim "No issues found" when warnings exist.

Impact

Workflows that require zero warnings (e.g. a "lint must be clean before commit" rule) are silently defeated — the summary hides real warnings and the exit code stays 0, so both humans and LLM agents believe the code is clean.

Activity

  1. pszymkowiak commented on Jul 5, 2026

    @pszymkowiak
    Collaborator

    wshm · Automated triage by AI

    🔍 Automated Triage

    🐛 Category bug
    🟠 Priority high
    🎯 Confidence 90%

    Summary

    The pnpm-script rewrite path's ESLint summarizer disagrees with rtk lint's direct path, silently reporting 'No issues found'/exit 0 despite real warnings, defeating lint-clean gates; fix the pnpm rewrite's ESLint output parser to surface warning counts like the direct path.

    This looks like a simple fix that could be auto-resolved. Repo maintainers can use /wshm fix to attempt it.

    📁 Relevant files
    • src/rewrite/pnpm.rs
    • src/summarize/eslint.rs

    Triaged automatically by wshm · This is an automated analysis, not a human review.

  2. KuSh commented on Sep 5, 2026

    @KuSh
    Collaborator

    Closing as a duplicate of #2094, which tracks the same problem with the more complete discussion. Please follow up there; if your case differs in a way that issue does not cover, comment here and it can be reopened.

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

    area:clibugpriority:high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions