Package io.codemodder.codemods.sonar
package io.codemodder.codemods.sonar
-
ClassesClassDescriptionA codemod for automatically fixing missing @Override annotations.A codemod for setting a private constructor to hide implicit public constructor (Sonar)A codemod for declaring a variable on a separate line.A codemod for defining a constant for a literal string that is duplicated n times.A codemod for automatically removing redundant static flags on nested enums.A codemod that enforces the appropriate parsing technique for converting Strings to primitive types in the codebase.A codemod for automatically fixing overridden methods that do not match their parent methods in synchronization.A codemod for removing commented-out lines of code.A codemod to remove redundant variable creationCodemod to remove unused local variables which expression is a variable or just a Literal expression like a single boolean, char, double, integer, long, null, string or a text block string.A codemod for removing unused private methods.Codemod to remove useless pair of parenthesesA codemod for replacing 'Stream.collect(Collectors.toList())' with 'Stream.toList()'A codemod to replace `@Controller` with `@RestController` and remove `@ResponseBody` annotationsThis codemod knows how to fix JNDI vulnerabilities found by sonar.Fixes Object Deserialization issues found by sonar rule javasecurity:S5135.A codemod for automatically removing unthrowable exceptions.Fixes SSRF issues found by sonar rule javasecurity:S5144.Sonar remediation codemod for S2658: Classes should not be loaded dynamically.A codemod for automatically replacing replaceAll() calls to replace() .