id = "qodana" name = "Qodana" description = "JetBrains code quality platform CLI for static analysis." homepage = "https://www.jetbrains.com/qodana/" executables = ["qodana"] [commands] format = 1 label = "Qodana" description = "Run Qodana static analysis on a project. Only the scan job is covered." quality = "ai-draft" base = "fig:qodana" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/qodana.ts" license = "MIT" [[commands.subcommand]] path = ["scan"] label = "Scan a project" description = "Run Qodana inspections on a project directory. Cloud tokens, profiles and container tuning are mostly left out." [[commands.subcommand.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/qodana.ts" license = "MIT" [[commands.subcommand.field]] id = "project_dir" label = "Project directory" type = "path" option = ["-i", "--project-dir"] path = { kind = "directory", role = "input" } sources = ["fig"] [[commands.subcommand.field]] id = "linter" label = "Linter" type = "string" option = ["-l", "--linter"] sources = ["fig"] [[commands.subcommand.field]] id = "results_dir" label = "Results directory" type = "path" option = ["-o", "--results-dir"] path = { kind = "directory", role = "input" } sources = ["fig"] [[commands.subcommand.field]] id = "show_report" label = "Serve HTML report" type = "boolean" option = ["-w", "--show-report"] sources = ["fig"] [[commands.subcommand.field]] id = "print_problems" label = "Print problems" type = "boolean" option = ["--print-problems"] sources = ["fig"] [[commands.subcommand.field]] id = "fail_threshold" label = "Fail threshold" type = "string" option = ["--fail-threshold"] sources = ["fig"] [[commands.subcommand.field]] id = "baseline" label = "Baseline SARIF" type = "path" option = ["-b", "--baseline"] path = { kind = "file", role = "input" } sources = ["fig"] [[commands.subcommand.field]] id = "skip_pull" label = "Skip pulling container" type = "boolean" option = ["--skip-pull"] sources = ["fig"] [[commands.subcommand.field]] id = "clear_cache" label = "Clear cache first" type = "boolean" option = ["--clear-cache"] sources = ["fig"] [[commands.subcommand.field]] id = "port" label = "Report port" type = "integer" option = ["--port"] sources = ["fig"] [[commands.subcommand.task]] id = "scan" label = "Scan and print problems" set = { print_problems = [true] } fields = ["project_dir", "linter", "print_problems", "skip_pull", "fail_threshold"] [[commands.subcommand.task]] id = "scan-report" label = "Scan and serve report" set = { show_report = [true] } fields = ["project_dir", "linter", "show_report", "port"] [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["project_dir", "linter", "show_report", "print_problems"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["results_dir", "fail_threshold", "baseline", "skip_pull", "clear_cache", "port"]