1 of 12

Static code analysis

Java User Group

(Silesia)

VS attachment

2 of 12

VS

3 of 12

Rywalizacja

4 of 12

Delete.java[0]: Cant find method comment (MultilineJavadocTagsCheck)�Delete.java[0]: Problem finding class/interface comment (JavadocTagsCheck)�Delete.java[1]: Line does not match expected header line of '/**'. (HeaderCheck)�Delete.java[4]: Wrong order for 'com.jcabi.log.Logger' import. (ImportOrderCheck)�Delete.java[5]: Unused import - java.nio.file.Path. (UnusedImportsCheck)�Delete.java[9]: Missing a Javadoc comment. (JavadocVariableCheck)�Delete.java[11]: Missing a Javadoc comment. (JavadocMethodCheck)�Delete.java[11]: Parameter cmode should be final. (FinalParametersCheck)�Delete.java[12]: Reference to instance variable 'mode' needs "this.". (RequireThisCheck)�Delete.java[15]: Method 'file' is not designed for extension - needs to be abstract, final or empty. (DesignForExtensionCheck)�Delete.java[15]: Missing a Javadoc comment. (JavadocMethodCheck)�Delete.java[15]: Parameter path should be final. (FinalParametersCheck)�Delete.java[19]: Method 'file' is not designed for extension - needs to be abstract, final or empty. (DesignForExtensionCheck)�Delete.java[19]: Missing a Javadoc comment. (JavadocMethodCheck)�Delete.java[19]: Parameter file should be final. (FinalParametersCheck)�Delete.java[20]: 'if' construct must use '{}'s. (NeedBracesCheck)�Delete.java[20]: '!' is followed by whitespace. (NoWhitespaceAfterCheck)�Delete.java[22]: 'if' is not followed by whitespace. (WhitespaceAroundCheck)�Delete.java[22]: Reference to instance variable 'mode' needs "this.". (RequireThisCheck)�Delete.java[22]: '{' is not preceded with whitespace. (WhitespaceAroundCheck)�Delete.java[23]: Concatenation of string literals prohibited (StringLiteralsConcatenationCheck)�[ERROR] Failure: 21 Checkstyle violations

5 of 12

Delete.java[1]: Line does not match expected header line of '/**'�Delete.java[4]: Wrong order for 'com.jcabi.log.Logger' import.�Delete.java[5]: Unused import - java.nio.file.Path.�Delete.java[11]: Parameter cmode should be final.�Delete.java[12]: Reference to instance variable 'mode' needs "this.".�Delete.java[15]: Method 'file' is not designed for extension�needs to be abstract, final or empty.�Delete.java[15]: Parameter path should be final.�Delete.java[19]: Method 'file' is not designed for extension�needs to be abstract, final or empty.�Delete.java[19]: Parameter file should be final.�Delete.java[20]: 'if' construct must use '{}'s.�Delete.java[20]: '!' is followed by whitespace.�Delete.java[22]: 'if' is not followed by whitespace.�Delete.java[22]: Reference to instance variable 'mode' needs "this.".�Delete.java[22]: '{' is not preceded with whitespace.�Delete.java[23]: Concatenation of string literals prohibited

6 of 12

7 of 12

When doing a String.toLowerCase()/toUpperCase() call, use a Locale (UseLocaleWithCaseConversions)

For instance, "TITLE".toLowerCase() in a Turkish locale returns "tıtle", where 'ı' is the LATIN SMALL LETTER DOTLESS I character. To obtain correct results for locale insensitive strings, use toLowerCase(Locale.ENGLISH).

8 of 12

9 of 12

[ERROR] \src\main\java\com\opentangerine\clean\Console.java[50-51]: Document empty constructor (UncommentedEmptyConstructor)

[ERROR] \src\main\java\com\opentangerine\clean\Console.java[50-51]: Avoid unnecessary constructors - the compiler will generate these for you (UnnecessaryConstructor)

[ERROR] \src\main\java\com\opentangerine\clean\Console.java[39-70]: Avoid doing field initialization outside constructor. (ConstructorShouldDoInitialization)

10 of 12

11 of 12

[ERROR] \src\main\java\com\opentangerine\clean\Replace.java[56]: @param tag description should start with capital letter (RegexpSinglelineCheck)

[ERROR] \src\main\java\com\opentangerine\clean\Replace.java[57]: @param tag description should start with capital letter (RegexpSinglelineCheck)

[ERROR] \src\main\java\com\opentangerine\clean\Replace.java[58]: @return tag description should start with capital letter (RegexpSinglelineCheck)

12 of 12

EOF