-
Notifications
You must be signed in to change notification settings - Fork 1
Showcase of uploading SARIF to GH checks #3
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 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -12,6 +12,12 @@ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
const regex2 = /\d/; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
const regexBad = /[0-9]/; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 has a fix for the issue: /[0-9]/ can be optimized to /\d/.
Suggested change
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 has a fix for the issue: Unexpected character class '[0-9]'. Use '\d' instead.
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
console.log(regexBad) | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
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 has a fix for the issue: Insert
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
const regexUnused = /\d/; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Check failure on line 19 in with-config-file.js
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Check failureCode scanning / ESLint Disallow unused variables Error
'regexUnused' is assigned a value but never used.
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: 'regexUnused' is assigned a value but never used. The issue identified by the ESLint linter is that the variable To fix this issue, we should remove the unused variable declaration.
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: 'regexUnused' 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. Here is the code suggestion to fix the issue:
Suggested change
By commenting out or removing the declaration of 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: 'regexUnused' is assigned a value but never used. The issue with the line To fix this issue, you can simply remove the declaration of
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: 'regexUnused' is assigned a value but never used. The issue with the line To fix this issue, you can simply remove the unused variable declaration. Here is the single line change to address the ESLint warning:
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 ErrorProne issue: 'regexUnused' is assigned a value but never used. The issue indicated by the ESLint linter is that the variable To fix this issue, you can simply remove the declaration of
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 ErrorProne issue: 'regexUnused' is assigned a value but never used. The issue is that the variable To fix this issue, you can simply remove the unused variable declaration. Here's the single line change to address the ESLint warning:
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 ErrorProne issue: 'regexUnused' is assigned a value but never used. The issue identified by ESLint is that the variable To address this issue, you can simply remove the unused variable declaration. Here’s the suggested change:
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 ErrorProne issue: 'regexUnused' is assigned a value but never used. The issue is that the variable To fix this issue, you can simply remove the declaration of
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 ErrorProne issue: 'regexUnused' is assigned a value but never used. The issue reported by ESLint9 is that the variable To resolve this issue, you can simply remove the unused variable declaration. Here’s the single line change suggestion:
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 ErrorProne issue: 'regexUnused' is assigned a value but never used. The issue highlighted by ESLint indicates that the variable To fix this issue, you can simply remove the declaration of
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 ErrorProne issue: 'regexUnused' is assigned a value but never used. The issue identified by the ESLint linter is that the variable To fix this issue, you can simply remove the unused variable declaration. Here’s the single line change to address the problem:
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 ErrorProne issue: 'regexUnused' is assigned a value but never used. The issue is that the variable To fix the issue, you can simply remove the declaration of
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 ErrorProne issue: 'regexUnused' is assigned a value but never used. The issue identified by ESLint is that the variable To fix this issue, you can simply remove the unused variable declaration. Here's the single line change:
Suggested change
This change will eliminate the variable that is not being used, thus resolving the ESLint warning. 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 ErrorProne issue: 'regexUnused' is assigned a value but never used. The issue identified by ESLint indicates that the variable To resolve this issue, you can simply remove the unused variable declaration. Here's the single line change to fix the issue:
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 ErrorProne issue: 'regexUnused' is assigned a value but never used. The issue identified by ESLint is that the variable To fix this issue, you can simply remove the unused variable declaration. Here’s the suggested change:
Suggested change
This comment was generated by an experimental AI tool. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
var o = {d: 1}; | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Object.defineProperty(o, 'c', { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
set: function(value) { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Check failure
Code scanning / ESLint
Improve regexes by making them shorter, consistent, and safer. Error