Skip to content

Add code quality suite selector and use that in the code quality suites #19413

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

tamasvajk
Copy link
Contributor

@tamasvajk tamasvajk commented Apr 29, 2025

This PR is changing the code-quality query suites to not list individual query IDs, but instead use a shared selector.

Note that the modification results in changes in the following suites: Java, Python, Ruby.

@github-actions github-actions bot added JS C++ Python Go Ruby Rust Pull requests that update Rust code Swift Actions Analysis of GitHub Actions labels Apr 29, 2025
@@ -1,3 +1,2 @@
ql/ruby/ql/src/queries/performance/DatabaseQueryInLoop.ql
ql/ruby/ql/src/queries/variables/DeadStoreOfLocal.ql
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This query has precision medium.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github/codeql-ruby could you check if you're okay with this change?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ping @yoff .

@tamasvajk tamasvajk marked this pull request as ready for review April 29, 2025 14:33
@tamasvajk tamasvajk requested review from a team as code owners April 29, 2025 14:33
@tamasvajk tamasvajk requested review from a team as code owners April 29, 2025 14:33
@tamasvajk tamasvajk requested a review from jonjanego April 29, 2025 14:33
@tamasvajk tamasvajk added the no-change-note-required This PR does not need a change note label Apr 29, 2025
Copy link
Contributor

@michaelnebel michaelnebel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C# LGTM!

Copy link
Contributor

@jketema jketema left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C++ and Swift 👍

Copy link
Contributor

@joefarebrother joefarebrother left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Python 👍

Copy link
Contributor

@owen-mc owen-mc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Java 👍🏻

Copy link
Contributor

@geoffw0 geoffw0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good from the point-of-view of Rust and Swift.

@@ -6,6 +6,7 @@
* @problem.severity warning
* @id rb/useless-assignment-to-local
* @tags maintainability
* quality
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What queries are supposed to get the quality tag? Should we be adding it to existing and new queries (e.g. cpp/unused-static-function, rust/unused-variable)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Analysis of GitHub Actions C# C++ Go Java JS no-change-note-required This PR does not need a change note Python Ruby Rust Pull requests that update Rust code Swift
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants