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

💅 lint/correctness/noUnreachable false positive #1827

Closed
1 task done
jer-sen opened this issue Feb 14, 2024 · 0 comments · Fixed by #1856
Closed
1 task done

💅 lint/correctness/noUnreachable false positive #1827

jer-sen opened this issue Feb 14, 2024 · 0 comments · Fixed by #1856
Labels
A-Linter Area: linter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug

Comments

@jer-sen
Copy link

jer-sen commented Feb 14, 2024

Environment information

CLI:
  Version:                      1.4.1
  Color support:                true

Platform:
  CPU Architecture:             x86_64
  OS:                           windows

Environment:
  BIOME_LOG_DIR:                unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           "v20.10.0"      
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         "yarn/1.22.21"

Biome Configuration:
  Status:                       Loaded successfully
  Formatter disabled:           false
  Linter disabled:              false
  Organize imports disabled:    false
  VCS disabled:                 true

Workspace:
  Open Documents:               0

Rule name

lint/correctness/noUnreachable

Playground link

https://biomejs.dev/playground/?code=dAByAHkAIAB7AAoAIAAgAHUAbgBkAGUAZgBpAG4AZQBkADsACgAgACAAdAByAHkAIAB7AAoAIAAgACAAIAB3AGgAaQBsAGUAIAAoAHQAcgB1AGUAKQAgAHsACgAgACAAIAAgACAAIABpAGYAIAAoAEQAYQB0AGUALgBuAG8AdwAoACkAIAA%2BACAAMAApACAAewAKACAAIAAgACAAIAAgACAAIAB1AG4AZABlAGYAaQBuAGUAZAA7AAoAIAAgACAAIAAgACAAIAAgAGIAcgBlAGEAawA7AAoAIAAgACAAIAAgACAAfQAKACAAIAAgACAAfQAKACAAIAB9ACAAZgBpAG4AYQBsAGwAeQAgAHsACgAgACAAIAAgAGkAZgAgACgARABhAHQAZQAuAG4AbwB3ACgAKQAgAD4AIAAwACkAIAB1AG4AZABlAGYAaQBuAGUAZAA7AAoAIAAgAH0ACgAgACAAaQBmACAAKABEAGEAdABlAC4AbgBvAHcAKAApACAAPgAgADAAKQAgAHUAbgBkAGUAZgBpAG4AZQBkADsACgB9ACAAYwBhAHQAYwBoACAAewAKACAAIAB1AG4AZABlAGYAaQBuAGUAZAA7AAoAfQA%3D

Expected result

No lint/correctness/noUnreachable error, code is reachable (and always reached).

The code is pretty weird but it's the minimum repro I found from my real code.

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@Conaclos Conaclos added A-Linter Area: linter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug labels Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Linter Area: linter L-JavaScript Language: JavaScript and super languages S-Bug-confirmed Status: report has been confirmed as a valid bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants