Skip to content

Releases: golangci/golangci-lint

v1.43.0

03 Nov 12:16
861262b
Compare
Choose a tag to compare

Changelog

bdc2f96 Add code comments to document source code (#2306)
861262b Add github.com/breml/bidichk linter (#2330)
3229262 Add nilnil linter (#2236)
20699a7 Add tenv linter (#2221)
e612577 Bump gochecknoglobals to v0.1.0 (#2317)
1be9570 Refactor: preallocate slices (#2340)
813ba7d Update index.mdx (#2230)
f500e4c add varnamelen linter (#2240)
e6c5669 build(deps): bump github.com/Antonboom/errname from 0.1.4 to 0.1.5 (#2249)
a37843b build(deps): bump github.com/butuzov/ireturn from 0.1.0 to 0.1.1 (#2246)
680f3e6 build(deps): bump github.com/charithe/durationcheck from 0.0.8 to 0.0.9 (#2289)
00e4770 build(deps): bump github.com/esimonov/ifshort from 1.0.2 to 1.0.3 (#2303)
d3fc84b build(deps): bump github.com/fatih/color from 1.12.0 to 1.13.0 (#2259)
4ce9a19 build(deps): bump github.com/go-critic/go-critic from 0.5.6 to 0.6.0 (#2041)
5adafe5 build(deps): bump github.com/jingyugao/rowserrcheck from 1.1.0 to 1.1.1 (#2326)
3fe324a build(deps): bump github.com/kunwardeep/paralleltest from 1.0.2 to 1.0.3 (#2244)
739ccd3 build(deps): bump github.com/mattn/go-colorable from 0.1.10 to 0.1.11 (#2277)
c6c55d2 build(deps): bump github.com/mattn/go-colorable from 0.1.8 to 0.1.9 (#2252)
8f2af02 build(deps): bump github.com/mattn/go-colorable from 0.1.9 to 0.1.10 (#2260)
78d309e build(deps): bump github.com/mgechev/revive from 1.1.1 to 1.1.2 (#2276)
1012c10 build(deps): bump github.com/nakabonne/nestif from 0.3.0 to 0.3.1 (#2325)
6edca92 build(deps): bump github.com/securego/gosec/v2 from 2.8.1 to 2.9.1 (#2299)
963257f build(deps): bump github.com/shirou/gopsutil/v3 from 3.21.7 to 3.21.8 (#2225)
b9f015c build(deps): bump github.com/shirou/gopsutil/v3 from 3.21.8 to 3.21.9 (#2275)
9f62853 build(deps): bump github.com/shirou/gopsutil/v3 from 3.21.9 to 3.21.10 (#2327)
f125831 build(deps): bump github.com/spf13/viper from 1.8.1 to 1.9.0 (#2243)
60a9d16 build(deps): bump github.com/tetafro/godot from 1.4.10 to 1.4.11 (#2248)
8c60147 build(deps): bump github.com/tetafro/godot from 1.4.9 to 1.4.10 (#2226)
2fb6563 build(deps): bump github.com/tomarrell/wrapcheck/v2 from 2.3.0 to 2.3.1 (#2278)
9bb917d build(deps): bump github.com/tomarrell/wrapcheck/v2 from 2.3.1 to 2.4.0 (#2324)
59c7b10 build(deps): bump github.com/valyala/quicktemplate from 1.6.3 to 1.7.0 (#2250)
5d4fe00 build(deps): bump golang.org/x/tools from 0.1.5 to 0.1.6 (#2245)
91016ac build(deps): bump tmpl from 1.0.4 to 1.0.5 in /.github/peril (#2247)
f47f4f5 codeql: Remove unneeded steps (#2336)
413bec6 errcheck: empty selector name. (#2309)
7fc2fe8 feat: add contextcheck linter (#2216)
8cb9c76 fix: Add missing space in "disabled by config" warning (#2310)
a8887d5 fix: don't hide enable-all option (#2338)
cf9f3f9 fix: go.sum (#2262)
2c01ea7 gocritic: add support for variable substitution in ruleguard path settings (#2308)
cc262bb gosec: filter issues according to the severity and confidence (#2295)
9b577fc new-from-rev: add support for finding issues in entire files in a diff (#2264)
2ea496f new-linter: ireturn (checks for function return type) (#2219)
17d24eb nlreturn: add block-size option (#2237)

v1.42.1

06 Sep 17:22
54f4301
Compare
Choose a tag to compare

Changelog

d3705d0 Build docker images with go1.17 (#2188)
aff4fc0 Update Go versions used by the CI (#2183)
60b22be build(deps): bump github.com/Antonboom/errname from 0.1.3 to 0.1.4 (#2192)
791c83e build(deps): bump github.com/mgechev/revive from 1.1.0 to 1.1.1 (#2201)
a489412 build(deps): bump github.com/tetafro/godot from 1.4.8 to 1.4.9 (#2200)
4ab17bd errcheck: update to HEAD (#2213)
54f4301 gci: Parse the settings more similarly to the cli (#2217)
ee30b44 go-critic: fix invalid type conversions. (#2186)

v1.42.0

17 Aug 12:02
c6142e3
Compare
Choose a tag to compare

Changelog

652bd91 Add errname linter (#2129)
c6142e3 Bump staticcheck to 2021.1.1 (v0.2.1) (#2179)
15963ed Revert "add nilassign linter" (#2154)
cc0914f Support RISV64 (#2080)
bbf0450 add nilassign linter (#2131)
ad4f927 build(deps): bump color-string from 1.5.3 to 1.5.5 in /tools (#2081)
4f2c272 build(deps): bump github.com/BurntSushi/toml from 0.3.1 to 0.4.1 (#2165)
879821e build(deps): bump github.com/daixiang0/gci from 0.2.8 to 0.2.9 (#2085)
2758e45 build(deps): bump github.com/gofrs/flock from 0.8.0 to 0.8.1 (#2083)
a3d3ac2 build(deps): bump github.com/ldez/gomoddirectives from 0.2.1 to 0.2.2 (#2125)
38c6baa build(deps): bump github.com/mgechev/revive from 1.0.7 to 1.0.8 (#2086)
d913078 build(deps): bump github.com/mgechev/revive from 1.0.8 to 1.0.9 (#2113)
842e1ec build(deps): bump github.com/mgechev/revive from 1.0.9 to 1.1.0 (#2174)
f285d2c build(deps): bump github.com/nishanths/exhaustive from 0.1.0 to 0.2.3 (#2112)
959d8db build(deps): bump github.com/ryancurrah/gomodguard from 1.2.2 to 1.2.3 (#2155)
8ab80c1 build(deps): bump github.com/securego/gosec/v2 from 2.8.0 to 2.8.1 (#2073)
f090c7b build(deps): bump github.com/shirou/gopsutil/v3 from 3.21.5 to 3.21.6 (#2106)
85f8a60 build(deps): bump github.com/shirou/gopsutil/v3 from 3.21.6 to 3.21.7 (#2153)
f9a31a0 build(deps): bump github.com/spf13/cobra from 1.1.3 to 1.2.1 (#2105)
afb042b build(deps): bump github.com/spf13/viper from 1.7.1 to 1.8.0 (#2072)
5f72314 build(deps): bump github.com/spf13/viper from 1.8.0 to 1.8.1 (#2082)
3799dd0 build(deps): bump github.com/tetafro/godot from 1.4.7 to 1.4.8 (#2123)
c36909d build(deps): bump github.com/tomarrell/wrapcheck/v2 from 2.1.0 to 2.2.0 (#2071)
9e47090 build(deps): bump github.com/uudashr/gocognit from 1.0.1 to 1.0.5 (#2122)
1bb6885 build(deps): bump golang.org/x/tools from 0.1.3 to 0.1.4 (#2084)
511efdb build(deps): bump golang.org/x/tools from 0.1.4 to 0.1.5 (#2124)
141677d build(deps): bump path-parse from 1.0.6 to 1.0.7 in /.github/peril (#2169)
b7384b1 build(deps): bump path-parse from 1.0.6 to 1.0.7 in /tools (#2166)
a6fcf6f cleanup: Remove completion subcommand (#2107)
6c295e4 deps: Update Wrapcheck to v2.3.0 (#2145)
b3f9763 errcheck: allow exclude config without extra file (#2110)
678ae9f gofumpt: Add lang-version option (#2069)
9ce20f9 revive: add enable-all-rules. (#2075)

v1.41.1

19 Jun 16:15
a207480
Compare
Choose a tag to compare

Changelog

6924df8 Bump github.com/ryancurrah/gomodguard from 1.2.1 to 1.2.2 (#2065)
a207480 revive: fix exclude comment rule for const block. (#2064)

v1.41.0

16 Jun 20:12
eed344f
Compare
Choose a tag to compare

Changelog

52b5514 Bump github.com/jgautheron/goconst from 0.5.6 to 0.5.7(#2044)
f900232 Update errorlint to HEAD (#1996)
1c2c8ff Update godot to 1.4.7 (#2010)
5d84fa5 Update makezero to HEAD (#2006)
46009fb Update rowserrcheck to v1.1.0 (#1997)
2dcc761 Update wastedassign to v2.0.6 (#2020)
4c27b33 build(deps): bump actions/cache from 2.1.5 to 2.1.6 (#2023)
4e9866a build(deps): bump github.com/ashanbrown/forbidigo from 1.1.0 to 1.2.0 (#1991)
874304d build(deps): bump github.com/charithe/durationcheck from 0.0.6 to 0.0.7 (#1990)
6a269af build(deps): bump github.com/charithe/durationcheck from 0.0.7 to 0.0.8 (#2052)
4143f57 build(deps): bump github.com/fatih/color from 1.10.0 to 1.11.0 (#1992)
b5d847f build(deps): bump github.com/mgechev/revive from 1.0.6 to 1.0.7 (#2027)
6ffa139 build(deps): bump github.com/securego/gosec/v2 from 2.7.0 to 2.8.0 (#2025)
555cde6 build(deps): bump github.com/shirou/gopsutil/v3 from 3.21.4 to 3.21.5 (#2042)
fe0db3d build(deps): bump github.com/tommy-muehle/go-mnd/v2 from 2.3.2 to 2.4.0 (#2024)
55133bf build(deps): bump golang.org/x/tools from 0.1.2 to 0.1.3 (#2053)
a68a88e build(deps): bump honnef.co/go/tools from v0.1.4 to v0.2.0 (#2019)
fd6fce9 build(deps): bump ws from 5.2.2 to 5.2.3 in /.github/peril (#2045)
505ed3c doc: Un-deprecate enable-all option. (#2039)
3c795d8 doc: add all integrations to docs introduction page (#2040)
7776b54 gomodguard: fix problem where duplicate issues were being reported (#2018)
6172338 nolintlint: fix false positive. (#2013)
2862ca6 output: generate HTML report (#2043)
eed344f revive: allow to disable rule (#2055)
cf8fd68 revive: fix add-constant rule support. (#2003)
fb7c90d revive: fix excludes (#2005)
62668d4 revive: improve 'exported' rule output. (#1994)
b916c93 staticcheck: configuration for staticcheck, gosimple, stylecheck (#2017)

v1.40.1

14 May 11:59
625445b
Compare
Choose a tag to compare

Changelog

f2ba4bc build(deps): bump hosted-git-info from 2.7.1 to 2.8.9 in /tools (#1968)
ce67262 build(deps): bump hosted-git-info from 2.8.8 to 2.8.9 in /.github/peril (#1966)
b282d30 build(deps): bump lodash from 4.17.19 to 4.17.21 in /tools (#1964)
3aeafb8 build(deps): bump lodash from 4.17.20 to 4.17.21 in /.github/peril (#1967)
47baa2c doc: fix example config yaml identation (#1976)
f95b1ed golint: deprecation (#1965)
589c49e govet: fix sigchanyzer (#1975)
625445b runner: non-zero exit code when a linter produces a panic (#1979)

v1.40.0

10 May 10:58
5c6adb6
Compare
Choose a tag to compare

Changelog

6844f6a Add promlinter to lint metrics name (#1265)
93df6f7 Add tagliatelle linter (#1906)
c5891c0 Bump importas to HEAD (#1899)
c213e4e Bump wastedassign to v1.0.0 (#1955)
92fda26 Update Wrapcheck to v2, add configuration (#1947)
a7865d2 Update errorlint to HEAD (#1933)
ffe8061 Update importas to HEAD (#1934)
12e3251 Update wrapcheck to v1.2.0 (#1927)
d6bcf9f Update wsl to 3.3.0, sort config in example config (#1922)
53a4b41 build(deps): bump actions/cache from v2.1.4 to v2.1.5 (#1918)
d252670 build(deps): bump emotion-theming from 10.0.27 to 11.0.0 in /docs . (#1623)
5baff12 build(deps): bump github.com/hashicorp/go-multierror from 1.0.0 to 1.1.1 (#1877)
0f3f9ef build(deps): bump github.com/mgechev/revive from 1.0.5 to 1.0.6 (#1908)
7ee6e4d build(deps): bump github.com/shirou/gopsutil/v3 from 3.21.2 to 3.21.3 (#1890)
f1ca682 build(deps): bump github.com/shirou/gopsutil/v3 from 3.21.3 to 3.21.4 (#1951)
9e11a08 build(deps): bump github.com/tetafro/godot from 1.4.4 to 1.4.5 (#1907)
54bfbb9 build(deps): bump github.com/tetafro/godot from 1.4.5 to 1.4.6 (#1935)
42cc784 build(deps): bump github.com/tomarrell/wrapcheck from 1.0.0 to 1.1.0 (#1891)
2c00832 build(deps): bump github.com/tommy-muehle/go-mnd/v2 from 2.3.1 to 2.3.2 (#1919)
c9ec73f build(deps): bump golangci/golangci-lint-action from v2.5.1 to v2.5.2 (#1889)
96a7f62 build(deps): bump honnef.co/go/tools from 0.1.3 to 0.1.4 (#1952)
07ae877 build(deps): bump y18n from 4.0.0 to 4.0.1 in /.github/peril (#1879)
c610079 feat: set the minimum Go version to go1.15 (#1926)
1fb67fe fix release stats badge (#1901)
9cb902c fix: comma in exclude pattern leads to unexpected results (#1917)
8f3ad45 gosec: add configuration (#1930)
cd9d8bb govet: Update vet passes (#1950)
07a0568 importas: add message if settings contain no aliases (#1956)
5c6adb6 importas: allow repeated aliases (#1960)
34ffdc2 revive: convert hard coded excludes into default exclude patterns (#1938)
12ed5fa staticcheck: configurable Go version. (#1946)
a833cc1 typecheck: improve error stack parsing. (#1886)
8da9d3a update go-critic to v0.5.6 (#1925)

v1.39.0

26 Mar 08:13
9aea4ae
Compare
Choose a tag to compare

Changelog

94d2d80 Add gomoddirectives linter. (#1817)
b6a6faa Add new presets (#1847)
8db518c Add versions, improve deprecation system, improve linters page (#1854)
4bc68c0 Bump gofumpt from v0.1.0 to v0.1.1 (#1834)
82778e2 Bump importas to HEAD (#1864)
fb394a9 Bump makezero to HEAD (#1865)
e381b33 Bump rowserrcheck to HEAD (#1843)
8d0075d Bump staticcheck to 2020.2.3 (v0.1.3) (#1829)
03992d0 Bump wrapcheck to v1.0.0 (#1863)
fce3949 Deprecate 'scopelint' linter (#1819)
2e5e887 Improve issue templates chooser. (#1821)
87d37c6 Restore fast linters meaning (#1844)
814bf0e Set version command output to Stdout (#1869)
ba6e969 build(deps): bump github.com/go-critic/go-critic from 0.5.4 to 0.5.5 (#1867)
e23f80e build(deps): bump github.com/mgechev/revive from 1.0.3 to 1.0.5 (#1866)
714bd28 build(deps): bump github.com/securego/gosec/v2 from 2.6.1 to 2.7.0 (#1823)
c11228b build(deps): bump github.com/shirou/gopsutil/v3 from 3.21.1 to 3.21.2 (#1822)
cd2025d build(deps): bump github.com/sirupsen/logrus from 1.8.0 to 1.8.1 (#1845)
7a612da bump ifshort to v1.0.2 (#1837)
351f57b bump wastedassign to v0.2.0 (#1815)
809be02 fix: linters load mode (#1862)
e1a734e nolintlint: allow to fix //nolint lines (#1583)
cd6644d revive: the default configuration is only applied when no dedicated configuration. (#1831)
9aea4ae typecheck: display compilation errors as report instead of error (#1861)

v1.38.0

03 Mar 14:02
507703b
Compare
Choose a tag to compare

Changelog

5698d46 Add ForceTypeAssert linter (#1789)
012559c Add linter wastedassign (#1651)
66fc779 Add nilerr linter. (#1788)
f00da2c Add stringintconv and ifaceassert to govet (#1360)
a1e3749 Bump github.com/Djarvur/go-err113 to HEAD (#1760)
495a74f Bump github.com/timakin/bodyclose to HEAD (#1758)
b7aac3b Bump wsl to v3.2.0 (#1750)
251b205 Deprecate Interfacer linter (#1755)
42ff682 Deprecate maligned, add govet fieldalignment as replacement (#1765)
92d38e5 Exclude PR about doc dependencies from release changelog. (#1752)
89315e0 Fix go-header usage (#1785)
05836e4 Integrate ImportAs linter (#1783)
cdaf03d Remove outdated CVEs from .nancy-ignore (#1791)
856ffd1 Support RelatedInformation for analysis Diagnostic (#1773)
507703b Update Docs and Assets Github Actions (#1460)
5dcc3ea Update dependencies that dependabot cannot (#1790)
2e7c389 Update staticcheck to v0.1.2 (2020.2.2) (#1756)
b77118f Use errcheck from main repo instead of golangci-lint fork (#1319)
1a906bc Use go v1.14 in go.mod file (#1803)
34e46c7 Using a version instead of commit id for goconst (#1786)
747e3ae add doc for the profiling arguments (#1761)
dac2059 build(deps): bump github.com/kulti/thelper from 0.3.1 to 0.4.0 (#1764)
326d715 build(deps): bump github.com/sirupsen/logrus from 1.7.0 to 1.8.0 (#1763)
067cfac build(deps): bump golangci/golangci-lint-action from v2.4.0 to v2.5.1 (#1798)
d6db13d build(deps): bump sonatype-nexus-community/nancy-github-action (#1762)
2880d89 bump durationcheck from 0.0.4 to 0.0.6 (#1757)
5ca2973 fix: use same default linter as go vet. (#1793)
eefb974 ineffassign: use upstrea instead of golangci fork (#1780)
b407bb8 revive: add rule name in message. (#1772)

v1.37.1

20 Feb 11:58
b39dbcd
Compare
Choose a tag to compare

Changelog

9c47715 Update doc for v1.37.0 (#1742)
32e8517 cyclop: add missing settings (#1743)
b39dbcd durationcheck: False positive when multiplying with int type struct field (#1744)
ea5f479 exhaustivestruct: add missing settings (#1746)
4b3fb4c revive: fix types and default configuration. (#1747)