Skip to content

Commit eee4905

Browse files
committed
docs: compact presets in the migration guide
1 parent 22f5bfc commit eee4905

File tree

1 file changed

+16
-153
lines changed

1 file changed

+16
-153
lines changed

docs/content/docs/product/migration-guide.md

Lines changed: 16 additions & 153 deletions
Original file line numberDiff line numberDiff line change
@@ -165,159 +165,22 @@ The `migrate` command automatically migrates `linters.presets` in individual lin
165165
{{< tab >}}
166166
Presets:
167167

168-
- bugs:
169-
- `asasalint`
170-
- `asciicheck`
171-
- `bidichk`
172-
- `bodyclose`
173-
- `contextcheck`
174-
- `durationcheck`
175-
- `errcheck`
176-
- `errchkjson`
177-
- `errorlint`
178-
- `exhaustive`
179-
- `gocheckcompilerdirectives`
180-
- `gochecksumtype`
181-
- `gosec`
182-
- `gosmopolitan`
183-
- `govet`
184-
- `loggercheck`
185-
- `makezero`
186-
- `musttag`
187-
- `nilerr`
188-
- `nilnesserr`
189-
- `noctx`
190-
- `protogetter`
191-
- `reassign`
192-
- `recvcheck`
193-
- `rowserrcheck`
194-
- `spancheck`
195-
- `sqlclosecheck`
196-
- `staticcheck`
197-
- `testifylint`
198-
- `zerologlint`
199-
- comment:
200-
- `dupword`
201-
- `godot`
202-
- `godox`
203-
- `misspell`
204-
- complexity:
205-
- `cyclop`
206-
- `funlen`
207-
- `gocognit`
208-
- `gocyclo`
209-
- `maintidx`
210-
- `nestif`
211-
- error:
212-
- `err113`
213-
- `errcheck`
214-
- `errorlint`
215-
- `wrapcheck`
216-
- format:
217-
- `gci`
218-
- `gofmt`
219-
- `gofumpt`
220-
- `goimports`
221-
- import:
222-
- `depguard`
223-
- `gci`
224-
- `goimports`
225-
- `gomodguard`
226-
- metalinter:
227-
- `gocritic`
228-
- `govet`
229-
- `revive`
230-
- `staticcheck`
231-
- module:
232-
- `depguard`
233-
- `gomoddirectives`
234-
- `gomodguard`
235-
- performance:
236-
- `bodyclose`
237-
- `fatcontext`
238-
- `noctx`
239-
- `perfsprint`
240-
- `prealloc`
241-
- sql:
242-
- `rowserrcheck`
243-
- `sqlclosecheck`
244-
- style:
245-
- `asciicheck`
246-
- `canonicalheader`
247-
- `containedctx`
248-
- `copyloopvar`
249-
- `decorder`
250-
- `depguard`
251-
- `dogsled`
252-
- `dupl`
253-
- `err113`
254-
- `errname`
255-
- `exhaustruct`
256-
- `exptostd`
257-
- `forbidigo`
258-
- `forcetypeassert`
259-
- `ginkgolinter`
260-
- `gochecknoglobals`
261-
- `gochecknoinits`
262-
- `goconst`
263-
- `gocritic`
264-
- `godot`
265-
- `godox`
266-
- `goheader`
267-
- `gomoddirectives`
268-
- `gomodguard`
269-
- `goprintffuncname`
270-
- `gosimple`
271-
- `grouper`
272-
- `iface`
273-
- `importas`
274-
- `inamedparam`
275-
- `interfacebloat`
276-
- `intrange`
277-
- `ireturn`
278-
- `lll`
279-
- `loggercheck`
280-
- `makezero`
281-
- `mirror`
282-
- `misspell`
283-
- `mnd`
284-
- `musttag`
285-
- `nakedret`
286-
- `nilnil`
287-
- `nlreturn`
288-
- `nolintlint`
289-
- `nonamedreturns`
290-
- `nosprintfhostport`
291-
- `paralleltest`
292-
- `predeclared`
293-
- `promlinter`
294-
- `revive`
295-
- `sloglint`
296-
- `stylecheck`
297-
- `tagalign`
298-
- `tagliatelle`
299-
- `testpackage`
300-
- `tparallel`
301-
- `unconvert`
302-
- `usestdlibvars`
303-
- `varnamelen`
304-
- `wastedassign`
305-
- `whitespace`
306-
- `wrapcheck`
307-
- `wsl`
308-
- test:
309-
- `exhaustruct`
310-
- `paralleltest`
311-
- `testableexamples`
312-
- `testifylint`
313-
- `testpackage`
314-
- `thelper`
315-
- `tparallel`
316-
- `usetesting`
317-
- unused:
318-
- `ineffassign`
319-
- `unparam`
320-
- `unused`
168+
| name | linters |
169+
|------|---------|
170+
| bugs | `asasalint`, `asciicheck`, `bidichk`, `bodyclose`, `contextcheck`, `durationcheck`, `errcheck`, `errchkjson`, `errorlint`, `exhaustive`, `gocheckcompilerdirectives`, `gochecksumtype`, `gosec`, `gosmopolitan`, `govet`, `loggercheck`, `makezero`, `musttag`, `nilerr`, `nilnesserr`, `noctx`, `protogetter`, `reassign`, `recvcheck`, `rowserrcheck`, `spancheck`, `sqlclosecheck`, `staticcheck`, `testifylint`, `zerologlint` |
171+
| comment | `dupword`, `godot`, `godox`, `misspell` |
172+
| complexity | `cyclop`, `funlen`, `gocognit`, `gocyclo`, `maintidx`, `nestif` |
173+
| error | `err113`, `errcheck`, `errorlint`, `wrapcheck` |
174+
| format | `gci`, `gofmt`, `gofumpt`, `goimports` |
175+
| import | `depguard`, `gci`, `goimports`, `gomodguard` |
176+
| metalinter | `gocritic`, `govet`, `revive`, `staticcheck` |
177+
| module | `depguard`, `gomoddirectives`, `gomodguard` |
178+
| performance | `bodyclose`, `fatcontext`, `noctx`, `perfsprint`, `prealloc` |
179+
| sql | `rowserrcheck`, `sqlclosecheck` |
180+
| style | `asciicheck`, `canonicalheader`, `containedctx`, `copyloopvar`, `decorder`, `depguard`, `dogsled`, `dupl`, `err113`, `errname`, `exhaustruct`, `exptostd`, `forbidigo`, `forcetypeassert`, `ginkgolinter`, `gochecknoglobals`, `gochecknoinits`, `goconst`, `gocritic`, `godot`, `godox`, `goheader`, `gomoddirectives`, `gomodguard`, `goprintffuncname`, `gosimple`, `grouper`, `iface`, `importas`, `inamedparam`, `interfacebloat`, `intrange`, `ireturn`, `lll`, `loggercheck`, `makezero`, `mirror`, `misspell`, `mnd`, `musttag`, `nakedret`, `nilnil`, `nlreturn`, `nolintlint`, `nonamedreturns`, `nosprintfhostport`, `paralleltest`, `predeclared`, `promlinter`, `revive`, `sloglint`, `stylecheck`, `tagalign`, `tagliatelle`, `testpackage`, `tparallel`, `unconvert`, `usestdlibvars`, `varnamelen`, `wastedassign`, `whitespace`, `wrapcheck`, `wsl` |
181+
| test | `exhaustruct`, `paralleltest`, `testableexamples`, `testifylint`, `testpackage`, `thelper`, `tparallel`, `usetesting` |
182+
| unused | `ineffassign`, `unparam`, `unused` |
183+
321184
{{< /tab >}}
322185
{{< tab >}}
323186
```yaml

0 commit comments

Comments
 (0)