{
  "id": "elm-review",
  "name": "elm-review",
  "homepage": "https://github.com/jfmengels/node-elm-review",
  "description": "Analyze Elm projects with configurable review rules.",
  "executables": [
    "elm-review"
  ],
  "commands": {
    "format": 1,
    "label": "Review Elm project",
    "description": "Run review rules over an Elm project. Fixes are only offered interactively when --fix or --fix-all is set.",
    "quality": "ai-draft",
    "base": "fig:elm-review",
    "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/elm-review.ts",
        "license": "MIT"
      }
    ],
    "field": [
      {
        "id": "targets",
        "label": "Files or directories",
        "type": "path",
        "path": {
          "kind": "any",
          "role": "input"
        },
        "position": 0,
        "multiple": true,
        "sources": [
          "fig"
        ]
      },
      {
        "id": "rules",
        "label": "Rules",
        "description": "Comma-separated rule names.",
        "type": "string",
        "option": [
          "--rules"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "config",
        "label": "Review config directory",
        "type": "path",
        "path": {
          "kind": "directory",
          "role": "input",
          "must_exist": true
        },
        "option": [
          "--config"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "elmjson",
        "label": "elm.json path",
        "type": "path",
        "path": {
          "kind": "file",
          "role": "input",
          "must_exist": true
        },
        "option": [
          "--elmjson"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "watch",
        "label": "Watch project and config",
        "type": "boolean",
        "option": [
          "--watch"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "fix",
        "label": "Offer fixes one by one",
        "type": "boolean",
        "option": [
          "--fix"
        ],
        "effect": "overwrite",
        "sources": [
          "fig"
        ]
      },
      {
        "id": "fix_all",
        "label": "Offer all fixes at once",
        "type": "boolean",
        "option": [
          "--fix-all"
        ],
        "effect": "overwrite",
        "sources": [
          "fig"
        ]
      },
      {
        "id": "report",
        "label": "Report format",
        "type": "string",
        "option": [
          "--report"
        ],
        "suggestions": [
          {
            "value": "json",
            "label": "json"
          },
          {
            "value": "ndjson",
            "label": "ndjson"
          }
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "no_details",
        "label": "Compact errors",
        "type": "boolean",
        "option": [
          "--no-details"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "unsuppress",
        "label": "Include suppressed errors",
        "type": "boolean",
        "option": [
          "--unsuppress"
        ],
        "sources": [
          "fig"
        ]
      },
      {
        "id": "no_color",
        "label": "No color",
        "type": "boolean",
        "option": [
          "--no-color"
        ],
        "sources": [
          "fig"
        ]
      }
    ],
    "task": [
      {
        "id": "review",
        "label": "Review project",
        "fields": [
          "targets",
          "rules"
        ],
        "required": []
      },
      {
        "id": "watch",
        "label": "Watch and review",
        "fields": [
          "targets",
          "watch"
        ],
        "required": [],
        "set": {
          "watch": [
            true
          ]
        }
      }
    ],
    "group": [
      {
        "id": "basic",
        "label": "Basic",
        "fields": [
          "targets",
          "rules",
          "watch",
          "fix",
          "fix_all"
        ]
      },
      {
        "id": "advanced",
        "label": "Advanced",
        "fields": [
          "config",
          "elmjson",
          "report",
          "no_details",
          "unsuppress",
          "no_color"
        ]
      }
    ]
  }
}
