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 } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/elm-review.ts" license = "MIT" [[commands.field]] id = "targets" label = "Files or directories" type = "path" path = { kind = "any", role = "input" } position = 0 multiple = true sources = ["fig"] [[commands.field]] id = "rules" label = "Rules" description = "Comma-separated rule names." type = "string" option = ["--rules"] sources = ["fig"] [[commands.field]] id = "config" label = "Review config directory" type = "path" path = { kind = "directory", role = "input", must_exist = true } option = ["--config"] sources = ["fig"] [[commands.field]] id = "elmjson" label = "elm.json path" type = "path" path = { kind = "file", role = "input", must_exist = true } option = ["--elmjson"] sources = ["fig"] [[commands.field]] id = "watch" label = "Watch project and config" type = "boolean" option = ["--watch"] sources = ["fig"] [[commands.field]] id = "fix" label = "Offer fixes one by one" type = "boolean" option = ["--fix"] effect = "overwrite" sources = ["fig"] [[commands.field]] id = "fix_all" label = "Offer all fixes at once" type = "boolean" option = ["--fix-all"] effect = "overwrite" sources = ["fig"] [[commands.field]] id = "report" label = "Report format" type = "string" option = ["--report"] suggestions = [{ value = "json", label = "json" }, { value = "ndjson", label = "ndjson" }] sources = ["fig"] [[commands.field]] id = "no_details" label = "Compact errors" type = "boolean" option = ["--no-details"] sources = ["fig"] [[commands.field]] id = "unsuppress" label = "Include suppressed errors" type = "boolean" option = ["--unsuppress"] sources = ["fig"] [[commands.field]] id = "no_color" label = "No color" type = "boolean" option = ["--no-color"] sources = ["fig"] [[commands.task]] id = "review" label = "Review project" fields = ["targets", "rules"] required = [] [[commands.task]] id = "watch" label = "Watch and review" fields = ["targets", "watch"] required = [] set = { watch = [true] } [[commands.group]] id = "basic" label = "Basic" fields = ["targets", "rules", "watch", "fix", "fix_all"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["config", "elmjson", "report", "no_details", "unsuppress", "no_color"]