![JAR search and dependency download from the Maven repository](/logo.png)
io.codemodder.codemods.MoveSwitchDefaultCaseLastCodemod.report.json Maven / Gradle / Ivy
{
"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"
]
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy