-
Notifications
You must be signed in to change notification settings - Fork 1
Auto fixes generated by codacy-cli #22
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -8,7 +8,7 @@ | |||||||||
}; | ||||||||||
|
||||||||||
//fail | ||||||||||
const regex = /[0-9]/; | ||||||||||
const regex = /\d/; | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❌ Codacy found a critical Error Prone issue: 'regex' is assigned a value but never used. The issue identified by the ESLint linter is that the variable To fix this issue, you should either remove the unused variable or use it in the code. If the variable is not needed, the simplest solution is to remove the declaration. Here's the code suggestion to remove the unused variable
Suggested change
This comment was generated by an experimental AI tool. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❌ Codacy found a critical Error Prone issue: 'regex' is assigned a value but never used. The issue identified by ESLint is that the variable To fix this issue, you should remove the unused variable declaration. Here is the code suggestion to fix the issue:
Suggested change
By commenting out or removing the unused variable, you clean up the code and eliminate the warning from ESLint. This comment was generated by an experimental AI tool. |
||||||||||
|
||||||||||
const regex2 = /\d/; | ||||||||||
|
||||||||||
|
Check failure
Code scanning / ESLint
Disallow unused variables Error