Trivy analyzer integration #1370
Your pull request is up to standards!
Codacy found no issues in your code
Annotations
codacy-production / Codacy Static Code Analysis
vulnerability-analyzer/src/main/java/org/dependencytrack/vulnanalyzer/processor/scanner/trivy/TrivyProcessor.java#L144
The method 'analyzeBlobInfo(List, MultivaluedMap)' has an NPath complexity of 300, current threshold is 200
codacy-production / Codacy Static Code Analysis
vulnerability-analyzer/src/test/java/org/dependencytrack/vulnanalyzer/client/trivy/AuthorizationClientHeaderFactoryTest.java#L56
Avoid unused local variables such as 'apiTokenSupplier'.
codacy-production / Codacy Static Code Analysis
vulnerability-analyzer/src/test/java/org/dependencytrack/vulnanalyzer/client/trivy/AuthorizationClientHeaderFactoryTest.java#L57
Unnecessary use of fully qualified name 'Mockito.mock' due to existing static import 'org.mockito.Mockito.mock'
codacy-production / Codacy Static Code Analysis
vulnerability-analyzer/src/test/java/org/dependencytrack/vulnanalyzer/client/trivy/ModelConverterToCdxTest.java#L35
Unnecessary use of fully qualified name 'org.dependencytrack.vulnanalyzer.client.trivy.Vulnerability' due to existing same package import 'org.dependencytrack.vulnanalyzer.client.trivy.*'
codacy-production / Codacy Static Code Analysis
vulnerability-analyzer/src/test/java/org/dependencytrack/vulnanalyzer/client/trivy/ModelConverterToCdxTest.java#L55
Unnecessary use of fully qualified name 'org.dependencytrack.vulnanalyzer.client.trivy.ModelConverterToCdx.convert' due to existing same package import 'org.dependencytrack.vulnanalyzer.client.trivy.*'
codacy-production / Codacy Static Code Analysis
vulnerability-analyzer/src/test/java/org/dependencytrack/vulnanalyzer/processor/scanner/trivy/TrivyProcessorTest.java#L90
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes.
codacy-production / Codacy Static Code Analysis
vulnerability-analyzer/src/test/java/org/dependencytrack/vulnanalyzer/processor/scanner/trivy/TrivyProcessorTest.java#L93
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes.
codacy-production / Codacy Static Code Analysis
vulnerability-analyzer/src/test/java/org/dependencytrack/vulnanalyzer/processor/scanner/trivy/TrivyProcessorTest.java#L97
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes.
codacy-production / Codacy Static Code Analysis
vulnerability-analyzer/src/test/java/org/dependencytrack/vulnanalyzer/processor/scanner/trivy/TrivyProcessorTest.java#L101
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes.
codacy-production / Codacy Static Code Analysis
vulnerability-analyzer/src/test/java/org/dependencytrack/vulnanalyzer/processor/scanner/trivy/TrivyProcessorTest.java#L105
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes.
codacy-production / Codacy Static Code Analysis
vulnerability-analyzer/src/test/java/org/dependencytrack/vulnanalyzer/processor/scanner/trivy/TrivyProcessorTest.java#L107
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes.
codacy-production / Codacy Static Code Analysis
vulnerability-analyzer/src/test/java/org/dependencytrack/vulnanalyzer/processor/scanner/trivy/TrivyProcessorTest.java#L108
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes.
codacy-production / Codacy Static Code Analysis
vulnerability-analyzer/src/test/java/org/dependencytrack/vulnanalyzer/processor/scanner/trivy/TrivyProcessorTest.java#L109
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes.
codacy-production / Codacy Static Code Analysis
vulnerability-analyzer/src/test/java/org/dependencytrack/vulnanalyzer/processor/scanner/trivy/TrivyProcessorTest.java#L213
Avoid unused local variables such as 'inputRecord'.