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
Isaev Denis
6a979fb40d
Update staticcheck and cache go/analysis facts ( #699 )
...
* update staticcheck
Don't fork staticcheck: use the upstream version.
Remove unneeded SSA loading.
* Cache go/analysis facts
Don't load unneeded packages for go/analysis.
Repeated run of go/analysis linters now 10x faster
(2s vs 20s on this repo) than before.
2019-09-17 08:42:16 +03:00
Will Dixon
9161de5b7d
Upgrade depguard to fix performance issue with go modules ( #698 )
...
* Upgrade depguard to fix performance issue with go modules
* Fix linting error of unused function
2019-09-15 14:13:16 +03:00
Matouš Dzivjak
58845813da
linters: add Godox linter support ( #621 )
...
Godox is linter for TODOs and FIXMEs left in the code.
Signed-off-by: Matous Dzivjak <matous.dzivjak@kiwi.com>
2019-09-11 16:53:40 +03:00
Isaev Denis
f1c1dbfab4
Feature/enable autofix on whitespace ( #674 )
...
The whitespace linter was added in #673 . Enable it and fix found issues.
Add auto-fixing to the whitespace linter.
2019-09-10 16:56:44 +03:00
Isaev Denis
6163a8a790
Support go1.13 ( #670 )
...
Setup Travis CI to run on go 1.12 and 1.13.
Update info about go versions in README.
Rebuild go.mod,go.sum on go1.13.
2019-09-09 21:54:56 +03:00
Cody Ley-Han
a8f2c27d1d
Add user supplied error messages in depguard issues ( #662 )
2019-09-09 20:46:55 +03:00
Isaev Denis
6864b2f764
dev: enable funlen on repo ( #668 )
2019-09-09 18:07:09 +03:00
NiseVoid
bb82273160
Add funlen linter ( #603 )
2019-09-09 16:56:30 +03:00
Denis Isaev
c92a7a30ae
docs: s/1.16/1.17
2019-06-10 10:36:04 +03:00
Tariq Ibrahim
e925b8f1ea
update golangci version references in the documentation
2019-06-09 13:00:02 +03:00
Denis Isaev
692dacb773
Update go-critic
...
New checkers were added:
- badCall
- dupImports
- evalOrder
- newDeref
The following checkers were fixed/improved:
- assignOp
- caseOrder
- commentedOutCode
- deprecatedComment
- dupArg
- rangeValCopy
- typeSwitchVar
- wrapperFunc
Relates: #429
2019-04-25 16:59:23 +03:00
Denis Isaev
8c1237b667
Use the newest go vet
...
The newest go vet based on go/analysis
2019-03-17 23:12:44 +03:00
Denis Isaev
d3bc69dc5b
docs: update changelog
2019-02-18 11:35:25 +03:00
Denis Isaev
d437ac8629
Implement auto-fixing for gofmt,goimports,misspell
...
Also, add more identifier marking patterns.
2019-02-17 20:31:31 +03:00
Denis Isaev
deb63b191f
docs: update README after #320
2019-02-17 18:51:34 +03:00
Denis Isaev
b31cfd6c78
update go-critic
...
$ git cherry --abbrev -v 0af0999fabfb ee9bf5809ead
+ abd8436 all: enable Go modules on CI (#753 )
+ 3c9d0fb checkers: recognize //line and //nolint in commentFormatting (#756 )
+ 0b517d7 checkers: extend deprecatedComment patterns (#757 )
+ 09100f6 checkers: use astcast package instead of coerce.go (#758 )
+ 2e9e97f checker: simplify boolExprSimplify (#759 )
+ 575701e make: add go-consistent to CI checks list (#761 )
+ b55f431 checkers: fix unlambda handling of builtins (#763 )
+ 5a7dee3 checker: handle lambdas properly in boolExprSimplify (#765 )
+ 5ce3939 checkers: teach boolExprSimplify a few new tricks (#766 )
+ 04d160f checkers: add new patterns to boolExprSimplify (#768 )
+ 09582e2 make: collect coverprofile separately from goveralls (#769 )
+ d8d0ee4 checkers: recognize NOTE pattern in deprecatedComment (#770 )
+ 12f0f85 Update copyright notice to 2019 (#771 )
+ f54bdb6 checkers: add stringXbytes checker
+ 170d65c checkers: followup for #773 (#774 )
+ 84e9e83 checkers: make stringXbytes more linear (#775 )
+ a800815 checkers: add Depreacted typo pattern (#776 )
+ 6751be9 checkers: add hexLiterals (#772 )
+ ac61906 checkers: add typeAssertChain checker (#782 )
+ d19dbf1 checkers: add codegenComment checker (#783 )
+ d82b576 checkers: proper pkg/obj check for flagName (#786 )
+ dfcf754 ci: enable integration tests (#787 )
+ 5dafc45 checkers: fix equalFold false positive (#788 )
+ ed5e8e7 checkers: refactor and fix hexLiteral checker (#789 )
+ e704e07 checkers: add argOrder checker (#790 )
+ 34c1dc8 checkers: add Split handling to argOrder checker (#791 )
+ cbe095d checkers: add math.Max and math.Min to dupArg (#792 )
+ c986ee5 checkers: add checkers info fields test (#794 )
+ 66e5832 cmd/makedocs: use lintpack, fix build (#793 )
+ 6bce9d0 cmd/makedocs: add enabled/disabled by default info (#795 )
+ 4adbf9a checkers: simplify flagName (#799 )
+ 07de34a checkers: add octalLiteral checker (#798 )
+ 765907a cmd/makedocs: add checker param docs (#796 )
+ ee9bf58 cmd/makedocs: fix headers formatting (#803 )
2019-02-11 09:35:41 +03:00
Denis Isaev
41cfba28c5
dev: update goreleaser config and add golangci.com configuration
2019-01-24 12:03:51 +03:00