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

[EC77] rule improvment : pattern declaration not only in a static way #3

Open
dedece35 opened this issue Jan 8, 2024 · 0 comments
Open
Labels
🗃️ rule rule improvment or rule development or bug 🚀 enhancement New feature or request

Comments

@dedece35
Copy link
Member

dedece35 commented Jan 8, 2024

Describe the bug
the EC77 rule implementation is not accurate enough. see screenshot below.
the rule wants us to make a pattern as static and not declared directly in method.
But the problem is if the pattern is declared directly in code and use a string with variable concatenation, we can't declare this pattern is a static way.

Expected behavior
Check is the string pattern uses a variable (not static) in string pattern.
if yes, don't raise the issue because we can't declare it to a static way.

Screenshots
pattern

Software Versions

  • SonarQube Version: 10.3
  • Plugin Version: java plugin 1.4.3
@dedece35 dedece35 changed the title [EC77] rule improvment [EC77] rule improvment : declare pattern not only in a static way Jan 8, 2024
@dedece35 dedece35 changed the title [EC77] rule improvment : declare pattern not only in a static way [EC77] rule improvment : pattern declaration not only in a static way Jan 8, 2024
@dedece35 dedece35 added 🗃️ rule rule improvment or rule development or bug 🚀 enhancement New feature or request labels May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🗃️ rule rule improvment or rule development or bug 🚀 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant