package
2022.3.5+incompatible
Repository: https://github.com/jetbrains/qodana-cli.git
Documentation: pkg.go.dev

# Functions

Append appends a string to a slice if it's not already there.
AskUserConfirm asks the user for confirmation with yes/no.
CheckContainerEngineMemory applicable only for Docker Desktop, (has the default limit of 2GB which can be not enough when Gradle runs inside a container).
CheckContainerHost checks if the host is ready to run Qodana container images.
CheckDirFiles checks if a directory contains files.
CheckForUpdates check GitHub https://github.com/JetBrains/qodana-cli/ for the latest version of CLI release.
ContainerCleanup cleans up Qodana containers.
DisableColor disables colors in the output.
EmptyMessage is a message that is used when there is no message to show.
ErrorMessage prints an error message with the icon.
FindQodanaYaml checks whether qodana.yaml exists or not.
GetCmdOptions returns qodana command options.
GetLatestVersion checks if there's an updated EAP version supported by the CLI.
GetLinter gets linter for the given path and saves configName.
GetLinterSystemDir returns path to <userCacheDir>/JetBrains/<linter>/<project-id>/.
GetReportUrl get Qodana Cloud report URL from the given qodana.sarif.json.
IsHomeDirectory returns true if the given path is the user's home directory.
IsInteractive returns true if the current execution environment is interactive (useful for colors/animations toggle).
LoadQodanaYaml gets Qodana YAML from the project.
OpenDir opens directory in the default file manager.
PrepareHost cleans up report folder, gets the current user, creates the necessary folders for the analysis.
PrimaryBold prints a message in the primary bold style.
PullImage pulls docker image and prints the process.
ReadSarif prints Qodana Scan result into stdout.
RecognizeDirLanguages returns the languages detected in the given directory.
RunLinter runs the linter with the given options.
SetQodanaLinter writes the qodana.yaml file to the given path.
ShowReport serves the Qodana report.
SuccessMessage prints a success message with the icon.
WarningMessage prints a warning message with the icon.

# Constants

goland:noinspection GoUnnecessarilyExportedIdentifiers.
goland:noinspection GoUnnecessarilyExportedIdentifiers.
goland:noinspection GoUnnecessarilyExportedIdentifiers.
goland:noinspection GoUnnecessarilyExportedIdentifiers.
goland:noinspection GoUnnecessarilyExportedIdentifiers.
goland:noinspection GoUnnecessarilyExportedIdentifiers.
goland:noinspection GoUnnecessarilyExportedIdentifiers.
goland:noinspection GoUnnecessarilyExportedIdentifiers.
QodanaEapLicenseExpiredExitCode reports an expired license.
QodanaFailThresholdExitCode same as QodanaSuccessExitCode, but the threshold is set and exceeded.
QodanaOutOfMemoryExitCode reports an interrupted process, sometimes because of an OOM.
goland:noinspection GoUnnecessarilyExportedIdentifiers.
goland:noinspection GoUnnecessarilyExportedIdentifiers.
QodanaSuccessExitCode is Qodana exit code when the analysis is successfully completed.

# Variables

styles and different declarations intended to be used only inside this file.
DisableCheckUpdates flag to disable checking for updates.
Info Two newlines at the start are important to lay the output nicely in CLI.
styles and different declarations intended to be used only inside this file.
Version returns the version of the Qodana CLI, set during the GoReleaser build.

# Structs

Clude A check id to enable/disable for include/exclude YAML field.
goland:noinspection GoUnnecessarilyExportedIdentifiers.
DependencyIgnore is a dependency to ignore for license checks in Qodana goland:noinspection GoUnnecessarilyExportedIdentifiers.
goland:noinspection GoUnnecessarilyExportedIdentifiers.
goland:noinspection GoUnnecessarilyExportedIdentifiers.
goland:noinspection GoUnnecessarilyExportedIdentifiers.
LicenseRule is a license rule to apply for license compatibility checks in Qodana goland:noinspection GoUnnecessarilyExportedIdentifiers.
Plugin to be installed during the Qodana run.
Profile A profile is some template set of checks to run with Qodana analysis.
QodanaOptions is a struct that contains all the options to run a Qodana linter.
QodanaYaml A standard qodana.yaml (or qodana.yml) format for Qodana configuration.