NewsCrawler.org

Finding problems in code written by Claude Code before commit with Lintsure

Claude Codeが書いたコードの問題を、コミット前に見つける
Image: zenn.dev

The author, a developer of Lintsure, an open-source checker (Apache-2.0), shows how to find problems in code written with Claude Code or Cursor before it is committed[1]. Typical problems include API keys written directly into files, databases that anyone can read, and email addresses printed in logs. The check runs with npx[2] lintsure scan, needs Node.js 20 or later, and requires no installation, and the code is read only on the user's machine. Findings are marked gap (clearly a problem) or partial (a person needs to check).

The command npx lintsure setup adds an MCP[3] server to the agent's settings, so the agent can run the check and propose fixes, but it applies only the changes the user approves. The command npx lintsure plugin adds checks that run after each save and before dangerous commands; it supports Claude Code, Cursor, Codex and Gemini CLI, and three of these were added only recently. Project rules in .lintsure/rules.yml can protect files from changes or forbid patterns such as console.log, and the agent reloads these rules at the start of each session.

The author lists limits: it is not an audit or a security certification, it does not test running apps, it does not trace data flow through a whole program, and it checks dependency vulnerabilities only when npx lintsure deps is run. In a test on 304 public repositories, 160 of 201 findings (about 80%) were real problems, as checked by an AI agent reading the code.

Repository Lintsure github.com

Open source checker (Apache-2.0) that scans code written by AI coding agents for secrets, exposed data and risky settings, run via npx lintsure scan.

Stars: 3Forks: 0License: Apache-2.0Updated:

Read the original zenn.dev

Sources

  • Zenn JA

    Claude Codeが書いたコードの問題を、コミット前に見つける

    3 likes0 bookmarks0 comments

Published: First seen: Читать по-русски

Open as a page