Ludovic Fernandez
7beb2fb734
staticcheck: bump to v0.4.0 ( #3551 )
2023-02-03 15:41:37 +01:00
Ludovic Fernandez
f072d55e6d
dev: add doc about internal package extracted from Go ( #3204 )
2022-09-12 09:19:06 +02:00
Ludovic Fernandez
39f401ba3c
dev: review and clean linter tests ( #3139 )
2022-09-01 18:26:28 +02:00
Ludovic Fernandez
37d3aa437a
feat: deprecate varcheck, deadcode, and structcheck ( #3125 )
2022-08-21 21:37:47 +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
Ludovic Fernandez
7fdb723b16
docs: remove allow-leading-space option ( #3072 )
2022-08-12 16:22:28 +02:00
Ludovic Fernandez
f8f8f9a6e7
nolint: drop allow-leading-space option and add "nolint:all" ( #3002 )
2022-08-01 14:21:04 +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
Ludovic Fernandez
bffc8cefe2
dev: remove some TODO ( #2743 )
...
* chore: use go1.18 to test the previous version of golangci-lint
* chore: update gomnd configuration
2022-04-03 18:49:27 +02:00
Ludovic Fernandez
7bbbe77e5e
feat: automatic Go version detection ( #2669 )
...
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
* feat: disable unsupported go1.18 govet analyzers
* fix: inactivate interfacer with go1.18
2022-03-23 16:54:11 +01:00
ngehrsitz
f7d2406dc6
bump github.com/daixiang0/gci from 0.2.9 to 0.3.0 ( #2532 )
...
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2022-02-14 09:51:24 +01:00
Ludovic Fernandez
c84de88229
docs: split configuration page into multiple sections ( #2484 )
2022-01-20 01:20:51 +01:00
Ludovic Fernandez
1685402de9
gomnd: new configuration ( #2498 )
2022-01-19 12:46:51 +01:00
dependabot[bot]
56f27d0ad2
build(deps): bump github.com/securego/gosec/v2 from 2.9.3 to 2.9.5 ( #2413 )
...
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2021-12-14 05:18:18 +01:00
Ludovic Fernandez
aa3550ab83
fix: reduce flaky in the CI and clean the .golangci.yml of the project ( #2359 )
...
* fix: clean linter configuration
* fix: minor changes
* fix: increase timeout
2021-11-14 16:03:40 +01:00
dependabot[bot]
4ce9a19e7d
build(deps): bump github.com/go-critic/go-critic from 0.5.6 to 0.6.0 ( #2041 )
...
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2021-10-23 00:51:11 +02:00
Robert Liebowitz
b3f9763246
errcheck: allow exclude config without extra file ( #2110 )
...
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
2021-07-13 02:23:12 +02:00
Ludovic Fernandez
505ed3c0f7
doc: Un-deprecate enable-all option. ( #2039 )
2021-06-02 17:04:48 +02:00
dependabot[bot]
fe0db3db21
build(deps): bump github.com/tommy-muehle/go-mnd/v2 from 2.3.2 to 2.4.0 ( #2024 )
2021-05-31 10:00:41 +02:00
Ludovic Fernandez
f95b1ed39f
golint: deprecation ( #1965 )
2021-05-11 00:50:50 +02:00
Ludovic Fernandez
5d10450bc9
dev: clean configuration, documentation, and code ( #1911 )
...
* Remove dead code related to golangci.com
* remove old build tags
* stale bot: remove bug label from `exemptLabels`
* order `gitignore` entries alphabetically
* doc: order `linters-settings` alphabetically
* remove obsolete exclude rule
* release: add docs prefix to skip the commit in the changelog
2021-04-14 12:48:48 +02:00
Ludovic Fernandez
2ebc9d7202
dev: clean configuration and code ( #1830 )
2021-03-09 19:46:18 +01:00
Ludovic Fernandez
fce3949d5b
Deprecate 'scopelint' linter ( #1819 )
...
* Deprecate scopelint linter
* clean code base.
2021-03-09 10:19:22 -08:00
Ludovic Fernandez
2e7c389deb
Update staticcheck to v0.1.2 (2020.2.2) ( #1756 )
2021-02-21 16:27:32 +01:00
Sergey Vilgelm
251b205f54
Deprecate Interfacer
linter ( #1755 )
2021-02-20 18:55:11 -06:00
Sebastian Spaink
35b6f35476
Add "revive" linter ( #1729 )
2021-02-14 14:36:37 +01:00
dependabot[bot]
122193999a
build(deps): bump github.com/kulti/thelper from 0.1.0 to 0.2.0 ( #1630 )
2021-01-05 05:09:01 +01:00
nishanths
58234f055c
update exhaustive to latest; use version in go.mod ( #1449 )
...
* update exhaustive to latest
* wip
* update dep
* update flag name
* use versioned dep
* add tests
* unused file
* no need config file
* add vars to test
* test comment
* remove default settings
2020-10-14 08:19:06 +02:00
Xiang Dai
60613dc3eb
Introduce gci as new linter ( #1266 )
...
* Introduce gci as new linter
Signed-off-by: Xiang Dai <long0dai@foxmail.com>
* use goimports setting if not specified
Signed-off-by: Xiang Dai <long0dai@foxmail.com>
2020-07-28 13:55:02 +03:00
sonata
b98fda6f34
Enable linters for golangci-lint ( #1221 )
...
* Enable linters for golangci-lint
* Remove unused nolint
* Fix lint
2020-07-10 10:50:06 +09:00
sonata
f1a46f9861
Add Noctx ( #1179 )
...
Support for linter that enforces using context on each `http.Request`
https://github.com/sonatard/noctx
2020-06-08 20:21:58 +00:00
Nishanth Shanmugham
f3376cab71
add exhaustive linter ( #1166 )
...
* wip
more
add new files
run command fixes
more
* go.mod
* order
* same package
* review comment
* enable linter in .golangci.yml
* add testcase for default-signifies-exhaustive: true
* adjust runGoErrchk instead
* disable the linter
* cleanup
* more cleanup
* cleanup
2020-05-29 16:31:46 +03:00
dependabot-preview[bot]
54f83ae521
build(deps): bump github.com/go-critic/go-critic from 0.4.1 to 0.4.3 ( #1148 )
...
* build(deps): bump github.com/go-critic/go-critic from 0.4.1 to 0.4.3
Bumps [github.com/go-critic/go-critic](https://github.com/go-critic/go-critic ) from 0.4.1 to 0.4.3.
- [Release notes](https://github.com/go-critic/go-critic/releases )
- [Commits](https://github.com/go-critic/go-critic/compare/v0.4.1...v0.4.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
* Disable unnecessaryDefer from go-critic due to false positive
* Disable by regex, not check
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Simon Sawert <simon@sawert.se>
2020-05-19 09:54:27 +03:00
Isaev Denis
38782dd097
dev: use golangci-lint action ( #1066 )
2020-05-05 17:51:55 +03:00
Andrew Shannon Brown
909f628d75
Add linter for nolint
...
Linter can check that nolint statements are properly formatted and also that all
nolint statements are used.
2020-04-26 20:20:17 -07:00
Eric Wohltman
e76db1ae58
Re-enable gomnd
linter with release > v1.23.0
2020-01-20 09:16:04 -05:00
Isaev Denis
6237e59c97
dev: use goprintffuncname, gomnd and rowserrcheck ( #927 )
...
Order linters in config in alphabetical order.
Support gomnd configuration.
2020-01-19 19:55:29 +03:00
Trevor Pounds
88b6c25075
Update golangci.com config to 1.22.x release. ( #904 )
2020-01-19 18:31:49 +03:00
gaojingyu
e93138f00f
Add rows.Err weather checked linter ( #849 )
...
Add rowserrcheck
Co-authored-by: Isaev Denis <idenx@yandex.com>
2020-01-08 14:08:16 +03:00
Trevor Pounds
f6ced49dcc
Simplify skipped dir rules.
2019-12-29 21:21:41 -05:00
Trevor Pounds
a236783627
Update to github.com/go-critic/go-critic v0.4.0.
2019-12-29 19:43:24 -05:00
Patrick Zhang
06dddc3d67
Fix depguard config in yml
2019-12-29 17:12:11 -05:00
Daniel Caballero
98f60ebaa3
deadline is now deprecated, but should be taking its value from the configuration if set ( #822 )
...
* test that demostrates that deadline is not working if comes from the config
* overriding timeout with deadline when only deadline is different from its default value
* tests were not passing. default value for Deadline, that now only comes from config, is 0. Plus static check is going to fail because of deprecated cfg used
* golangci should use the latest golangci-lint version, that is the one deprecating deadline in favour of timeout
* README updated - looks the ci config in this project is used to generate usage instructions.. great!
2019-10-15 14:11:14 +03:00
Isaev Denis
9ba730e989
Make incremental analysis ( #808 )
...
Cache linting results. Reanalyze only changed packages
and packages tree depending on them.
Fixes #768 , fixes #809
2019-10-13 17:40:51 +03:00
Isaev Denis
ca6effbeec
dev: discourage bad practices ( #803 )
2019-10-12 12:36:03 +03:00
Trevor Pounds
fd997edeeb
Cleanup nolint directives. ( #779 )
2019-10-03 19:34:19 +03:00
Trevor Pounds
202e6f9546
Enable all gocritic tags.
2019-10-03 11:31:16 -04:00
Isaev Denis
2cadaf5beb
dev: enable whitespace, dogsled, funlen on the repo ( #746 )
2019-09-25 18:08:28 +03:00
Trevor Pounds
92168d033d
Add dogsled linter. ( #705 )
2019-09-17 08:44:53 +03:00