This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 659
fix(rome_js_analyzer): fix false positive #3261 #3262
Merged
Merged
Conversation
This file contains 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
✅ Deploy Preview for rometools canceled.
|
ematipico
force-pushed
the
fix/use-camel-case-32691
branch
from
September 21, 2022 16:09
4caeb45
to
0fb575c
Compare
MichaReiser
approved these changes
Sep 21, 2022
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.
Would you mind adding a more descriptive title. It avoids that I have to open the issue when e.g. going through the commits using git.
!bench_analyzer |
MichaReiser
reviewed
Sep 21, 2022
crates/rome_js_analyze/src/semantic_analyzers/nursery/use_camel_case.rs
Outdated
Show resolved
Hide resolved
ematipico
changed the title
fix(rome_js_analyzer): #3261
fix(rome_js_analyzer): fix false positive #3261
Sep 21, 2022
Analyzer Benchmark Results
|
ematipico
force-pushed
the
fix/use-camel-case-32691
branch
from
September 21, 2022 16:30
ea5ed73
to
7e862cf
Compare
!bench_analyzer |
Analyzer Benchmark Results
|
MichaReiser
reviewed
Sep 21, 2022
crates/rome_js_analyze/src/semantic_analyzers/nursery/use_camel_case.rs
Outdated
Show resolved
Hide resolved
ematipico
force-pushed
the
fix/use-camel-case-32691
branch
from
September 23, 2022 07:13
7e862cf
to
34e6111
Compare
!bench_analyzer |
Analyzer Benchmark Results
|
3 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
This PR fixes #3261
The fix is simple. It iterates over all the
all_reads
of the binding and checks if at least one is used as aJsxRefereceIdentifier
.Test Plan
Added a new test case