In the course of QA work on Objectledge & friends codebase, I'm planning to enable as many static code checks in Eclipse as practical.
Here is a list of checks that gnerate warnings at this point:
Check |
Fix |
Supress |
|---|---|---|
Building / Output folder / Duplicated resources |
1 |
|
Errors/Warnings / Code style / Undocumented empty block |
14 |
|
Errors/Warnings / Code style / Access to non-accessible member of enclosing class |
247 |
|
Errors/Warnings / Potential programming problems / Serializable class withoug serialVesionUID |
120 |
|
Errors/Warnings / Potential programming problems / Empty statement |
47 |
|
Errors/Warnings / Name shadowing and conflicts / Field declaration hides another field or variable |
8 |
|
Errors/Warnings / Name shadowing and conflicts / Local variable declaration hides another field or variable |
41 + 295 |
|
Errors/Warnings / Unnecessary code / Local variable is never read |
327 |
17 |
Errors/Warnings / Unnecessary code / Unnecessary imports |
39 |
|
Errors/Warnings / Unnecessary code / Unused or unread private member |
174 |
12 |
Errors/Warnings / Unnecessary code / Unnecessary cast or 'instanceof' operation |
71 |
6 |
Errors/Warnings / Unnecessary code / Unnecessary declaration of thrown checked exception |
77 |
|
Errors/Warnings / JDK 5.0 / Unsafe type operation involving raw types |
2360 |
|
JavaDocs |
~10k |
? |
