You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Software Versions
SonarQube Version: 10.3
Plugin Version: java plugin 1.4.3
The text was updated successfully, but these errors were encountered:
dedece35
changed the title
[EC77] rule improvment
[EC77] rule improvment : declare pattern not only in a static way
Jan 8, 2024
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
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
Software Versions
The text was updated successfully, but these errors were encountered: