Skip to content

Update code.

Update code. #108

GitHub Actions / Codety scanner - Java test case code required action Aug 31, 2024 in 0s

Java test case code

found issues in 8 files

Annotations

Check warning on line 18 in analyzer-codety/src/test/java/io/codety/scanner/analyzer/codety/CodetyDefaultFactoryAnalyzerTest.java

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Java test case code

analyzer-codety/src/test/java/io/codety/scanner/analyzer/codety/CodetyDefaultFactoryAnalyzerTest.java#L18

[Best Practices] [SystemPrintln]  Usage of System.out/err

Check warning on line 22 in analyzer-codety/src/test/java/io/codety/scanner/analyzer/codety/CodetyDefaultFactoryAnalyzerTest.java

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Java test case code

analyzer-codety/src/test/java/io/codety/scanner/analyzer/codety/CodetyDefaultFactoryAnalyzerTest.java#L22

[Code Style] [EmptyControlStatement]  Empty if statement

Check warning on line 15 in analyzer-eslint/src/test/java/io/codety/scanner/analyzer/eslint/EslintCodeAnalyzerTest.java

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Java test case code

analyzer-eslint/src/test/java/io/codety/scanner/analyzer/eslint/EslintCodeAnalyzerTest.java#L15

[Code Style] [UnnecessaryImport]  Unused import 'java.nio.file.Files'

Check warning on line 4 in analyzer-pmd/src/test/java/io/codety/scanner/analyzer/pmd/JavaPmdCodeAnalyzerTest.java

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Java test case code

analyzer-pmd/src/test/java/io/codety/scanner/analyzer/pmd/JavaPmdCodeAnalyzerTest.java#L4

[Code Style] [UnnecessaryImport]  Unnecessary import from the current package 'io.codety.scanner.analyzer.pmd.JavaPmdCodeAnalyzer'

Check warning on line 27 in analyzer-pmd/src/test/java/io/codety/scanner/analyzer/pmd/JavaPmdCodeAnalyzerTest.java

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Java test case code

analyzer-pmd/src/test/java/io/codety/scanner/analyzer/pmd/JavaPmdCodeAnalyzerTest.java#L27

[Error Prone] [AvoidDuplicateLiterals]  The String literal '../' appears 5 times in this file; the first occurrence is on line 27

Check warning on line 27 in analyzer-pmd/src/test/java/io/codety/scanner/analyzer/pmd/JavaPmdCodeAnalyzerTest.java

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Java test case code

analyzer-pmd/src/test/java/io/codety/scanner/analyzer/pmd/JavaPmdCodeAnalyzerTest.java#L27

[Error Prone] [AvoidDuplicateLiterals]  The String literal 'code-issue-examples' appears 5 times in this file; the first occurrence is on line 27

Check warning on line 1 in code-issue-examples/java-pmd/module_api/src/test/java/IAmNoPackage.java

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Java test case code

code-issue-examples/java-pmd/module_api/src/test/java/IAmNoPackage.java#L1

[ interfaces] [ enums and annotations must belong to a named package]  All classes

Check warning on line 3 in code-issue-examples/java-pmd/module_api/src/test/java/IAmNoPackage.java

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Java test case code

code-issue-examples/java-pmd/module_api/src/test/java/IAmNoPackage.java#L3

[Code Style] [AvoidDollarSigns]  Avoid using dollar signs in variable/method/class/interface names

Check warning on line 3 in scanner/src/test/java/io/codety/scanner/reporter/github/GithubCommentTest.java

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Java test case code

scanner/src/test/java/io/codety/scanner/reporter/github/GithubCommentTest.java#L3

[Code Style] [UnnecessaryImport]  Unnecessary import from the current package 'io.codety.scanner.reporter.github.GithubCommentService'

Check warning on line 11 in scanner/src/test/java/io/codety/scanner/reporter/sarif/SarifResultReporterTest.java

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Java test case code

scanner/src/test/java/io/codety/scanner/reporter/sarif/SarifResultReporterTest.java#L11

[Code Style] [UnnecessaryImport]  Unused import 'io.codety.test.util.TestCaseUtil'

Check warning on line 20 in scanner/src/test/java/io/codety/scanner/reporter/sarif/SarifResultReporterTest.java

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Java test case code

scanner/src/test/java/io/codety/scanner/reporter/sarif/SarifResultReporterTest.java#L20

[Code Style] [UnnecessaryImport]  Unused import 'java.nio.file.Path'

Check warning on line 22 in scanner/src/test/java/io/codety/scanner/service/AnalyzerRequestTest.java

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Java test case code

scanner/src/test/java/io/codety/scanner/service/AnalyzerRequestTest.java#L22

[Error Prone] [AvoidLiteralsInIfCondition]  Avoid using literals in if statements

Check warning on line 40 in scanner/src/test/java/io/codety/scanner/service/AnalyzerRequestTest.java

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Java test case code

scanner/src/test/java/io/codety/scanner/service/AnalyzerRequestTest.java#L40

[Error Prone] [AvoidLiteralsInIfCondition]  Avoid using literals in if statements

Check warning on line 16 in scanner/src/test/java/io/codety/test/util/TestCaseUtil.java

See this annotation in the file changed.

@github-actions github-actions / Codety scanner - Java test case code

scanner/src/test/java/io/codety/test/util/TestCaseUtil.java#L16

[Error Prone] [AvoidLiteralsInIfCondition]  Avoid using literals in if statements