Qodana
Example. Adds a simple Qodana step for analyzing JVM-based projects
buildType {
// Other Build Type settings ...
steps {
// Other Build Steps ...
qodana {
linter = jvm {}
}
Content copied to clipboard }
}
Example. Adds a simple Qodana step for analyzing Python projects
buildType {
// Other Build Type settings ...
steps {
// Other Build Steps ...
qodana {
linter = python {}
}
Content copied to clipboard }
}
Example. Adds a Qodana step for analyzing JVM-based projects and uses qodana.sarif.json
file as a baseline
buildType {
// Other Build Type settings ...
steps {
// Other Build Steps ...
qodana {
linter = jvm {}
additionalQodanaArguments = "--baseline qodana.sarif.json"
}
Content copied to clipboard }
}
Example. Adds a Qodana step for analyzing JVM-based projects using provided qodana.starter
inspection profile
buildType {
// Other Build Type settings ...
steps {
// Other Build Steps ...
qodana {
linter = jvm {}
inspectionProfile = embedded {
name = "qodana.starter"
}
}
Content copied to clipboard }
}
Example. Adds a Qodana step for running specific version of Qodana CLI
buildType {
// Other Build Type settings ...
steps {
// Other Build Steps ...
qodana {
cli = "v2024.1.8"
}
Content copied to clipboard }
}
See also
Types
Properties
Additional Docker arguments
Additional Qodana arguments
Arguments for running a Docker image
Entry points for running a Docker image
Cloud Token
By setting this property, you agree to let Qodana collect statistical information during linter execution. It lets us better improve linter performance. All data is collected anonymously in accordance with the JetBrains Privacy Policy: https://www.jetbrains.com/legal/docs/privacy/privacy/
Optional collection of build step execution conditions
Build step execution mode
Inspection profile
Linter that performs the analysis
Provide this name if you have several Qodana steps in one build, or you combine several builds into one composite configuration. If empty, auto-generated step name will be used
Enable report problems as tests
Working directory
Functions
Official Docker image for analyzing Android projects
Deletes all configured build step conditions
Configures build step conditions
Copies parameters of this object to the specified target
Custom Docker image
Path to the custom profile
Default inspection profile
Official Docker image for analyzing .NET projects
Select embedded profile name
Official Docker image for analyzing Go projects
Official Docker image for analyzing JavaScript projects
Official Docker image for analyzing JVM projects
Official Docker image for analyzing JVM projects with IntelliJ Community edition
Official Docker image for analyzing PHP projects
Official Docker image for analyzing Python projects
Validates this object and reports found errors to the provided consumer