-
Notifications
You must be signed in to change notification settings - Fork 1.8k
JS: Add most medium
precision queries to the code-quality-extended
suite.
#20395
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
Changes from 1 commit
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 |
---|---|---|
|
@@ -4,7 +4,10 @@ | |
* @kind problem | ||
* @problem.severity recommendation | ||
* @id js/unused-parameter | ||
* @tags maintainability | ||
* @tags quality | ||
* reliability | ||
* correctness | ||
* readability | ||
Comment on lines
+7
to
+10
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. Are we allowed to have sub-category from different top-level category? ( 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. Yes, we decided to allow this when the |
||
* @precision medium | ||
*/ | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,10 @@ | |
* @kind problem | ||
* @problem.severity recommendation | ||
* @id js/debugger-statement | ||
* @tags efficiency | ||
* maintainability | ||
* language-features | ||
* @tags quality | ||
* reliability | ||
* correctness | ||
* performance | ||
Comment on lines
+9
to
+10
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. Can a single query fall under 2 sub-categories from the same top-level category? 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. Yes, but that is not clear from the documentation (as the talk about grouping could imply "disjoint" grouping). |
||
* external/cwe/cwe-489 | ||
* @precision medium | ||
*/ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,9 +5,10 @@ | |
* @kind problem | ||
* @problem.severity recommendation | ||
* @id js/regex/backspace-escape | ||
* @tags maintainability | ||
* @tags quality | ||
* maintainability | ||
* readability | ||
* regular-expressions | ||
* correctness | ||
Comment on lines
+8
to
+11
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. Would it be wrong to keep also old tag for 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.
I think we should delete 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.
Personally, I'm not sure that this would be a good fit as a Of course, that is just my opinion. 🤷 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. That is also a good point! 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.
|
||
* @precision medium | ||
*/ | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,10 @@ | |
* @kind problem | ||
* @problem.severity recommendation | ||
* @id js/implicit-return | ||
* @tags maintainability | ||
* @tags quality | ||
* reliability | ||
* correctness | ||
* readability | ||
Comment on lines
+9
to
+11
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.
|
||
* @precision medium | ||
*/ | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,10 @@ | |
* @kind problem | ||
* @problem.severity recommendation | ||
* @id js/mixed-returns | ||
* @tags reliability | ||
* maintainability | ||
* @tags quality | ||
* reliability | ||
* correctness | ||
* readability | ||
Comment on lines
+7
to
+10
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.
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. That is ok as |
||
* @precision medium | ||
*/ | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it wrong to also keep old tags?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question. As far as I know, we are not using the tags for anything and we have already started to remove them in some of the other PRs (also I think there is an upper limit on the number of tags - around 10 AFAIR) - so I think keeping them creates more confusion.
IMO, we should probably make sure to cleanup the tags for all the quality queries and only use the main and sub-category tags and CWE tags.