{
  "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
    },
    "source": [
      {
        "id": "fig",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/qodana.ts",
        "license": "MIT"
      }
    ],
    "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.",
        "source": [
          {
            "id": "fig",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/qodana.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "project_dir",
            "label": "Project directory",
            "type": "path",
            "option": [
              "-i",
              "--project-dir"
            ],
            "path": {
              "kind": "directory",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "linter",
            "label": "Linter",
            "type": "string",
            "option": [
              "-l",
              "--linter"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "results_dir",
            "label": "Results directory",
            "type": "path",
            "option": [
              "-o",
              "--results-dir"
            ],
            "path": {
              "kind": "directory",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "show_report",
            "label": "Serve HTML report",
            "type": "boolean",
            "option": [
              "-w",
              "--show-report"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "print_problems",
            "label": "Print problems",
            "type": "boolean",
            "option": [
              "--print-problems"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "fail_threshold",
            "label": "Fail threshold",
            "type": "string",
            "option": [
              "--fail-threshold"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "baseline",
            "label": "Baseline SARIF",
            "type": "path",
            "option": [
              "-b",
              "--baseline"
            ],
            "path": {
              "kind": "file",
              "role": "input"
            },
            "sources": [
              "fig"
            ]
          },
          {
            "id": "skip_pull",
            "label": "Skip pulling container",
            "type": "boolean",
            "option": [
              "--skip-pull"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "clear_cache",
            "label": "Clear cache first",
            "type": "boolean",
            "option": [
              "--clear-cache"
            ],
            "sources": [
              "fig"
            ]
          },
          {
            "id": "port",
            "label": "Report port",
            "type": "integer",
            "option": [
              "--port"
            ],
            "sources": [
              "fig"
            ]
          }
        ],
        "task": [
          {
            "id": "scan",
            "label": "Scan and print problems",
            "set": {
              "print_problems": [
                true
              ]
            },
            "fields": [
              "project_dir",
              "linter",
              "print_problems",
              "skip_pull",
              "fail_threshold"
            ]
          },
          {
            "id": "scan-report",
            "label": "Scan and serve report",
            "set": {
              "show_report": [
                true
              ]
            },
            "fields": [
              "project_dir",
              "linter",
              "show_report",
              "port"
            ]
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "project_dir",
              "linter",
              "show_report",
              "print_problems"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "results_dir",
              "fail_threshold",
              "baseline",
              "skip_pull",
              "clear_cache",
              "port"
            ]
          }
        ]
      }
    ]
  }
}
