Releases: golangci/golangci-lint
v1.31.0
Changelog
13c2a34 Add home directory to config file search paths (#1325)
703f2af Add tests-on-macos to cover all main platforms (#1279)
1a2a672 Allow for serializing multiple golangci-lint invocations (#1302)
e695b14 Bump up gci to v0.2.2 (#1305)
ee85322 Fix typo in performance docs (#1350)
ad53b26 Gci: fix panic (#1292)
913e57f Gci: update the way to call Run() (#1337)
029278c Move sliceContains to new package pkg/sliceutil (#1333)
3d6d0e7 Prepare v1.31.0 (#1356)
a35fd6e Support short and json formats for version cmd (#1315)
8084559 Tag nancy version to v0.3 (#1321)
0d2da56 Update assets for v1.30.0 (#1283)
20083f7 Update docs state (#1284)
fe20066 build(deps): bump @emotion/core from 10.0.28 to 10.0.34 in /docs (#1310)
e40fec0 build(deps): bump @emotion/core from 10.0.34 to 10.0.35 in /docs (#1332)
4f25b09 build(deps): bump gatsby from 2.24.23 to 2.24.37 in /docs (#1297)
ca8bbb8 build(deps): bump gatsby from 2.24.37 to 2.24.52 in /docs (#1342)
3a65cb8 build(deps): bump gatsby-plugin-manifest from 2.4.21 to 2.4.23 in /docs (#1309)
fdfad7b build(deps): bump gatsby-plugin-manifest from 2.4.23 to 2.4.27 in /docs (#1355)
9f918b6 build(deps): bump gatsby-plugin-mdx from 1.2.30 to 1.2.35 in /docs (#1334)
ef0dd23 build(deps): bump gatsby-plugin-netlify from 2.3.11 to 2.3.12 in /docs (#1298)
630fb3b build(deps): bump gatsby-plugin-netlify from 2.3.12 to 2.3.13 in /docs (#1330)
1844a75 build(deps): bump gatsby-plugin-offline from 3.2.21 to 3.2.22 in /docs (#1299)
74b4e81 build(deps): bump gatsby-plugin-offline from 3.2.22 to 3.2.23 in /docs (#1329)
fea37b3 build(deps): bump gatsby-plugin-sharp from 2.6.24 to 2.6.25 in /docs (#1296)
74d13f9 build(deps): bump gatsby-plugin-sharp from 2.6.25 to 2.6.31 in /docs (#1354)
95cb484 build(deps): bump gatsby-plugin-sitemap from 2.4.11 to 2.4.12 in /docs (#1344)
b4d83d8 build(deps): bump gatsby-remark-embedder from 1.16.0 to 3.0.0 in /docs (#1289)
3984512 build(deps): bump gatsby-remark-images from 3.3.23 to 3.3.25 in /docs (#1311)
63e28ec build(deps): bump gatsby-remark-images from 3.3.25 to 3.3.28 in /docs (#1345)
140f642 build(deps): bump gatsby-source-filesystem in /docs (#1313)
e3f6a50 build(deps): bump gatsby-transformer-remark in /docs (#1300)
14f432e build(deps): bump gatsby-transformer-sharp in /docs (#1312)
6ac41d9 build(deps): bump github.com/go-critic/go-critic from 0.5.0 to 0.5.2 (#1307)
fe53590 build(deps): bump github.com/gofrs/flock from 0.7.1 to 0.7.3 (#1326)
11818df build(deps): bump github.com/gofrs/flock from 0.7.3 to 0.8.0 (#1340)
3ca396e build(deps): bump github.com/sourcegraph/go-diff from 0.5.3 to 0.6.0 (#1353)
cae1842 build(deps): bump github.com/spf13/viper from 1.7.0 to 1.7.1 (#1285)
fcfcf81 build(deps): bump github.com/ssgreg/nlreturn/v2 from 2.0.1 to 2.0.2 (#1287)
e2d717b build(deps): bump github.com/ssgreg/nlreturn/v2 from 2.0.2 to 2.1.0 (#1327)
ac43599 build(deps): bump github.com/ultraware/funlen from 0.0.2 to 0.0.3 (#1341)
3ae248e build(deps): bump github.com/valyala/quicktemplate from 1.5.1 to 1.6.0 (#1288)
20814be build(deps): bump github.com/valyala/quicktemplate from 1.6.0 to 1.6.2 (#1295)
78b742f build(deps): bump honnef.co/go/tools (#1286)
52dc198 build(deps): bump polished from 3.6.5 to 3.6.6 in /docs (#1347)
faf6ab2 build(deps): bump react-helmet from 5.2.1 to 6.1.0 in /docs (#1290)
2e8ac43 build(deps): bump react-icons from 3.10.0 to 3.11.0 in /docs (#1328)
18fd36b build(golang1.15): Upgrade to golang 1.15 for smaller binary (#1303)
8e63112 cleanup go.sum (#1336)
2cb7515 update exhaustive linter (#1339)
Docker images
docker pull golangci/golangci-lint:latest
docker pull golangci/golangci-lint:v1.31.0
docker pull golangci/golangci-lint:v1.31
docker pull golangci/golangci-lint:latest-alpine
docker pull golangci/golangci-lint:v1.31.0-alpine
docker pull golangci/golangci-lint:v1.31-alpine
v1.30.0
Changelog
3aa04f5 Add WithAutofix flag for gofumpt linter config (#1281)
d38d047 Gci: support auto fix (#1277)
60613dc Introduce gci as new linter (#1266)
45b90f6 Prepare release v1.30.0 (#1282)
63249d6 Trigger Netlify to rebuild the docs (#1256)
15d97e9 Update assets/github-action-config.json (#1254)
cb2f12e Update the gen_github_action_config to add latest to assets (#1260)
ba997c5 Use the latest version of golangci-lint in action (#1280)
4354a64 build(deps): bump github.com/securego/gosec/v2 from 2.3.0 to 2.4.0 (#1273)
ba48f30 build(deps): bump github.com/tetafro/godot from 0.4.2 to 0.4.8 (#1261)
6b60cb8 new nlreturn linter (#1267)
Docker images
docker pull golangci/golangci-lint:latest
docker pull golangci/golangci-lint:v1.30.0
docker pull golangci/golangci-lint:v1.30
docker pull golangci/golangci-lint:latest-alpine
docker pull golangci/golangci-lint:v1.30.0-alpine
docker pull golangci/golangci-lint:v1.30-alpine
v1.29.0
Changelog
21ee78c Improve 'no such linter' error message (#1244)
203bab6 Move dependabot config to .github folder (#1242)
862ed88 Run nancy validation for all dependencies (#1243)
6e7c317 Sorting result.Issues implementation (#1217) (#1218)
c8bd954 Support --fix for gofumpt (#1239)
27a97ae Update golangci-lint-action to use v1.2.2 (#1238)
a52e5ed Update the steps to make sure only template_date.state file is updated. (#1236)
65e1b30 build(deps): bump github.com/kyoh86/exportloopref from 0.1.4 to 0.1.7 (#1214)
cb3f67f build(deps): bump github.com/valyala/quicktemplate from 1.5.0 to 1.5.1 (#1240)
4f26f11 build(deps): bump golangci/golangci-lint-action from v1.2.2 to v2 (#1247)
90bce10 build(deps): bump lodash from 4.17.15 to 4.17.19 in /tools (#1250)
ee86e0e gofumpt: Add extra-rules option + update linter (#1228)
6dd10ac upgrade github.com/nishanths/exhaustive (#1246)
Docker images
docker pull golangci/golangci-lint:latest
docker pull golangci/golangci-lint:v1.29.0
docker pull golangci/golangci-lint:v1.29
docker pull golangci/golangci-lint:latest-alpine
docker pull golangci/golangci-lint:v1.29.0-alpine
docker pull golangci/golangci-lint:v1.29-alpine
v1.28.3
Changelog
45db4bd Bump gihub-action-config after patch release (#1223)
6550984 Configure path prefix via processor abstraction (#1226)
b98fda6 Enable linters for golangci-lint (#1221)
916213c Fix deprecation warning in goreleaser (#1224)
60abe4a Use lowercase directories (#1229)
6ab3138 go.sum: cleanup go.sum (#1231)
Docker images
docker pull golangci/golangci-lint:latest
docker pull golangci/golangci-lint:v1.28.3
docker pull golangci/golangci-lint:v1.28
docker pull golangci/golangci-lint:latest-alpine
docker pull golangci/golangci-lint:v1.28.3-alpine
docker pull golangci/golangci-lint:v1.28-alpine
v1.28.2
Changelog
d287af0 Explicitly pass GITHUB_TOKEN env to goreleaser action (#1215)
4fb9fe5 build(deps): bump github.com/mattn/go-colorable from 0.1.6 to 0.1.7 (#1213)
7610387 make assets/github-action-config.json (#1216)
Docker images
docker pull golangci/golangci-lint:latest
docker pull golangci/golangci-lint:v1.28.2
docker pull golangci/golangci-lint:v1.28
docker pull golangci/golangci-lint:latest-alpine
docker pull golangci/golangci-lint:v1.28.2-alpine
docker pull golangci/golangci-lint:v1.28-alpine
v1.28.1
Changelog
dfa0013 Fix: goheader linter can throw nil pointer exception in case of a source file has not issues (#1209)
d24bff5 Fixed docs link: points at contributing section (#1212)
fbce520 To enable v1.28 in github action (#1207)
afa9be6 Use latest golangci-lint to lint golangci-lint (#1206)
Docker images
docker pull golangci/golangci-lint:latest
docker pull golangci/golangci-lint:v1.28.1
docker pull golangci/golangci-lint:v1.28
docker pull golangci/golangci-lint:latest-alpine
docker pull golangci/golangci-lint:v1.28.1-alpine
docker pull golangci/golangci-lint:v1.28-alpine
v1.28.0
Changelog
f1a46f9 Add Noctx (#1179)
dc260be Add exportloopref linter (#1163)
01b566a Add go-header linter (#1181)
b22e3f1 Added sqlclosecheck to linters (#1203)
38d298c Adding gofumpt (#1177)
954127e Build rpm and deb packages with goreleaser (#1196)
184bbf8 Bump goreleaser to v0.136.0 (#1198)
ba6476a Fix syntax highlighting for bash scripts (#1151)
90a8cd4 Fix up nolintlint comments and urls (#1164)
5f0de29 Protect NewFilenameUnadjuster from concurrent map writes (#1192)
b8216ca Update not found url in new-linters.mdx (#1171)
306cbb0 Upgrading to go-critic v0.5.0 (#1205)
a85e1e1 action: enable v.1.27.0 for github action
fa7adcb add ability to set issue severity (#1155)
f3376ca add exhaustive linter (#1166)
d7bf70a build(deps): bump github.com/bombsimon/wsl/v3 from 3.0.0 to 3.1.0 (#1137)
54f83ae build(deps): bump github.com/go-critic/go-critic from 0.4.1 to 0.4.3 (#1148)
09df97a build(deps): bump github.com/mattn/go-colorable from 0.1.4 to 0.1.6 (#1147)
f338005 build(deps): bump github.com/sourcegraph/go-diff from 0.5.1 to 0.5.2 (#1136)
a393ef7 build(deps): bump github.com/sourcegraph/go-diff from 0.5.2 to 0.5.3 (#1173)
cd34a1e build(deps): bump github.com/spf13/viper from 1.6.1 to 1.7.0 (#1146)
b784f44 build(deps): bump github.com/stretchr/testify from 1.5.1 to 1.6.0 (#1174)
36a5a40 build(deps): bump github.com/stretchr/testify from 1.6.0 to 1.6.1 (#1183)
6bd04ab build(deps): bump github.com/valyala/quicktemplate from 1.2.0 to 1.5.0 (#1134)
5147255 build(deps): bump honnef.co/go/tools (#1145)
778e08f bump gomodguard version (#1140)
fd0524f cache: fix warning (#1162)
8959cdc chore(deps): update github.com/djarvur/go-err113 commit hash to 5174e21 (#1099)
3be4269 chore(deps): update github.com/golangci/gocyclo commit hash to 0a533e8 (#1101)
3aee873 chore(deps): update module fatih/color to v1.9.0 (#1112)
d01488e chore(deps): update module gofrs/flock to v0.7.1 (#1114)
7c33433 chore(deps): update module goreleaser/goreleaser to v0.134.0 (#1116)
55405f0 chore(deps): update module mitchellh/go-ps to v1 (#1127)
5bdeb74 chore(deps): update module pkg/errors to v0.9.1 (#1118)
6f45db7 chore(deps): update module sirupsen/logrus to v1.6.0 (#1120)
73a9aad chore(deps): update module spf13/cobra to v1 (#1129)
b1f294b chore(deps): update module yaml to v2.3.0 (#1126)
3c46e16 fix invalid error message "no go files to analyze" (#1154)
7c2871c godot: add autofix mode
71b2f04 handle some block comment to detect generated files (#1161)
6684c8b update new-linters doc (#1167)
Docker images
docker pull golangci/golangci-lint:latest
docker pull golangci/golangci-lint:v1.28.0
docker pull golangci/golangci-lint:v1.28
docker pull golangci/golangci-lint:latest-alpine
docker pull golangci/golangci-lint:v1.28.0-alpine
docker pull golangci/golangci-lint:v1.28-alpine
v1.27.0
Changelog
3c2aa58 Add *println to exception EXC0001 (#1074)
7526c8d Add tests, failures and errors attributes on testsuites (#1072)
403c202 Add unshallow to CI
d2cefe0 Create CODE_OF_CONDUCT.md
4e99c75 Fix godot false positive for cgo export comments (#1067)
7fe9a44 Fix indentetion issue in godot linter
7f48cc8 Fix lint errors on files with //line directive (#1065)
c88df8f Fix nil pointer in codeclimate.go (#1077)
ca853d1 Fix readme
77e211b Replacing Travis with Github actions (#1056)
5c2e8d4 Revert "dev: don't run CI on go.12 (#1060)"
60fd647 Update gosec linter to v2; add .test files to .gitignore (#1062)
f0012d3 Update gosec2 dependency to a tagged version (v2.3.0) (#1079)
6b124f1 fix goerr13 dependencies (#1089)
d7648bf godot: fix issue with --fix
flag
52c9b88 reduce mem. usage of unused and update staticcheck (#1063)
cb58d1f speed up CI and golangci-lint (#1070)
279b6d6 speed up a bit (#1064)
Docker images
docker pull golangci/golangci-lint:latest
docker pull golangci/golangci-lint:v1.27.0
docker pull golangci/golangci-lint:v1.27
docker pull golangci/golangci-lint:latest-alpine
docker pull golangci/golangci-lint:v1.27.0-alpine
docker pull golangci/golangci-lint:v1.27-alpine
v1.26.0
Changelog
909f628 Add linter for nolint
7f4a711 Update godot linter.
0d95faf feat: add go-err113 linter support
Docker images
docker pull golangci/golangci-lint:latest
docker pull golangci/golangci-lint:v1.26.0
docker pull golangci/golangci-lint:v1.26
docker pull golangci/golangci-lint:latest-alpine
docker pull golangci/golangci-lint:v1.26.0-alpine
docker pull golangci/golangci-lint:v1.26-alpine
v1.25.1
Changelog
0513849 Adding case sensitive exclude rules support
a68b411 Adding case-sensitive exclude processor
94f8d6a Ensuring interface implementation
078f44f Getting rid of code duplication
794a464 Improving flag help message
36d8d88 Preserve API backward compatibility
c55e761 Re-enable default excludes by ID
f8137cf Updating generated files
dfb2278 Upgrade gosec
d7772f5 Using ExcludeRulesProcessor
e3c0213 changelog: fix typo
86931b7 changelog: update
92aa97e feat: add asciicheck linter support
56f2b7d fixer: add warning about possible line range issue
c25bf85 readme: generate
c4e40f1 readme: generate
0fb48ad readme: re-generate
3deb9d8 unused: check line range before suggesting fix
569a19c update gomodguard
Docker images
docker pull golangci/golangci-lint:latest
docker pull golangci/golangci-lint:v1.25.1
docker pull golangci/golangci-lint:v1.25
docker pull golangci/golangci-lint:latest-alpine
docker pull golangci/golangci-lint:v1.25.1-alpine
docker pull golangci/golangci-lint:v1.25-alpine