-
-
Notifications
You must be signed in to change notification settings - Fork 498
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(linter/yoda): simplify code #7941
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
As discussed in #7679 (comment). |
CodSpeed Performance ReportMerging #7941 will not alter performanceComparing Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💪
Merge activity
|
Follow-on after #7679. Simplify `do_diagnostic_with_fix`, in particular the search for the operator. Also reduce `span()` calls, as they have a cost.
2665416
to
ff2a68f
Compare
## [0.15.3] - 2024-12-17 ### Features - 25ddb35 linter: Add the import/no_named_default rule (#7902) (Guillaume Piedigrossi) - ee26b44 linter: Enhance `get_element_type` to resolve more element types (#7885) (dalaoshu) ### Bug Fixes - 6f41d92 linter: False positive in `unicorn/no-useless-spread` (#7940) (dalaoshu) - 0867b40 linter: Fix configuration parser for `no-restricted-imports` (#7921) (Alexander S.) - 9c9b73d linter: Fix incorrect fixer for `prefer-regexp-test` (#7898) (Cameron) - 32935e6 linter: False positive in `jsx-a11y/label-has-associated-control` (#7881) (dalaoshu) - 14c51ff semantic: Remove inherting `ScopeFlags::Modifier` from parent scope (#7932) (Dunqing) ### Refactor - 3858221 global: Sort imports (#7883) (overlookmotel) - b99ee37 linter: Move rule "no-restricted-imports" to nursery (#7897) (Alexander S.) - ff2a68f linter/yoda: Simplify code (#7941) (overlookmotel) ### Styling - 7fb9d47 rust: `cargo +nightly fmt` (#7877) (Boshen) Co-authored-by: Boshen <[email protected]>
Follow-on after #7679.
Simplify
do_diagnostic_with_fix
, in particular the search for the operator. Also reducespan()
calls, as they have a cost.