Follow the news and releases on our twitter and our blog. There is the most valuable changes log:
- new linters:
gomoddirectives
: https://github.com/ldez/gomoddirectives
- update linters:
go-critic
: from 0.5.4 to 0.5.5gofumpt
: from v0.1.0 to v0.1.1gosec
: from 2.6.1 to 2.7.0ifshort
: bump to v1.0.2importas
: bump to HEADmakezero
: bump to HEADnolintlint
: allow to fix //nolint linesrevive
: from 1.0.3 to 1.0.5revive
: the default configuration is only applied when no dedicated configurationrowserrcheck
: bump to HEAD- ⚠
scopelint
: deprecated staticcheck
: from v0.1.2 (2020.2.2) to v0.1.3 (2020.2.3)- 🎉
typecheck
: display compilation errors as report instead of error wastedassign
: bump to v0.2.0wrapcheck
: bump to v1.0.0
- documentation:
- improve linters page (versions, deprecation, and presets)
- add cache directory information
- adding missing format options
- fix typos
- Misc:
- Set
version
command output to Stdout - fix linters load mode
- Restore fast linters meaning
- Set
- new linters:
durationcheck
: https://github.com/charithe/durationcheckrevive
: https://github.com/mgechev/revivecyclop
: https://github.com/bkielbasa/cyclopwastedassign
: https://github.com/sanposhiho/wastedassignimportas
: https://github.com/julz/importasnilerr
: https://github.com/gostaticanalysis/nilerrforcetypeassert
: https://github.com/gostaticanalysis/forcetypeassertgovet
: addstringintconv
andifaceassert
- update linters:
prealloc
: Use upstream versionerrcheck
: Use upstream versionineffassign
: Use upstream versiongocyclo
: Use upstream versiongodot
from 1.3.2 to 1.4.3exhaustivestruct
from 1.1.0 to 1.2.0forbidigo
from 1.0.0 to 1.1.0thelper
from 0.2.1 to 0.3.1ruleguard
: print error message and exit with non-zero status when parsing error occurs- fix wrong load mode for
asciicheck
,exhaustivestruct
,exportloopref
, andmakezero
wsl
: bump to v3.2.0durationcheck
: from 0.0.4 to 0.0.6staticcheck
: from 2020.1.6 to v0.1.2 (2020.2.2)thelper
from 0.3.1 to 0.4.0bodyclose
: bump to HEADgo-err113
: bump to HEAD- ⚠
interfacer
: deprecated - ⚠
maligned
: deprecated (govetfieldalignment
as replacement) govet
: use same default linter as go vetgo-printf-func-name
: tov0.0.0-20200119135958-7558a9eaa5af
godox
: tov0.0.0-20210227103229-6504466cf951
asciicheck
: tov0.0.0-20200416200610-e657995f937b
wrapcheck
: tov0.0.0-20201130113247-1683564d9756
unparam
: tov0.0.0-20210104141923-aac4ce9116a7
- CLI: truncate multiline descriptions
- fix: new-from-rev for a large repository
- Support RelatedInformation for analysis Diagnostic
- use go1.16 to create binaries
- fix: MIPS release
- documentation:
- bump documentation dependencies
- fix
go-header
usage - improve
gocritic
description - update deprecated hyperlink for Sublime Text plugin
- add docs on using homebrew tap
- new linters:
predeclared
: https://github.com/nishanths/predeclaredifshort
: https://github.com/esimonov/ifshort
- update linters:
go-critic
from 0.5.2 to 0.5.3thelper
from 0.1.0 to 0.2.1- Validate
go-critic
settings gofumpt
to v0.1.0gci
to v0.2.8go-mnd
to v2.3.1gosec
from 2.5.0 to 2.6.1godot
from 1.3.2 to 1.4.3ifshort
to v1.0.1rowserrcheck
: fix reports false positive
- fix: modules-download-mode support
- documentation:
- bump documentation dependencies
- new linters:
forbidigo
: https://github.com/ashanbrown/forbidigomakezero
: https://github.com/ashanbrown/makezerothelper
: https://github.com/kulti/thelper
- update linters:
go-header
from v0.3.1 to v0.4.2go-mnd
from v2.0.0 to v2.2.0godot
from v1.3.0 to v1.3.2gci
from v0.2.4 to v0.2.7gomodguard
from v1.1.0 to v1.2.0go-errorlint
from v0.0.0-20201006195004-351e25ade6e3 to v0.0.0-20201127212506-19bd8db6546fgofumpt
from v0.0.0-20200802201014-ab5a8192947d to v0.0.0-20201129102820-5c11c50e9475nolintlint
fix comment analysis. (#1571)
- result/processors: treat all non-Go source as special autogenerated files
- throw an error on panic. (#1540)
- resolve custom linters' path relative to config file directory (#1572)
- treat all non-Go source as special autogenerated files
- documentation:
- add settings examples for
gocritic
(#1562) - removing reference to no-longer-existing linter-in-the-cloud (#1553)
- add settings examples for
- others:
- bump
gopkg.in/yaml.v2
from 2.3.0 to 2.4.0 (#1528) - bump
gatsby-remark-responsive-iframe
in /docs (#1533) - bump
gatsby-remark-images
from 3.3.29 to 3.6.0 in /docs (#1531) - bump
ini
from 1.3.5 to 1.3.8 in /tools (#1560) - bump
react-headroom
from 3.0.0 to 3.0.1 in /docs (#1532) - bump
react-live
from 2.2.2 to 2.2.3 in /docs (#1534) - bump
react
from 16.13.1 to 16.14.0 in /docs (#1481) - Fix
forbidigo
linter name in reports (#1590)
- bump
- new linters:
paralleltest
: https://github.com/kunwardeep/paralleltest
- update linters:
godot
from v0.4.9 to v1.3.0exportloopref
from v0.1.7 to v0.1.8gosec
from 2.4.0 to 2.5.0goconst
using upstream https://github.com/jgautheron/goconst
DefaultExcludePatterns
should only be used for specified linter (#1494)- unknown linter breaks //nolint (#1497)
- report all unknown linters at once (#1477)
- CI:
- fix Docker tag for Alpine build
- documentation:
- missing sort-results in the docs (#1514)
- add description of Homebrew's official formula (#1421)
- others:
- bump
golang.org/x/text
to v0.3.4 (#1293) - bump
github.com/fatih/color
to from 1.9.0 to 1.10.0 (#1485) - bump
lodash
from 4.17.15 to 4.17.19 in /.github/peril (#1252) - bump
polished
from 3.6.6 to 4.0.3 in /docs (#1482) - bump
gatsby-alias-imports
from 1.0.4 to 1.0.6 in /docs (#1479) - bump
puppeteer
from 5.3.1 to 5.4.1 in /docs (#1480) - bump
gatsby-remark-embedder
from 3.0.0 to 4.0.0 in /docs (#1478)
- bump
- new linters:
exhaustivestruct
: https://github.com/mbilski/exhaustivestructgo-errorlint
: https://github.com/polyfloyd/go-errorlinttparallel
: https://github.com/moricho/tparallelwrapcheck
: https://github.com/tomarrell/wrapcheck
- update linters:
honnef.co/go/tools
from 2020.1.5 to 2020.1.6exhaustivestruct
from v1.0.1 to v1.1.0exhaustive
to v0.1.0gochecknoglobals
: use https://github.com/leighmcculloch/gochecknoglobals
- add support for powershell completion (#1408)
- add
.golangci.yaml
to list of configuration files searched on startup (#1364) - support for only specifying default severity (#1396)
- documentation:
- mention macports installation procedure on macOS (#1352)
- sort linters (#1451)
- CI:
- add codeQL scanning (#1405)
- fix version details in Docker image (#1471)
- releasing docker image for arm64 (#1383)
- change interval for npm to monthly (#1424)
- others:
- use tag version for cobra (#1458)
- bump
nancy
to 1.0.1 (#1410) - bump
gatsby-plugin-catch-links
in /docs (#1415) - bump
gatsby-plugin-mdx
from 1.2.40 to 1.2.43 in /docs (#1419) - bump
gatsby-plugin-sharp
from 2.6.31 to 2.6.40 in /docs (#1423) - bump
gatsby-plugin-sitemap
from 2.4.12 to 2.4.14 in /docs (#1417) - bump
github.com/mattn/go-colorable
from 0.1.7 to 0.1.8 (#1413) - bump
github.com/sirupsen/logrus
from 1.6.0 to 1.7.0 (#1412) - bump
github.com/sourcegraph/go-diff
from 0.6.0 to 0.6.1 (#1414) - bump
golangci/golangci-lint-action
from v2 to v2.3.0 (#1447) (#1469) - bump
puppeteer
from 3.3.0 to 5.3.1 in /docs (#1418)
- update linters:
godot
from 0.4.8 to 0.4.9exhaustive
from v0.0.0-20200708172631-8866003e3856 to v0.0.0-20200811152831-6cf413ae40e0gofumpt
from v0.0.0-20200709182408-4fd085cb6d5f to v0.0.0-20200802201014-ab5a8192947d
- add support for fish completion (#1201)
- documentation:
- fix typo in performance docs (#1350)
- CI:
- prevent macos to be marked as passing upon failure (#1381)
- check only for go.mod file (#1397)
- check if go.mod and go.sum are up to dated (#1377)
- trigger Netlify (#1358)
- others:
- bump
github.com/sourcegraph/go-diff
from 0.5.3 to 0.6.0 (#1353) - bump
github.com/valyala/quicktemplate
from 1.6.2 to 1.6.3 (#1385) - ignore known dependency failure in nancy (#1378)
- bump
@mdx-js/mdx
from 1.6.16 to 1.6.18 in /docs (#1401) - bump
gatsby
from 2.24.52 to 2.24.65 in /docs (#1400) - bump
gatsby-plugin-canonical-urls
in /docs (#1390) - bump
gatsby-plugin-google-analytics
in /docs (#1388) - bump
gatsby-plugin-manifest
from 2.4.23 to 2.4.27 in /docs (#1355) - bump
gatsby-plugin-mdx
from 1.2.35 to 1.2.40 in /docs (#1386) - bump
gatsby-plugin-offline
from 3.2.23 to 3.2.27 in /docs (#1368) - bump
gatsby-plugin-sharp
from 2.6.25 to 2.6.31 in /docs (#1354) - bump
gatsby-plugin-sitemap
from 2.4.11 to 2.4.12 in /docs (#1344) - bump
gatsby-remark-autolink-headers
in /docs (#1387) - bump
gatsby-remark-images
from 3.3.25 to 3.3.28 in /docs (#1345) - bump
gatsby-remark-images
from 3.3.28 to 3.3.29 in /docs (#1365) - bump
gatsby-remark-mermaid
from 2.0.0 to 2.1.0 in /docs (#1369) - bump
gatsby-source-filesystem
in /docs (#1366) - bump
gatsby-source-filesystem
in /docs (#1389) - bump
gatsby-transformer-sharp
in /docs (#1402) - bump
gatsby-transformer-yaml
from 2.4.10 to 2.4.11 in /docs (#1367) - bump
node-fetch
in /.github/contributors (#1363) - bump
polished
from 3.6.5 to 3.6.6 in /docs (#1347)
- bump
- new
nlreturn
linter: https://github.com/ssgreg/nlreturn - new
gci
linter: https://github.com/daixiang0/gci - support
latest
version of golangci-lint in golangci-lint-action - update
gosec
linter from 2.3.0 to 2.4.0 - update
godot
linter from 0.4.2 to 0.4.8 - update
go-critic
from 0.5.0 to 0.5.2 (#1307) - update
nlreturn
from 2.0.1 to 2.0.2 (#1287), 2.0.2 to 2.1.0 (#1327) - update
gci
to v0.2.1 (#1292), to v0.2.2 (#1305), to v0.2.4 (#1337), - update
funlen
from 0.0.2 to 0.0.3 (#1341) - upgrade to golang 1.15 for smaller binary (#1303)
- support short and json formats for version cmd (#1315)
- add home directory to config file search paths (#1325)
- allow for serializing multiple golangci-lint invocations (#1302)
gofumpt
linter:- update linter
- add
extra-rules
option - support auto-fixing
- upgrade
exhaustive
linter - upgrade
exportloopref
linter - improve 'no such linter' error message
- sorting result.Issues implementation
- enhancements in CI:
- Run
nancy
validation for all dependencies - Move dependabot config to
.github
folder
- Run
- other
- bump
lodash
from 4.17.15 to 4.17.19 in /tools - bump
golangci/golangci-lint-action
from v1.2.2 to v2 - bump
github.com/valyala/quicktemplate
from 1.5.0 to 1.5.1
- bump
- Add new linters:
gofumpt
- Add new linters:
nolintlint
,goerr113
- Updated linters:
godot
,staticcheck
- Launch a website
- Add new linters:
testpackage
,nestif
,godot
,gomodguard
,asciicheck
- Add github actions output format
- Update linters:
wsl
,gomodguard
,gosec
- Support
disabled-tags
setting forgocritic
- Mitigate OOM and "failed prerequisites"
- Self-isolate due to unexpected pandemics
- Support case-sensitive excludes
- Allow granular re-enabling excludes by ID, e.g.
EXC0002
- Support go1.13
- Add new linters:
funlen
,whitespace
(with auto-fix) andgodox
- Update linters:
gochecknoglobals
,scopelint
,gosec
- Provide pre-built binary for ARM and FreeBSD
-
- Fix false-positives in
unused
- Fix false-positives in
- Support
--skip-dirs-use-default
- Add support for bash completions
- Fix parallel writes race condition
- Update bodyclose with fixed panic
- Treat Go source files as a plain text by
misspell
: it allows detecting issues in strings, variable names, etc. - Implement richer and more stable auto-fix of
misspell
issues.
- Add bodyclose linter.
- Support junit-xml output.
- Update go-critic, new checkers were added: badCall, dupImports, evalOrder, newDeref
- Fix staticcheck panic on packages that do not compile
- Make install script work on Windows
- Fix compatibility with the latest x/tools version and update golang.org/x/tools
- Correct import path of module sourcegraph/go-diff
- Fix
max-issues-per-linter
name - Fix linting of preprocessed files (e.g.
*.qtpl.go
, goyacc) - Enable auto-fixing when running via pre-commit
- Support the newest
go vet
(withgo/analysis
) - Support configuration of
go vet
: e.g. you can set print functions bylinters-settings.govet.settings.printf.funcs
- Update megacheck (staticcheck) to 2019.1.1
- Add information about controlling space-time trade-off into README
- Exclude issues by source code line regexp by
issues.exclude-rules[i].source
- Build and test on go 1.12
- Support
--color
option - Update x/tools to fix c++ issues
- Include support for log level
- Sort linters list in help commands