Skip to content
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

Rules from fb-contrib not detected by plugin, but are detected in sonarqube #1602

Open
cvetan opened this issue Feb 6, 2024 · 3 comments
Open

Comments

@cvetan
Copy link

cvetan commented Feb 6, 2024

I found (for now) two rules that are not detected with plugin locally in Intellij but our sonarqube instance detected. Those are SPP_EQUALS_ON_ENUM and CLI_CONSTANT_LIST_INDEX.

Can someone check this, to mee it looks like that additional plugin rules are not detected at all.

@cvetan cvetan changed the title SPP_EQUALS_ON_ENUM from fb-contrib not detected by plugin Rules from fb-contrib not detected by plugin, but are detected in sonarqube Feb 21, 2024
@cvetan
Copy link
Author

cvetan commented Feb 21, 2024

Anyone?

@cvetan
Copy link
Author

cvetan commented Apr 10, 2024

Another one not detected locally but on sonarqube instance it is. LEST_LOST_EXCEPTION_STACK_TRACE

Can we have some response here?

@jqyp
Copy link

jqyp commented Jan 2, 2025

Hello, Cvetan,

I’ve managed to reproduce all three fb-contrib rules you mentioned using the IntelliJ SpotBugs plugin. Below are the screenshots demonstrating the issues:

1. SPP_EQUALS_ON_ENUM Rule

SPP_EQUALS_ON_ENUM Rule

2. CLI_CONSTANT_LIST_INDEX Rule

CLI_CONSTANT_LIST_INDEX Rule

3. LEST_LOST_EXCEPTION_STACK_TRACE Rule

LEST_LOST_EXCEPTION_STACK_TRACE Rule

Please ensure that the fb-contrib plugin has been added in the IntelliJ SpotBugs plugin settings. Additionally, check the Report, Filter, and Detector tabs in the IntelliJ SpotBugs plugin settings. The screenshot below shows the relevant settings:

4. SpotBugs Plugin Settings

SpotBugs Plugin Settings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants