-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added check for existing overrides in add-missing-override (#447)
If you have multiple findings of the same rule for the same location, some codemods will duplicate their fixes. This PR adds a patch to stop this for the `add-missing-override` codemod.
- Loading branch information
1 parent
1997307
commit 50cf515
Showing
4 changed files
with
53 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,42 @@ | |
"severity": "MEDIUM" | ||
} | ||
] | ||
}, | ||
{ | ||
"key": "AYvtrjy0LCzGLicz7Ajy", | ||
"rule": "java:S1161", | ||
"severity": "MAJOR", | ||
"component": "nahsra_WebGoat_10_23:src/main/java/SqlInjectionLesson10b.java", | ||
"project": "nahsra_WebGoat_10_23", | ||
"line": 148, | ||
"hash": "e4d44f915becc09c0ce386b304b7621b", | ||
"textRange": { | ||
"startLine": 148, | ||
"endLine": 148, | ||
"startOffset": 24, | ||
"endOffset": 39 | ||
}, | ||
"flows": [], | ||
"status": "OPEN", | ||
"message": "Add the \"@Override\" annotation above this method signature", | ||
"effort": "5min", | ||
"debt": "5min", | ||
"author": "[email protected]", | ||
"tags": [ | ||
"bad-practice" | ||
], | ||
"creationDate": "2022-04-09T14:56:12+0200", | ||
"updateDate": "2023-11-20T17:58:54+0100", | ||
"type": "CODE_SMELL", | ||
"organization": "nahsra", | ||
"cleanCodeAttribute": "CLEAR", | ||
"cleanCodeAttributeCategory": "INTENTIONAL", | ||
"impacts": [ | ||
{ | ||
"softwareQuality": "MAINTAINABILITY", | ||
"severity": "MEDIUM" | ||
} | ||
] | ||
} | ||
], | ||
"components": [ | ||
|