All Packages | 85 | 8 | 0 | 10 | 0 |
src/org/gradle/api | 1 | 0 | 0 | 0 | 0 |
src/org/gradle/api/internal | 1 | 1 | 0 | 3 | 0 |
src/org/gradle/api/internal/artifacts/dsl | 3 | 0 | 0 | 0 | 0 |
src/org/gradle/api/internal/artifacts/dsl/dependencies | 2 | 0 | 0 | 0 | 0 |
src/org/gradle/api/internal/artifacts/publish/maven/deploy/groovy | 3 | 0 | 0 | 0 | 0 |
src/org/gradle/api/internal/file | 3 | 0 | 0 | 0 | 0 |
src/org/gradle/api/internal/plugins | 1 | 0 | 0 | 0 | 0 |
src/org/gradle/api/internal/project | 5 | 0 | 0 | 0 | 0 |
src/org/gradle/api/internal/tasks | 2 | 0 | 0 | 0 | 0 |
src/org/gradle/api/plugins | 5 | 1 | 0 | 1 | 0 |
src/org/gradle/api/plugins/quality | 5 | 0 | 0 | 0 | 0 |
src/org/gradle/api/plugins/scala | 1 | 0 | 0 | 0 | 0 |
src/org/gradle/api/tasks | 2 | 0 | 0 | 0 | 0 |
src/org/gradle/api/tasks/bundling | 14 | 2 | 0 | 2 | 0 |
src/org/gradle/api/tasks/compile | 9 | 1 | 0 | 1 | 0 |
src/org/gradle/api/tasks/javadoc | 2 | 0 | 0 | 0 | 0 |
src/org/gradle/api/tasks/scala | 5 | 2 | 0 | 2 | 0 |
src/org/gradle/api/tasks/testing | 3 | 0 | 0 | 0 | 0 |
src/org/gradle/api/tasks/testing/junit | 3 | 0 | 0 | 0 | 0 |
src/org/gradle/api/tasks/testing/testng | 2 | 0 | 0 | 0 | 0 |
src/org/gradle/api/tasks/util | 5 | 0 | 0 | 0 | 0 |
src/org/gradle/configuration | 1 | 0 | 0 | 0 | 0 |
src/org/gradle/groovy/scripts | 1 | 0 | 0 | 0 | 0 |
src/org/gradle/initialization | 3 | 0 | 0 | 0 | 0 |
src/org/gradle/util | 3 | 1 | 0 | 1 | 0 |
1 | AbcComplexity | Checks the ABC metric of size/complexity for methods/classes.A method (or "closure field") with an ABC complexity value (score) greater than the maxMethodComplexity property (which defaults to 60) causes a violation. Likewise, a class that has an (average method) ABC complexityvalue greater than the maxClassAverageMethodComplexity property (which defaults to 60) causes a violation. |
2 | BooleanInstantiation | Use Boolean.valueOf() for variable values or Boolean.TRUE and Boolean.FALSE for constant values instead of calling the Boolean() constructor directly or calling Boolean.valueOf(true) or Boolean.valueOf(false). |
3 | ClassSize | Checks if the size of a class exceeds the number of lines specified by the maxLines property, which defaults to 1000. |
4 | CloneableWithoutClone | A class that implements java.lang.Cloneable should define a clone() method. |
5 | ConstantIfExpression | Checks for if statements with a constant value for the if expression, such as true, false, null, or a literal constant value. |
6 | ConstantTernaryExpression | Checks for ternary expressions with a constant value for the boolean expression, such as true, false, null, or a literal constant value. |
7 | CyclomaticComplexity | Checks the cyclomatic complexity for methods/classes.A method (or "closure field") with a cyclomatic complexity value greater than the maxMethodComplexity property (which defaults to 20) causes a violation. Likewise, a class that has an (average method) cyclomatic complexityvalue greater than the maxClassAverageMethodComplexity property (which defaults to 20) causes a violation. |
8 | DuplicateImport | Duplicate import statements are unnecessary. |
9 | EmptyCatchBlock | In most cases, exceptions should not be caught and ignored (swallowed). |
10 | EmptyElseBlock | Empty else blocks are confusing and serve no purpose. |
11 | EmptyFinallyBlock | Empty finally blocks are confusing and serve no purpose. |
12 | EmptyForStatement | Empty for statements are confusing and serve no purpose. |
13 | EmptyIfStatement | Empty if statements are confusing and serve no purpose. |
14 | EmptySwitchStatement | Empty switch statements are confusing and serve no purpose. |
15 | EmptySynchronizedStatement | Empty synchronized statements are confusing and serve no purpose. |
16 | EmptyTryBlock | Empty try blocks are confusing and serve no purpose. |
17 | EmptyWhileStatement | Empty while statements are confusing and serve no purpose. |
18 | EqualsAndHashCode | If either the boolean equals(Object) or the int hashCode() methods are overridden within a class, then both must be overridden. |
19 | ImportFromSamePackage | An import of a class that is within the same package is unnecessary. |
20 | JUnitAssertAlwaysFails | Checks for JUnit assert() method calls with constant arguments such that the assertion always fails. This includes: assertTrue(false), assertFalse(true) and assertNull(CONSTANT). |
21 | JUnitAssertAlwaysSucceeds | Checks for JUnit assert() method calls with constant arguments such that the assertion always succeeds. This includes: assertTrue(true), assertFalse(false) and assertNull(null). |
22 | JUnitPublicNonTestMethod | Checks if a JUnit test class contains public methods other than standard test methods, JUnit framework methods or methods with JUnit annotations. |
23 | JUnitSetUpCallsSuper | Checks that if the JUnit setUp() method is defined, that it includes a call to super.setUp(). |
24 | JUnitTearDownCallsSuper | Checks that if the JUnit tearDown() method is defined, that it includes a call to super.tearDown(). |
25 | MethodSize | Checks if the size of a method exceeds the number of lines specified by the maxLines property, which defaults to 100. |
26 | NestedBlockDepth | Checks for blocks or closures nested more than maxNestedBlockDepth levels deep, which defaults to 5. |
27 | ReturnFromFinallyBlock | Returning from a finally block is confusing and can hide the original exception. |
28 | StringInstantiation | Use a String literal (e.g., "...") instead of calling the corresponding String constructor (new String("..")) directly. |
29 | ThrowExceptionFromFinallyBlock | Throwing an exception from a finally block is confusing and can hide the original exception. |
30 | UnnecessaryGroovyImport | A Groovy file does not need to include an import for classes from java.lang, java.util, java.io, java.net, groovy.lang and groovy.util, as well as the classes java.math.BigDecimal and java.math.BigInteger. |
31 | UnnecessaryTernaryExpression | Checks for ternary expressions where the conditional expression always evaluates to a boolean and the true and false expressions are merely returning true and false constants. Also checks for ternary expressions where both expressions are the same constant or variable. |
32 | UnusedImport | Imports for a class that is never referenced within the source file is unnecessary. |
33 | UnusedPrivateField | Checks for private fields that are not referenced within the same class. |
34 | UnusedPrivateMethod | Checks for private methods that are not referenced within the same class. |
35 | UnusedVariable | Checks for variables that are never referenced. |