Repository navigation
Add AI Guard - #1949
Merged
mre merged 1 commit intoDec 3, 2026
Merged
Add AI Guard#1949
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributing criteria check[PASS]
|
| Criterion | Result |
|---|---|
| Stars (min 20) | pass 21 stars |
| Human contributors (min 2) | pass 3 human contributors |
| Age (min 6 months) | pass created 238 days ago (at least 6 months) |
All tool eligibility criteria passed. Thank you for your contribution.
Member
|
Thanks! |
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.
Adds AI Guard (
eslint-plugin-ai-guard, MIT) asdata/tools/eslint-plugin-ai-guard.yml.It's an ESLint plugin and CLI for problems that are common in AI-generated JavaScript and TypeScript. It's deterministic and doesn't call an LLM, so the entry is tagged
ai-generated-codebut notuses-llm. There are 33 AST rules covering async misuse, error handling, security and agent shortcuts such as placeholder implementations and tests with no assertions.ai-guard integrityreports changes that weaken checks: skipped or deleted tests, new suppressions, lowered coverage or TypeScript settings. Output can be SARIF 2.1.0 for GitHub Code Scanning. The rules also run unchanged in Oxlint.Requirements:
I maintain the project. The generated README is not part of this PR.
🤖 Generated with Claude Code