walkmod-sonar-plugin
walkmod-sonar-plugin copied to clipboard
sonar:AddCurlyBrackets duplicates code inside a switch statement.
Applying the transformation to a piece of code with a switch condition does not wrap up the whole code inside a case and duplicates the non-wrapped code inside the braces, effectively producing compilation errors (see attached screenshot)
Hi,
i am applying only AddCurlyBrackets transformation to file, but it hit the switch case part also and it removes all the code in side case. see below
Yes, in fact I am working on it right now :). It is true!
I will send a new update during this week.
hey thanks!
@rpau ,
I too facing the some issues with switch statement when using transformation : sonar:AddCurlyBrackets. See the attached screen shot. Some time it is adding the braces and some time the statements are repeating.
Could you please help ?
Regards, Musthafa P K