663 Commits

Author SHA1 Message Date
Ludovic Fernandez
aba80c7fe2
feat: update gofmt and goimports and add option "rewrite-rules" (#3174) 2022-09-01 12:25:26 +00:00
Ben Brown
0d33a5ba3a
cli: remove reference to old service (#3173) 2022-08-31 18:32:04 +00:00
dependabot[bot]
28d7095413
build(deps): bump github.com/go-critic/go-critic from 0.6.4 to 0.6.5 (#3150)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2022-08-29 02:11:48 +02:00
Ludovic Fernandez
bddc63a234
dev: fix CI workflow for Windows (#3134) 2022-08-24 22:10:51 +02:00
Arjen van der Ende
890a82659b
Normalize exclude-rules paths for Windows (#2387) 2022-08-24 16:38:50 +02:00
sylvia
cc2d97f31d
contextcheck: bump to v1.0.6 && re-enable (#3102)
Some checks failed
Release a tag / release (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile]) (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/alpine.Dockerfile]) (push) Has been cancelled
2022-08-23 14:03:20 +02:00
Choko
58809c3bf5
feat: add reassign linter (#3064) 2022-08-23 13:19:26 +02:00
Timon Wong
f48530e25e
feat: add logrlint (#3093)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2022-08-22 22:49:39 +02:00
Ludovic Fernandez
37d3aa437a
feat: deprecate varcheck, deadcode, and structcheck (#3125) 2022-08-21 21:37:47 +02:00
Sasha Melentyev
63b2fe0048
feat: add interfacebloat (#3024)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2022-08-21 14:05:41 +02:00
Ludovic Fernandez
d286cb910c
docs: add a section about default exclusions (#3117) 2022-08-20 19:05:13 +02:00
dependabot[bot]
9da04f5070
build(deps): bump github.com/go-critic/go-critic from 0.6.3 to 0.6.4 (#3089)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2022-08-14 18:21:32 +02:00
dependabot[bot]
be10ef2636
build(deps): bump github.com/mgechev/revive from 1.2.1 to 1.2.2 (#3075)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2022-08-07 13:57:17 +02:00
Ludovic Fernandez
da3b149689
fix: exit early on run --version (#3067) 2022-08-05 15:49:22 +02:00
sivchari
d4fd2db3d5
nosnakecase: deprecate linter (#3065)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2022-08-05 12:42:47 +02:00
Ludovic Fernandez
1557692e59
feat: go1.19 support (#3037) 2022-08-03 20:53:06 +02:00
Ludovic Fernandez
6313fa9a67
contextcheck: disable linter (#3050) 2022-08-03 19:44:19 +02:00
Sasha Melentyev
0ba1388a41
feat: add usestdlibvars (#3016) 2022-08-03 11:13:50 +02:00
Dreamacro
15cba447fd
gci: add missing custom-order setting (#3052) 2022-08-03 10:50:42 +02:00
Eugene Simonov
9a1b9492d6
ifshort: deprecate linter (#3034)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2022-08-01 14:22:11 +02:00
Ludovic Fernandez
f8f8f9a6e7
nolint: drop allow-leading-space option and add "nolint:all" (#3002) 2022-08-01 14:21:04 +02:00
Sven Anderson
846fab81b9
cgo: fix linters ignoring Cgo files (#3025) 2022-07-30 22:26:33 +02:00
Ludovic Fernandez
886fbd71a8
gci: fix panic with invalid configuration option (#3019) 2022-07-27 09:14:33 +02:00
Sasha Melentyev
a9dc1ce178
dev: change format like function without args (#3012)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2022-07-24 18:24:01 +02:00
Ville Skyttä
a768760ce7
dev: clean commands (#3007)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2022-07-23 00:55:25 +02:00
Ludovic Fernandez
d44cd49a20
feat: remove some go1.18 limitations (#3001)
* fix: restore some linters

- govet(nilness,unusedwrite)
- bodyclose
- contextcheck
- nilerr
- noctx
- tparallel

* fix: remove structcheck from the default linters.
2022-07-21 16:52:06 +02:00
Ludovic Fernandez
61673b3436
revive: ignore slow rules (#2999)
Some checks failed
Release a tag / release (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile.alpine]) (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile]) (push) Has been cancelled
2022-07-21 01:39:54 +02:00
Ludovic Fernandez
ebd6dcbf92
Revert 'fix: generics (#2991)' (#2995)
Some checks failed
Release a tag / release (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile.alpine]) (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile]) (push) Has been cancelled
2022-07-19 13:29:54 +02:00
Ludovic Fernandez
c39bf96129
fix: disable structcheck for go >= 1.18 (#2994) 2022-07-19 12:32:33 +02:00
Ludovic Fernandez
eb16e701db
fix: generics (#2991) 2022-07-19 09:12:58 +02:00
Oscar
4e60e8a894
gci: fix options display (#2989) 2022-07-19 01:56:22 +02:00
Ludovic Fernandez
fd87bd1efb
gci: remove the use of stdin (#2984)
Co-authored-by: Tom Moulard <tom.moulard@traefik.io>
2022-07-18 20:04:33 +02:00
alingse
b415402720
Add linter asasalint to lint pass []any as any (#2968)
Some checks failed
Release a tag / release (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile.alpine]) (push) Has been cancelled
Release a tag / docker-release (map[Dockerfile:build/Dockerfile]) (push) Has been cancelled
2022-07-18 09:17:27 +02:00
Ludovic Fernandez
27f921fa14
dev: use directives instead of comments for tests (#2978) 2022-07-15 15:32:10 +02:00
Ethan Reesor
0abb298136
staticcheck: fix generics (#2976)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2022-07-14 04:10:10 +02:00
Sasha Melentyev
ed4befe5ef
dev: change err to nil (#2971) 2022-07-10 20:44:49 +02:00
Loong Dai
b8f1e2a549
build(deps): bump github.com/daixiang0/gci from 0.3.4 to 0.4.0 (#2965)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2022-07-09 23:15:47 +02:00
sivchari
1d8a15a0cc
add nosnakecase lint (#2828)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2022-06-30 16:36:33 +02:00
dependabot[bot]
3a0f646e31
build(deps): bump github.com/maratori/testpackage from 1.0.1 to 1.1.0 (#2945)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2022-06-28 14:44:44 +02:00
dependabot[bot]
023e1c4fdf
build(deps): bump github.com/firefart/nonamedreturns from 1.0.2 to 1.0.4 (#2944)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2022-06-28 14:13:15 +02:00
dependabot[bot]
98c811d0e5
build(deps): bump github.com/firefart/nonamedreturns from 1.0.1 to 1.0.2 (#2929)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2022-06-19 14:20:47 +02:00
Cory Miller
ae2a968805
depguard: adjust phrasing (#2921) 2022-06-15 02:40:19 +02:00
Ludovic Fernandez
4b218e664c
config: spread go version on linter's configurations (#2913) 2022-06-13 09:01:05 +02:00
dependabot[bot]
97eea6ea49
build(deps): bump github.com/kunwardeep/paralleltest from 1.0.4 to 1.0.6 (#2918)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2022-06-12 13:43:23 +02:00
Marat Reymers
c531fc2ad5
gosec: allow global config (#2880) 2022-06-06 13:21:04 +02:00
Ludovic Fernandez
091a641f91
docs: have a clear explanation about the staticcheck integration. (#2894)
docs: have a clear state about staticcheck
2022-06-06 13:19:33 +02:00
dependabot[bot]
6a412d3d10
build(deps): bump github.com/kunwardeep/paralleltest from 1.0.3 to 1.0.4 (#2907)
* build(deps): bump github.com/kunwardeep/paralleltest from 1.0.3 to 1.0.4

Bumps [github.com/kunwardeep/paralleltest](https://github.com/kunwardeep/paralleltest) from 1.0.3 to 1.0.4.
- [Release notes](https://github.com/kunwardeep/paralleltest/releases)
- [Commits](https://github.com/kunwardeep/paralleltest/compare/v1.0.3...v1.0.4)

---
updated-dependencies:
- dependency-name: github.com/kunwardeep/paralleltest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: linter

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2022-06-06 13:16:40 +08:00
Sasha Melentyev
c6fd368c89
dev: preallocate some slices and maps (#2902) 2022-06-05 22:16:21 +02:00
Loong Dai
2f41c1f06b
gci: fix issues and re-enable autofix (#2892)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2022-05-30 19:51:38 +02:00
Ludovic Fernandez
f9d815115c
bump golang.org/x/tools to HEAD (#2875)
* bump golang.org/x/tools to HEAD
* fix: adapt linters to the new validation system.
2022-05-23 12:39:57 +02:00