-
-
Notifications
You must be signed in to change notification settings - Fork 472
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
fix(linter): eslint/radix
rule correctly check for unbound symbols
#5446
Merged
graphite-app
merged 1 commit into
main
from
09-04-fix_linter_eslint_radix_rule_correctly_check_for_unbound_symbols
Sep 5, 2024
Merged
fix(linter): eslint/radix
rule correctly check for unbound symbols
#5446
graphite-app
merged 1 commit into
main
from
09-04-fix_linter_eslint_radix_rule_correctly_check_for_unbound_symbols
Sep 5, 2024
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
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @overlookmotel and the rest of your teammates on Graphite |
This was referenced Sep 4, 2024
CodSpeed Performance ReportMerging #5446 will not alter performanceComparing Summary
|
DonIsaac
changed the base branch from
09-04-refactor_linter_simplify_eslint_radix_rule
to
graphite-base/5446
September 4, 2024 16:52
overlookmotel
force-pushed
the
09-04-fix_linter_eslint_radix_rule_correctly_check_for_unbound_symbols
branch
from
September 4, 2024 16:52
45ec84a
to
59ad46e
Compare
overlookmotel
force-pushed
the
graphite-base/5446
branch
from
September 4, 2024 16:52
a116338
to
1d3e973
Compare
DonIsaac
force-pushed
the
09-04-fix_linter_eslint_radix_rule_correctly_check_for_unbound_symbols
branch
from
September 4, 2024 16:56
59ad46e
to
fcd4955
Compare
This was referenced Sep 4, 2024
DonIsaac
reviewed
Sep 4, 2024
camc314
approved these changes
Sep 4, 2024
Merge activity
|
…5446) `SymbolTable::get_symbol_id_from_name(name).is_none()` is not always correct, because it will return `false` if there is a binding *anywhere* in the AST with that name, whereas what we actually want to know is whether *this* `IdentifierReference` is referring to a global or not. Instead, look up whether this reference is resolved or not using `SymbolTable::is_global_reference`. The 3 test cases added were not working prior to this change.
Boshen
force-pushed
the
09-04-fix_linter_eslint_radix_rule_correctly_check_for_unbound_symbols
branch
from
September 5, 2024 01:18
fcd4955
to
6285a02
Compare
graphite-app
bot
deleted the
09-04-fix_linter_eslint_radix_rule_correctly_check_for_unbound_symbols
branch
September 5, 2024 01:23
Merged
Boshen
added a commit
that referenced
this pull request
Sep 7, 2024
## [0.9.3] - 2024-09-07 ### Features - be3a432 linter: Implement typescript/no-magic-numbers (#4745) (Alexander S.) - 09aa86d linter/eslint: Implement `sort-vars` rule (#5430) (Jelle van der Waa) - 2ec2f7d linter/eslint: Implement no-alert (#5535) (Edwin Lim) - a786acf linter/import: Add no-dynamic-require rule (#5389) (Jelle van der Waa) - 4473779 linter/node: Implement no-exports-assign (#5370) (dalaoshu) - b846432 linter/oxc: Add fixer for `erasing-op` (#5377) (camc314) - aff2c71 linter/react: Implement `self-closing-comp` (#5415) (Jelle van der Waa) ### Bug Fixes - 0df1d9d ast, codegen, linter: Panics in fixers. (#5431) (rzvxa) - cdd1a91 linter: Typescript/no-magic-numbers: remove double minus for reporting negative bigint numbers (#5565) (Alexander S.) - ff88c1f linter: Don't mark binding rest elements as unused in TS function overloads (#5470) (Cam McHenry) - 088733b linter: Handle loops in `getter-return` rule (#5517) (Cam McHenry) - 82c0a16 linter: `tree_shaking/no_side_effects_in_initialization` handle JSX correctly (#5450) (overlookmotel) - 6285a02 linter: `eslint/radix` rule correctly check for unbound symbols (#5446) (overlookmotel) - c8ab353 linter/tree-shaking: Align JSXMemberExpression's report (#5548) (mysteryven) - 5187f38 linter/tree-shaking: Detect the correct export symbol resolution (#5467) (mysteryven) ### Performance - 8170954 linter/react: Add should_run conditions for react rules (#5402) (Jelle van der Waa) ### Documentation - a540215 linter: Update docs `Examples` for linter rules (#5513) (dalaoshu) - 7414190 linter: Update docs `Example` for linter rules (#5479) (heygsc) ### Refactor - 0ac420d linter: Use meaningful names for diagnostic parameters (#5564) (Don Isaac) - 81a394d linter: Deduplicate code in `oxc/no-async-await` (#5549) (DonIsaac) - 979c16c linter: Reduce nested if statements in eslint/no_this_before_super (#5485) (IWANABETHATGUY) - 1d3e973 linter: Simplify `eslint/radix` rule (#5445) (overlookmotel) - fdb8857 linter: Use "parsed pattern" in `no_div_regex` rule. (#5417) (rzvxa) - 2ccbd93 linter: `react/jsx_no_undef` rule `get_member_ident` do not return Option (#5411) (overlookmotel) ### Styling - 2a43fa4 linter: Introduce the writing style from PR #5491 and reduce the if nesting (#5512) (dalaoshu)- d8b29e7 Add trailing line breaks to JSON files (#5544) (overlookmotel)- 694f032 Add trailing line breaks to `package.json` files (#5542) (overlookmotel) ### Testing - 340b535 linter/no-unused-vars: Arrow functions in tagged templates (#5510) (Don Isaac) - af69393 linter/no-useless-spread: Ensure spreads on identifiers pass (#5561) (DonIsaac)- dc92489 Add trailing line breaks to conformance fixtures (#5541) (overlookmotel) Co-authored-by: Boshen <1430279+Boshen@users.noreply.github.com>
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.
SymbolTable::get_symbol_id_from_name(name).is_none()
is not always correct, because it will returnfalse
if there is a binding anywhere in the AST with that name, whereas what we actually want to know is whether thisIdentifierReference
is referring to a global or not.Instead, look up whether this reference is resolved or not using
SymbolTable::is_global_reference
.The 3 test cases added were not working prior to this change.