io.codemodder.codemods.MoveSwitchDefaultCaseLastCodemod.report.json Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of core-codemods Show documentation
Show all versions of core-codemods Show documentation
Codemods for fixing common errors across many Java projects
{
"summary" : "Moved default case in switch to last entry",
"change": "Moved default case to last to make the code more readable",
"reviewGuidanceJustification" : "This codemod is currently disabled by default because it doesn't check if there are fall-through cases before the default before moving it. Therefore, changes should be reviewed intently.",
"references" : [
"https://cwe.mitre.org/data/definitions/670.html",
"https://pmd.github.io/pmd/pmd_rules_java_bestpractices.html#defaultlabelnotlastinswitchstmt",
"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/switch"
]
}