Skip to content

Conversation

@tamasvajk
Copy link
Contributor

@tamasvajk tamasvajk commented Mar 7, 2025

This query is migrated from the advance security team's quality queries.

The initial version was somewhat modified to report fewer alerts. The changes reduce the alert count in MRVA top 100 from 16800 to 4700.

I manually verified autofix suggestions. Most of them are single line additions to include a comment (// intentionally left empty) in the empty method. Some of them have some reasoning why the method is empty, and I've also seen cases where the method was changed to be abstract or an exception was thrown.

@tamasvajk tamasvajk force-pushed the tamasvajk/java_empty_method branch from 3976c8b to bfff25a Compare March 10, 2025 10:06
@tamasvajk tamasvajk marked this pull request as ready for review March 10, 2025 12:22
@tamasvajk tamasvajk requested a review from a team as a code owner March 10, 2025 12:22
@tamasvajk tamasvajk requested a review from jcogs33 March 10, 2025 12:23
@tamasvajk tamasvajk force-pushed the tamasvajk/java_empty_method branch from cd45d49 to 9662b47 Compare March 14, 2025 10:36
Copy link
Contributor

@jcogs33 jcogs33 left a comment

Choose a reason for hiding this comment

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

A couple nits regarding the test cases (feel free to ignore). Otherwise looks ready for docs review to me (assuming we're doing docs reviews for these queries?).

tamasvajk and others added 2 commits March 20, 2025 09:22
Co-authored-by: Jami <57204504+jcogs33@users.noreply.github.com>
@tamasvajk tamasvajk added the ready-for-doc-review This PR requires and is ready for review from the GitHub docs team. label Mar 20, 2025
@mchammer01 mchammer01 self-requested a review March 21, 2025 09:59
@mchammer01
Copy link
Contributor

I'll review this on behalf of Docs today.

@mchammer01
Copy link
Contributor

How can I access a preview of the query help? (I know I can review the files in the diff but a preview would be super helpful).

mchammer01
mchammer01 previously approved these changes Mar 21, 2025
Copy link
Contributor

@mchammer01 mchammer01 left a comment

Choose a reason for hiding this comment

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

@tamasvajk - Approving this on behalf of Docs ✨

I would begrateful if you could look at my comments/suggestions. Hope these are helpful 😃

Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com>
Copy link
Contributor

@knewbury01 knewbury01 left a comment

Choose a reason for hiding this comment

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

@tamasvajk @jcogs33 this all looks great to me!

@tamasvajk tamasvajk merged commit b21968c into github:main Mar 26, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Java ready-for-doc-review This PR requires and is ready for review from the GitHub docs team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants