You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`--format`|`-f`| Output format: `text` (default) or `json`|
88
+
|`--config`|`-c`| Path to lint configuration file |
89
+
|`--ruleset`|`-r`| Ruleset to use (default: `all`) |
90
+
|`--disable`|`-d`| Rules to disable (can be specified multiple times) |
91
+
|`--summary`|| Print a per-rule summary table of findings |
92
+
|`--fix`|| Automatically apply non-interactive fixes and write back |
93
+
|`--fix-interactive`|| Apply all fixes, prompting for interactive ones (`s`=skip, `r`=skip rule, `e`/Esc then Enter=exit; text prompts support `\` prefix for literal reserved controls) |
94
+
|`--dry-run`|| Show what fixes would be applied without changing the file (requires `--fix` or `--fix-interactive`) |
82
95
83
96
**What lint checks:**
84
97
@@ -142,30 +155,30 @@ output_format: text
142
155
143
156
**Configuration Options:**
144
157
145
-
| Option | Type | Description |
146
-
|--------|------|-------------|
147
-
| `extends` | `string[]` | Rulesets to extend from (`all`, `recommended`, `security`) |
Copy file name to clipboardExpand all lines: cmd/openapi/commands/openapi/lint.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -99,7 +99,7 @@ func init() {
99
99
lintCmd.Flags().StringSliceVarP(&lintDisableRules, "disable", "d", nil, "Rule IDs to disable (can be repeated)")
100
100
lintCmd.Flags().BoolVar(&lintSummary, "summary", false, "Print a per-rule summary table of findings")
101
101
lintCmd.Flags().BoolVar(&lintFix, "fix", false, "Automatically apply non-interactive fixes and write back")
102
-
lintCmd.Flags().BoolVar(&lintFixInteractive, "fix-interactive", false, "Apply all fixes, prompting for interactive ones")
102
+
lintCmd.Flags().BoolVar(&lintFixInteractive, "fix-interactive", false, "Apply all fixes, prompting for interactive ones (s=skip, r=skip rule, e/Esc then Enter=exit; text prompts: prefix \\ for literal)")
103
103
lintCmd.Flags().BoolVar(&lintDryRun, "dry-run", false, "Show what fixes would be applied without changing the file (requires --fix or --fix-interactive)")
0 commit comments