Skip to content
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

Panic called Option::unwrap() on a None value in oxc_linter/src/rules/unicorn/consistent_function_scoping.rs:188:50 #5608

Closed
qarmin opened this issue Sep 8, 2024 · 1 comment · Fixed by #5613
Assignees
Labels
A-linter Area - Linter C-bug Category - Bug

Comments

@qarmin
Copy link

qarmin commented Sep 8, 2024

File content(at the bottom should be attached raw, not formatted file - github removes some non-printable characters, so copying from here may not work):

if(f)function f(){}

command

timeout -v 100 oxlint -D all -D nursery --import-plugin --jsdoc-plugin --jest-plugin --vitest-plugin --jsx-a11y-plugin --nextjs-plugin --react-perf-plugin TEST___FILE.js --fix

cause this

thread '<unnamed>' panicked at crates/oxc_linter/src/rules/unicorn/consistent_function_scoping.rs:188:50:
called `Option::unwrap()` on a `None` value
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

##### Automatic Fuzzer note, output status "None", output signal "Some(6)"

compressed.zip

@qarmin qarmin added the C-bug Category - Bug label Sep 8, 2024
@camc314
Copy link
Contributor

camc314 commented Sep 8, 2024

@Boshen Boshen self-assigned this Sep 8, 2024
@DonIsaac DonIsaac added the A-linter Area - Linter label Sep 8, 2024
@DonIsaac DonIsaac assigned DonIsaac and unassigned Boshen Sep 8, 2024
@Boshen Boshen closed this as completed Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-linter Area - Linter C-bug Category - Bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants