Commit f02cfd2
authored
chore: switch super-linter to allow-list format (#1149)
## Summary
- Switch `super-linter.env` from deny-list (`VALIDATE_X=false`) to
allow-list (`VALIDATE_X=true`)
- Makes explicit which linters run, avoids noise from irrelevant linters
- Drops high-cost/redundant linters: gitleaks (TruffleHog covers this),
checkov, trivy, jscpd, biome (prettier conflict)
## What's enabled
- **Shell**: shellcheck, shfmt
- **Markdown**: markdownlint, prettier
- **Data**: JSON prettier, YAML prettier, dotenv
- **Code**: C#, JavaScript prettier, google-java-format, Go modules,
Python (black, isort, ruff)
- **Cross-language**: editorconfig, actionlint, codespell, merge
conflict markers, renovate
## What's dropped
| Linter | Reason |
|--------|--------|
| gitleaks | TruffleHog workflow already covers secret scanning |
| checkov/trivy | security scanning not needed for examples repo |
| biome | conflicts with prettier |
| jscpd | too noisy for example code with intentional duplication |
| JSONC | covered by JSON prettier |
Happy to add back anything you think is valuable — the goal is to make
the list explicit and trim what doesn't earn its runtime cost.
## Test plan
- [ ] CI lint passes
---------
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>1 parent c69d96f commit f02cfd2
1 file changed
+27
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
1 | 3 | | |
2 | 4 | | |
3 | 5 | | |
4 | 6 | | |
| 7 | + | |
5 | 8 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 9 | + | |
20 | 10 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
27 | 33 | | |
| 34 | + | |
28 | 35 | | |
29 | 36 | | |
30 | 37 | | |
31 | 38 | | |
32 | 39 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
| |||
0 commit comments