Skip to content

Releases: golangci/golangci-lint

v1.22.0

30 Dec 04:20
Compare
Choose a tag to compare

Changelog

1248f09 Add Mercure in the list of projects using golangci-lint
48b15f3 Add mattermost to Trusted By (#863)
bd29216 Added go-mnd linter (#842)
70abc4a Added the updated vendor
ca432c4 Addressed naming convention (#859)
14ebae2 Bump wsl to v1.2.7
0e5b7a0 Bump wsl to v2.0.0
258eb9b Cleanup duplicate test run command.
0e7f88e Cleanup make targets.
ecccb24 Fix autogen exclude for comments under package (#831)
06dddc3 Fix depguard config in yml
503f964 Fix script release command.
2d59694 Fix typo
93c0eeb Fixed test deadline unit test
f3e349f Propagate error when linter cannot be run
8c1e2f0 Revert "Bump wsl to v1.2.7"
f6ced49 Simplify skipped dir rules.
641cca8 Update go.sum
704f9ef Update gomnd.go
ec615e0 Update install.sh.
d936399 Update pkg/golinters/gomnd.go
9fd3138 Update the gocognit linter
df22674 Update to Node.js v12.14.0 LTS.
a236783 Update to github.com/go-critic/go-critic v0.4.0.
2780e6f Update to github.com/spf13/viper v1.6.1.
874b18c Update to gopkg.in/yaml.v2 v2.2.7.
e4df56b Use the release version for go-mnd (#871)
ae427c1 chore: we can use a "console" for syntax
2346cd8 fix json report Enabled field
7a58a86 unused: suggest deleting unused stuff

Docker images

  • docker pull golangci/golangci-lint:latest
  • docker pull golangci/golangci-lint:v1.22.0
  • docker pull golangci/golangci-lint:v1.22
  • docker pull golangci/golangci-lint:latest-alpine
  • docker pull golangci/golangci-lint:v1.22.0-alpine
  • docker pull golangci/golangci-lint:v1.22-alpine

v1.21.0

15 Oct 18:23
645e794
Compare
Choose a tag to compare

Changelog

Performance

9ba730e Make incremental analysis (#808)
64b6266 Lock by flock to prevent parallel runs (#812)

Other

d47b6f5 Exposed modules-download-mode as a command line option (#781)
22df2d7 Update WSL to v1.2.5 (#811)
98f60eb deadline is now deprecated, but should be taking its value from the configuration if set (#822)

Docker images

  • docker pull golangci/golangci-lint:latest
  • docker pull golangci/golangci-lint:v1.21.0
  • docker pull golangci/golangci-lint:v1.21
  • docker pull golangci/golangci-lint:latest-alpine
  • docker pull golangci/golangci-lint:v1.21.0-alpine
  • docker pull golangci/golangci-lint:v1.21-alpine

v1.20.1

15 Oct 19:20
849044b
Compare
Choose a tag to compare

Changelog

27c8be0 deadline is now deprecated, but should be taking its value from the configuration if set (#822)
849044b just hide --deadline, don't deprecate

Docker images

  • docker pull golangci/golangci-lint:latest
  • docker pull golangci/golangci-lint:v1.20.1
  • docker pull golangci/golangci-lint:v1.20
  • docker pull golangci/golangci-lint:latest-alpine
  • docker pull golangci/golangci-lint:v1.20.1-alpine
  • docker pull golangci/golangci-lint:v1.20-alpine

v1.20.0

08 Oct 18:38
Compare
Choose a tag to compare

Changelog

Linters Updates

ee2e17f Update to latest securego/gosec (#792)
6cc10f0 Update to latest timakin/bodyclose. (#751)
baff4ab Update to matoous/godox v1.0.
fbbd245 Update whitespace to v0.0.4 (#786)
bbb0e6b update bodyclose

New Linters

3e09174 Add WSL linter (#771)
92ec1a1 Add gocognit linter (#756)
7e09842 govet: add more analyzers

Performance Optimization

95ec0cf dramatically reduce memory usage (#758)
df4f676 reduce 1.5x memory usage on large repos on repeated runs (#764)

Other

605c9c2 Add Alpine Linux images (#745)
2864c21 Add ppc64le release. (#790)
db20cd0 Add s390x release.
5e54b33 Add version command to print golangci-lint version
39d7929 Improve the error output from goimports
8e0197e Reduce cache directory permissions. (#788)
0cc87df Rename deadline option to timeout and mark deadline as deprecated. (#793)

Docker images

  • docker pull golangci/golangci-lint:latest-alpine
  • docker pull golangci/golangci-lint:v1.20.0-alpine
  • docker pull golangci/golangci-lint:v1.20-alpine
  • docker pull golangci/golangci-lint:latest
  • docker pull golangci/golangci-lint:v1.20.0
  • docker pull golangci/golangci-lint:v1.20

v1.19.1

25 Sep 14:38
Compare
Choose a tag to compare

Changelog

abad4c9 Cleanup obsolete go.mod/go.sum diff. (#729)
a2b2c7a Fix #733: update forked bodyclose
c427c61 Use separate go.mod/go.sum to manage tool deps. (#736)
a16b4d8 Use stretchr/testify to mock log.

Docker images

  • docker pull golangci/golangci-lint:latest
  • docker pull golangci/golangci-lint:v1.19.1
  • docker pull golangci/golangci-lint:v1.19

v1.19.0

23 Sep 20:41
Compare
Choose a tag to compare

Changelog

New Linters

92168d0 Add dogsled linter. (#705)
c7dee2c Add whitespace linter (#673)
5884581 linters: add Godox linter support (#621)

Linters Updates

6a979fb Update staticcheck and cache go/analysis facts (#699)
9976bdc Update whitespace
94eaa8f update go-critic (#679)
bf67a3e update gosec (#681)
b083358 update scopelint (#680)
9161de5 Upgrade depguard to fix performance issue with go modules (#698)

Performance Optimization

2fc8b7b Drop memory usage of go/analysis linters 5x
3aade55 Reduce memory usage of go/analysis
c9a9255 Speed up packages loading (#693)
fc8d614 speedup skip-dirs processing by caching

Other

f1c1dbf Feature/enable autofix on whitespace (#674)
f3f5dfc govet: implement analyzers config (#697)
c215cff Add bash completion to homebrew formula (#676)
4e439b4 Fix #608: use forked bodyclose
4495f89 Log go/analysis panics, don't crash
6ec8ff2 Update Dockerfile to Go 1.13. (#695)

Docker images

  • docker pull golangci/golangci-lint:latest
  • docker pull golangci/golangci-lint:v1.19.0
  • docker pull golangci/golangci-lint:v1.19

v1.18.0

10 Sep 09:42
31afdf8
Compare
Choose a tag to compare

Changelog

bb82273 Add funlen linter (#603)
91e90eb Add support for bash completions (#640)
a8f2c27 Add user supplied error messages in depguard issues (#662)
f84095a Build FreeBSD binaries (#613)
e87a1cf Fix a false-positive from 'unused' (#585)
338e3fb Fix install script on Windows (#626)
0b49095 Make generation of demo.svg deterministic (#625)
eabe43a Provide pre-built binary for ARM arch (#607)
375a5a8 Speed up linting: use deduplicated packages (#667)
6163a8a Support go1.13 (#670)
e1a7422 Update gochecknoglobals to support version exception (#601)
f8a5a8c Update depguard version to 1.0.0 (Performance improvements)
97fcafd Update format of junit xml output to mark failures as such (#632)
22d1ef6 Update pkg/errors to v0.8.1.
4ed1349 add kubeedge (#636)
d2b1eea bodyclose: fix race condition
f312a0f fix #416: Add skip-dirs-use-default (#630)
c5b0f95 fix cuncurrent [read/]write panic
cdeefb5 fix invalid dependencies (#605)
e175825 fix possible race in line cache
7e170af fix: body close panic.
136b271 update bodyclose: use upstream version (#666)
e39e8fb update x/tools

Docker images

  • docker pull golangci/golangci-lint:latest
  • docker pull golangci/golangci-lint:v1.18.0
  • docker pull golangci/golangci-lint:v1.18

v1.17.1

10 Jun 09:10
Compare
Choose a tag to compare

Changelog

d7ea266 Fix minor grammatical error. Fixes #556.
7274db7 fix #479: update go-critic to fix deps
4ba2155 fix #529: exit with code 7 when error was logged
b0281e8 update ineffassign

Docker images

  • docker pull golangci/golangci-lint:latest
  • docker pull golangci/golangci-lint:v1.17.1
  • docker pull golangci/golangci-lint:v1.17

v1.17.0

09 Jun 17:51
Compare
Choose a tag to compare

Changelog

72e137e Added "bodyclose" support
cc84f89 Correct import path of module sourcegraph/go-diff
09677d5 Enable auto-fixing when running via pre-commit
ec5bf9b Fix linting of goyacc files
ed0b551 Fix linting of preprocessed files
2f5f082 Fix max-issues-per-linter
39f46be Fix staticcheck panic on packages that do not compile
778888a Make install script work on Windows.
2508856 Makefile: Be clear about exactly which files are generated, and how
9ce3372 Makefile: Set GO111MODULE=on for consistency, adjust tests accordingly
88af709 Typo GOCC to GOGC
692dacb Update go-critic
6508d16 fix #513: don't add gofmt "with -s" if not needed
3d78f64 fix #522: run misspell in text mode
9d8eb16 fix after #533: fix comment and goimports
7f91ce8 fix conflict in go.mod after merging #555
d7a38bb go.mod: Roll back to golang/mock 1.0.0
5c86bfc junit-xml output
de1d1ad make use of LoadAllSyntax compatible with the latest x/tools version
127f89f update golang.org/x/tools
e925b8f update golangci version references in the documentation

Docker images

  • docker pull golangci/golangci-lint:latest
  • docker pull golangci/golangci-lint:v1.17.0
  • docker pull golangci/golangci-lint:v1.17

v1.16.0

31 Mar 19:52
97ea1cb
Compare
Choose a tag to compare

Changelog

c41b1e2 Add --color flag to force colored output on/off
c55a62a Add Go1.12 to TravisCI
f516771 Fix #415: sort linters list in help commands
7514bf8 Fix AST cache key consistency.
099f2ae Include log level option
8319caf Makefile: Add target build
3d2dfac Support excluding issues by source line regexp
cad10b2 Update go version to 1.12 in Dockerfile
0fdd91d Update golang.org/x/tools package to fix false IllTyped error
2c69ef2 Update megacheck (staticcheck) to 2019.1.1
8c1237b Use the newest go vet
d278457 add LICENSE for x/tools
be0679e build on go 1.12 and fix go 1.11 compatibility
926e99a copy go/analysis internal/checker into the project as is
a5c44d2 go1.11 compatibility fixed
407c3f0 go1.12: add nolint for gochecknoinits in mod_version.go
466006b go1.12: migrate from perl GOROOT/test/errcheck
7289a90 modify goanalysis

Docker images

  • docker pull golangci/golangci-lint:latest
  • docker pull golangci/golangci-lint:v1.16.0
  • docker pull golangci/golangci-lint:v1.16