This repository was archived by the owner on Aug 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 649
feat(rome_js_analyze): new lint rule noExcessiveComplexity
#4657
Merged
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
3fc2504
Implement most of the boilerplate
arendjr fc417c2
WIP: Implemented a bunch of complexity rules
arendjr 132306d
Statements mostly covered, some expressions covered
arendjr cc4cac5
More expressions covered
arendjr bf8c61b
Try a visitor approach
arendjr e574f47
All tests pass
arendjr 7627a3c
Basic tests
arendjr 8999aa6
Remove temporary file
arendjr 01a056e
Update description
arendjr 3d20933
Run codegen
arendjr ac0378b
Move all tests to specs
arendjr f452605
Words
arendjr 6f6a5dd
WIP: Adopt visitor approach
arendjr 3314c42
Fix tests with visitor-based approach
arendjr b9906a1
Fix for else-if statements
arendjr 25a2b60
PR feedback (low hanging fruit first)
arendjr 0ce0a8e
Use u8 for score and nesting level and enforce limits
arendjr c04e44e
Add test for invalid config
arendjr 8afc901
Improve ranges for lambdas + add lambdas test
arendjr 29da7f4
Add test for excessive nesting
arendjr f4b8050
Add docs for options
arendjr a1ba90d
Document options
arendjr efcc413
Merge remote-tracking branch 'upstream/main' into cognitive-complexity
arendjr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update description
- Loading branch information
commit 01a056ecca4442b861ce3aff7f29777b47cfb405
There are no files selected for viewing
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
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.
Uh oh!
There was an error while loading. Please reload this page.