feat: add 5 conservative analysis rules#39
Merged
Merged
Conversation
…n, duplicate-imports, no-unreachable-after-return, no-throw-literal) - Added no-console rule: detects console.log/warn/error/info/debug calls - Added no-empty-function rule: flags empty function bodies (skips commented stubs) - Added duplicate-imports rule: detects multiple imports from same module - Added no-unreachable-after-return rule: flags unreachable code after return/throw/break/continue - Added no-throw-literal rule: detects throwing literals instead of Error objects - Registered all 5 rules in config defaults, all 4 presets, and rule registry - Updated strict preset to elevate no-console, no-unreachable-after-return, no-throw-literal to error - Added 20 new tests (194 total), updated config test ALL_RULE_IDS - Updated export workflow Known Limitations and ROADMAP - Updated README rules tables, config example, preset descriptions, roadmap - Updated CHANGELOG with v6 entry
🔍 InspectoRepo Analysis
📦 Package Highlights
🏷️ Top Rules by Issue Count
Top affected package: packages/cli (40 issues)
|
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.
Summary
Adds 5 new conservative analysis rules to expand InspectoRepo's coverage to 14 built-in rules.
New Rules
Changes
Checks