File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change @@ -166,4 +166,4 @@ Use `//nolint` instead of `// nolint` because directives should have no space by
166
166
Some exclusions are considered common.
167
167
To help golangci-lint users, those common exclusions are provided through presets.
168
168
169
- {.ExclusionPresets }
169
+ {{% exclusion-presets %} }
Original file line number Diff line number Diff line change
1
+ {{- /*
2
+ Creates a table of exclusion presets.
3
+
4
+ @example {{% exclusion-presets %}}
5
+ */ -}}
6
+
7
+ {{- $presets := index $.Site.Data.exclusion_presets -}}
8
+
9
+ {{ range $key, $values := $presets }}
10
+ ### Preset {{ print "`" $key "`" }}
11
+
12
+ < table >
13
+ < thead >
14
+ < tr >
15
+ < th > Linter</ th >
16
+ < th > Issue Text</ th >
17
+ </ tr >
18
+ </ thead >
19
+ < tbody >
20
+ {{- range $i, $value := $values -}}
21
+ < tr >
22
+ < td > {{ index $value "linters" 0 }}</ td >
23
+ < td > < code > {{ index $value "text" }}</ code > </ td >
24
+ </ tr >
25
+ {{- end -}}
26
+ </ tbody >
27
+ </ table >
28
+ {{ end }}
You can’t perform that action at this time.
0 commit comments