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
{{ message }}
Repository navigation
Commit a3f8c2e
Browse filesBrowse the repository at this point in the historyBrowse files
feat(mcp): turn single lint rules off with lint.rules (#440)
A lint.rules option turns single lint rules off. A rule set to false is left out of the panel, the Audit tab, the agent tools (scan-templates, scan-pipe-usage, explain-pipe, lint-routes, lint-forms, analog-lint, audit) and pangular lint, including the SARIF rule list. pangular lint now reads pangular.config.json.
Co-authored-by: Vardhman Gupta <[email protected]>
|`lint.rules.<rule>`|`true`|`false` turns off an individual lint rule across linters (template lint, pipe usage, routes, forms and Analog diagnostics). |
273
+
274
+
```json
275
+
{
276
+
"lint": {
277
+
"rules": {
278
+
"img-missing-alt": false,
279
+
"track-by-index": false
280
+
}
281
+
}
282
+
}
283
+
```
284
+
285
+
A rule set to `false` is left out of the panel, the **Audit** tab, the agent tools (`scan-templates`, `scan-pipe-usage`, `explain-pipe`, `lint-routes`, `lint-forms`, `analog-lint` and `audit`) and the CI export (`pangular lint`). Use the rule name a finding shows. The template rules are listed under [scan-templates](../agents/tools.md#scan-templates).
286
+
267
287
## Check the active configuration
268
288
269
289
The server checks the options when it starts. An unknown key, a value of the wrong type or a limit outside its bounds prints one `[pangular]` warning in the terminal that lists each problem and the value used instead. An unknown key names the closest known key:
@@ -290,6 +310,7 @@ The [Dashboard](../inspectors/dashboard.md#configuration-block) has a **Configur
290
310
|**Popup shortcut**|`popup.hotkey`, or **Off** when it is `false`. |
291
311
|**Plugins off**| Plugins set to `false` in `plugins`. |
292
312
|**Plugin tools or actions off**| Plugins with `tools` or `actions` set to `false`. |
313
+
|**Lint rules off**| Rules set to `false` in `lint.rules`. |
0 commit comments