synthetic-monitoring-api-go-client
synthetic-monitoring-api-go-client copied to clipboard
chore: Update module github.com/golangci/golangci-lint to v2
This PR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| github.com/golangci/golangci-lint | require | major | v1.55.2 -> v2.0.2 |
Release Notes
golangci/golangci-lint (github.com/golangci/golangci-lint)
v2.0.2
- Misc.
- Fixes flags parsing for formatters
- Fixes the filepath used by the exclusion
sourceoption
- Documentation
- Adds a section about flags migration
- Cleaning pages with v1 options
v2.0.1
- Linters/formatters bug fixes
golines: fix settings during linter load
- Misc.
- Validates the
versionfield before the configuration forbidigo: fix migration
- Validates the
v2.0.0
- Enhancements
- 🌟 New
golangci-lint fmtcommand with dedicated formatter configuration - ♻️ New
golangci-lint migratecommand to help migration from v1 to v2 (cf. Migration guide) - ⚠️ New default values (cf. Migration guide)
- ⚠️ No exclusions by default (cf. Migration guide)
- ⚠️ New default sort order (cf. Migration guide)
- 🌟 New option
run.relative-path-mode(cf. Migration guide) - 🌟 New linters configuration (cf. Migration guide)
- 🌟 New output format configuration (cf. Migration guide)
- 🌟 New
--fast-onlyflag (cf. Migration guide) - 🌟 New option
linters.exclusions.warn-unusedto log a warning if an exclusion rule is unused.
- 🌟 New
- New linters/formatters
- Add
golinesformatter https://github.com/segmentio/golines
- Add
- Linters new features
- ⚠️ Merge
staticcheck,stylecheck,gosimpleinto one linter (staticcheck) (cf. Migration guide) go-critic: from 0.12.0 to 0.13.0gomodguard: from 1.3.5 to 1.4.1 (block explicit indirect dependencies)nilnil: from 1.0.1 to 1.1.0 (new option:only-two)perfsprint: from 0.8.2 to 0.9.1 (checker name in the diagnostic message)staticcheck: newquickfixset of rulestestifylint: from 1.5.2 to 1.6.0 (new options:equal-values,suite-method-signature,require-string-msg)wsl: from 4.5.0 to 4.6.0 (new option:allow-cuddle-used-in-block)
- ⚠️ Merge
- Linters bug fixes
bidichk: from 0.3.2 to 0.3.3errchkjson: from 0.4.0 to 0.4.1errname: from 1.0.0 to 1.1.0funlen: fixignore-commentsoptiongci: from 0.13.5 to 0.13.6gosmopolitan: from 1.2.2 to 1.3.0inamedparam: from 0.1.3 to 0.2.0intrange: from 0.3.0 to 0.3.1protogetter: from 0.3.9 to 0.3.12unparam: from8a5130cto0df0534
- Misc.
- 🧹 Configuration options renaming (cf. Migration guide)
- 🧹 Remove options (cf. Migration guide)
- 🧹 Remove flags (cf. Migration guide)
- 🧹 Remove alternative names (cf. Migration guide)
- 🧹 Remove or replace deprecated elements (cf. Migration guide)
- Adds an option to display some commands as JSON:
golangci-lint config path --jsongolangci-lint help linters --jsongolangci-lint help formatters --jsongolangci-lint linters --jsongolangci-lint formatters --jsongolangci-lint version --json
- Documentation
v1.64.8
- Detects use of configuration files from golangci-lint v2
v1.64.7
- Linters bug fixes
- Documentation
- Add GitLab documentation
v1.64.6
- Linters bug fixes
asciicheck: from 0.4.0 to 0.4.1contextcheck: from 1.1.5 to 1.1.6errcheck: from 1.8.0 to 1.9.0exptostd: from 0.4.1 to 0.4.2ginkgolinter: from 0.19.0 to 0.19.1go-exhaustruct: from 3.3.0 to 3.3.1gocheckcompilerdirectives: from 1.2.1 to 1.3.0godot: from 1.4.20 to 1.5.0perfsprint: from 0.8.1 to 0.8.2revive: from 1.6.1 to 1.7.0tagalign: from 1.4.1 to 1.4.2
v1.64.5
- Bug fixes
- Add missing flag
new-from-merge-base-flag
- Add missing flag
- Linters bug fixes
asciicheck: from 0.3.0 to 0.4.0forcetypeassert: from 0.1.0 to 0.2.0gosec: from 2.22.0 to 2.22.1
v1.64.4
- Linters bug fixes
gci: fix standard packages list for go1.24
v1.64.3
- Linters bug fixes
ginkgolinter: from 0.18.4 to 0.19.0go-critic: from 0.11.5 to 0.12.0revive: from 1.6.0 to 1.6.1gci: fix standard packages list for go1.24
- Misc.
- Build Docker images with go1.24
v1.64.2
This is the last minor release of golangci-lint v1. The next release will be golangci-lint v2.
- Enhancements
- 🎉 go1.24 support
- New
issues.new-from-merge-baseoption - New
run.relative-path-modeoption
- Linters new features
copyloopvar: from 1.1.0 to 1.2.1 (support suggested fixes)exptostd: from 0.3.1 to 0.4.1 (handlesgolang.org/x/exp/constraints.Ordered)fatcontext: from 0.5.3 to 0.7.1 (new option:check-struct-pointers)perfsprint: from 0.7.1 to 0.8.1 (new options:integer-format,error-format,string-format,bool-format, andhex-format)revive: from 1.5.1 to 1.6.0 (new rules:redundant-build-tag,use-errors-new. New optionearly-return.early-return)
- Linters bug fixes
go-errorlint: from 1.7.0 to 1.7.1gochecknoglobals: from 0.2.1 to 0.2.2godox: from006bad1to 1.1.0gosec: from 2.21.4 to 2.22.0iface: from 1.3.0 to 1.3.1nilnesserr: from 0.1.1 to 0.1.2protogetter: from 0.3.8 to 0.3.9sloglint: from 0.7.2 to 0.9.0spancheck: fix defaultStartSpanMatchersSlicevaluesstaticcheck: from 0.5.1 to 0.6.0
- Deprecations
- ⚠️
tenvis deprecated and replaced byusetesting.os-setenv: true. - ⚠️
exportlooprefdeprecation step 2
- ⚠️
- Misc.
- Sanitize severities by output format
- Avoid panic with plugin without description
- Documentation
- Clarify
depguardconfiguration
- Clarify
v1.64.1
Cancelled due to CI failure.
v1.64.0
Cancelled due to CI failure.
v1.63.4
- Linters bug fixes
dupl,gomodguard,revive: keep only Go-files.
v1.63.3
- Linters bug fixes
gofmt,gofumpt,goimports,gci: panic with several trailing EOLgoheader: skip issues with invalid positions
v1.63.2
- Linters bug fixes
gofmt,gofumpt,goimports,gci: panic with missing trailing EOL
v1.63.1
- Linters bug fixes
cgi: invalid reports with cgogofumpt: panic with autofix and cgo
v1.63.0
- Enhancements
- Add support for SuggestedFixes 🎉 (35 linters can "autofix" reports).
- Formatters (
gofmt,goimports,gofumpt,gci) are applied after the suggested fixes.
- New linters
- Add
exptostdlinter https://github.com/ldez/exptostd - Add
nilnesserrlinter https://github.com/alingse/nilnesserr - Add
usetestinglinter https://github.com/ldez/usetesting
- Add
- Linters new features
gci: new options:no-inline-comments,no-prefix-commentsgomoddirectives: from 0.2.4 to 0.6.0 (new options:go-version-pattern,toolchain-pattern,toolchain-forbidden,tool-forbidden,go-debug-forbidden)govet: newstdversion,waitgroupanalyzersimportas: allow multiple empty aliasesloggercheck: newslogoptionrecvcheck: from 0.1.2 to 0.2.0 (new options:disable-builtin,exclusions)tagliatelle: from 0.5.0 to 0.7.1 (new options:ignored-fields,extended-rules,overrides,pkg,ignore)usestdlibvars: from 1.27.0 to 1.28.0 (autofix)wrapcheck: from 2.9.0 to 2.10.0 (new option:extra-ignore-sigs)
- Linters bug fixes
asciicheck: from 0.2.0 to 0.3.0bodyclose: from5742072toed6a65ffunlen: from 0.1.0 to 0.2.0ginkgolinter: from 0.18.3 to 0.18.4gochecksumtype: from 0.2.0 to 0.3.1gocognit: from 1.1.3 to 1.2.0godot: from 1.4.18 to 1.4.20goheader: report position improvementgosec: handling of global nosec option when it is falseiface: from 1.2.1 to 1.3.0importas: from 0.1.0 to 0.2.0intrange: from 0.2.1 to 0.3.0makezero: from 1.1.1 to 1.2.0mirror: from 1.2.0 to 1.3.0nilnil: from 1.0.0 to 1.0.1nosprintfhostport: from 0.1.1 to 0.2.0reassign: from 0.2.0 to 0.3.0spancheck: from 0.6.2 to 0.6.4tagalign: from 1.3.4 to 1.4.1wastedassign: from 2.0.7 to 2.1.0whitespace: from 0.1.1 to 0.2.0wsl: from 4.4.1 to 4.5.0
- Deprecations
- ⚠️
output.uniq-by-lineis deprecated and replaced byissues.uniq-by-line.
- ⚠️
- Misc.
- Improvements of the help command (color and JSON support).
- Removes
decoder,sloglint,tagalignfromformatpreset. - Enables paths with junction inside Windows.
- The timeout is disabled if
run.timeout<= 0.
v1.62.2
- Linters bug fixes
fatcontext: from 0.5.2 to 0.5.3ginkgolinter: from 0.18.0 to 0.18.3errorlint: from 1.6.0 to 1.7.0iface: from 1.2.0 to 1.2.1revive: from 1.5.0 to 1.5.1testifylint: from 1.5.0 to 1.5.2
- Misc.
- fix: ignore cache error when file not found
v1.62.1
Cancelled due to CI failure.
v1.62.0
- New linters
- Add
recvchecklinter https://github.com/raeperd/recvcheck - Add
ifacelinter https://github.com/uudashr/iface
- Add
- Linters new features
ginkgolinter: from 0.17.0 to 0.18.0 (new option:force-succeed)gochecksumtype: from 0.1.4 to 0.2.0 (new option:default-signifies-exhaustive)loggercheck: from 0.9.4 to 0.10.1 (log/slogsupport)nilnil: from 0.1.9 to 1.0.0 (new option:detect-opposite)revive: from 1.3.9 to 1.5.0 (new rules:filename-format, andfile-length-limit)tenv: from 1.10.0 to 1.12.1 (handle dot import)testifylint: from 1.4.3 to 1.5.0 (new checkers:contains,encoded-compare,regexp)
- Linters bug fixes
bidichk: from 0.2.7 to 0.3.2 (important performance improvement)canonicalheader: from 1.1.1 to 1.1.2cyclop: from 1.2.1 to 1.2.3dupword: from 0.1.1 to 0.1.3errcheck: from 1.7.0 to 1.8.0errchkjson: from 0.3.6 to 0.4.0errname: from 0.1.13 to 1.0.0gocritic: from 0.11.4 to 0.11.5goprintffuncname: from7558a9eto v0.1.0godot: from 1.4.17 to 1.4.18gosec: from 2.21.2 to 2.21.4intrange: from 0.2.0 to 0.2.1musttag: from 0.12.2 to 0.13.0nakedret: from 2.0.4 to 2.0.5noctx: from 0.0.2 to 0.1.0protogetter: from 0.3.6 to 0.3.8
- Deprecations
- ⚠️
execinquery: deprecation step 2 - ⚠️
gomnd: deprecation step 2 (replaced bymnd)
- ⚠️
- Misc.
- Type sizing when cross-compiling (32-bit).
- code-climate: add check_name field
- Improve Go version detection
- Fix Go version propagation
- Documentation
- Adds a section about
exclude-dirs-use-default - Improve 'install from sources' section
- Improve FAQ about Go versions
- Improve linter/rule/check docs
- Improve new linter section
- Improve
forbidigopattern examples for built-in functions
- Adds a section about
v1.61.0
- Enhancements
- Add
junit-xml-extendedformat - Exclude Swagger Codegen files by default
- Add
- Linters new features
gci: from 0.13.4 to 0.13.5 (new optionno-lex-order)nolintlint: remove the empty line in the directive replacement
- Linters bug fixes
dupword: from 0.0.14 to 0.1.1fatcontext: from 0.4.0 to 0.5.2go-ruleguard: from 0.4.2 to0fe6f58(fix panic with custom linters)godot: from 1.4.16 to 1.4.17gomodguard: from 1.3.3 to 1.3.5gosec: disable temporarilyG407gosec: fromab3f6c1to 2.21.2 (partially fixG115)intrange: from 0.1.2 to 0.2.0
- Misc.
- Improve runtime version parsing
- Documentation
- Add additional info about
typecheck
- Add additional info about
v1.60.3
- Updated linters
- Misc.
- Check that the Go version use to build is greater or equals to the Go version of the project
v1.60.2
- Linters new features
- Linters bug fixes
gofmt: update to HEAD (go1.22)gofumpt: from 0.6.0 to 0.7.0gosec: fix G602 analyzerstaticcheck: from 0.5.0 to 0.5.1staticcheck: propagate Go versionwrapcheck: from 2.8.3 to 2.9.0
- Deprecations
- ⚠️
exportloopref: deprecation
- ⚠️
v1.60.1
- Misc.
- 🎉 go1.23 support
- Linters new features
exhaustruct: from 3.2.0 to 3.3.0 (recognize custom error values in return)govet(printf): report non-constant format, no argslll: advertise max line length instead of just reporting failurerevive: from 1.3.7 to 1.3.9 (new rule:comments-density)staticcheck: from 0.4.7 to 0.5.0testifylint: from 1.3.1 to 1.4.3 (new options:formatter,suite-broken-parallel,suite-subtest-run)
- Linters bug fixes
errorlint: from 1.5.2 to 1.6.0fatcontext: from 0.2.2 to 0.4.0 (fix false positives for context stored in structs)gocognit: from 1.1.2 to 1.1.3gomodguard: from 1.3.2 to 1.3.3sloglint: from 0.7.1 to 0.7.2spancheck: from 0.6.1 to 0.6.2tenv: from 1.7.1 to 1.10.0 (remove reports on fuzzing)tparallel: from 0.3.1 to 0.3.2usestdlibvars: from 1.26.0 to 1.27.0 (fix false-positive with number used inside a mathematical operations)wsl: from 4.2.1 to 4.4.1
- Deprecations
- ️⚠️
unused: removeexported-is-usedoption
- ️⚠️
- Fixes
- SARIF: sanitize level property
- ️⚠️
typecheckissues should never be ignored
- Documentation
- Add link on linter without configuration
- Remove 'trusted by' page
wslupdate documentation of the configuration
v1.60.0
Cancelled due to a CI problem.
v1.59.1
- Updated linters
errorlint: from 1.5.1 to 1.5.2gomnd: deprecated configuration compatibilityintrange: addstylepresetmisspell: from 0.5.1 to 0.6.0sloglint: from 0.7.0 to 0.7.1testifylint: from 1.3.0 to 1.3.1unparam: bump to HEADusestdlibvars: from 1.25.0 to 1.26.0
- Fixes
- SARIF: init empty result slice
- SARIF: issue column >= 1
- Documentation
revive: update documentation of the configuration
v1.59.0
- Enhancements
- Add SARIF output format
- Allow the analysis of generated files (
issues.exclude-generated: disable)
- Updated linters
errcheck: fix deprecation warninggocritic: from 0.11.3 to 0.11.4gosec: from 2.20.0 to5f0084e(fix G601 and G113 performance issues)sloglint: from 0.6.0 to 0.7.0 (new optionforbidden-keys)testifylint: from 1.2.0 to 1.3.0 (new checkernegative-positiveand new optiongo-require.ignore-http-handlers)
- Misc.
- ️️⚠️ Deprecate
github-actionoutput format - ️️⚠️ Deprecate
issues.exclude-generated-strictoption (replaced byissues.exclude-generated: strict) - ️️⚠️ Add warning about disabled and deprecated linters (level 2)
- ️️⚠️ Deprecate
v1.58.2
- Updated linters
canonicalheader: from 1.0.6 to 1.1.1gosec: from 2.19.0 to 2.20.0musttag: from 0.12.1 to 0.12.2nilnil: from 0.1.8 to 0.1.9
- Documentation
- Improve integrations and install pages
v1.58.1
- Updated linters
tagalign: from 1.3.3 to 1.3.4protogetter: from 0.3.5 to 0.3.6gochecknoinits: fix analyzer name
- Fixes
- Restores previous
github-actionsoutput format (removes GitHub Action problem matchers)
- Restores previous
v1.58.0
- New linters
fatcontext: https://github.com/Crocmagnon/fatcontextcanonicalheader: https://github.com/lasiar/canonicalheader
- Updated linters
copyloopvar: from 1.0.10 to 1.1.0 (ignore-aliasis replaced bycheck-aliaswith the opposite behavior)decorder: from 0.4.1 to 0.4.2errname: from 0.1.12 to 0.1.13errorlint: from 1.4.8 to 1.5.1 (new optionsallowed-errorsandallowed-errors-wildcard)execinquery: deprecate linter ⚠️gci: from 0.12.3 to 0.13.4 (new sectionlocalModule)gocritic: from 0.11.2 to 0.11.3spancheck: from 0.5.3 to 0.6.1goerr113is replaced byerr113⚠️gomndis replaced bymnd⚠️gomodguard: from 1.3.1 to 1.3.2grouper: from 1.1.1 to 1.1.2intrange: from 0.1.1 to 0.1.2mirror: from 1.1.0 to 1.2.0misspell: from 0.4.1 to 0.5.1musttag: from 0.9.0 to 0.12.1nilnil: from 0.1.7 to 0.1.8nonamedreturns: from 1.0.4 to 1.0.5promlinter: from 0.2.0 to 0.3.0sloglint: from 0.5.0 to 0.6.0unparam: bump to HEAD (063aff9)whitespace: from 0.1.0 to 0.1.1
- Enhancements
- Speed up "fast" linters when only "fast" linters are run: between 40% and 80% faster at first run (i.e. without cache)
- Fixes
- Use version with module plugins
- Skip
go.modreport inside autogenerated processor - Keep only
typecheckissues when needed - Don't hide
typecheckerrors inside diff processor
- Misc.
- ⚠️ log an error when using previously deprecated linters (Linter Deprecation Cycle)
deadcode: deprecated since v1.49.0 (2022-08-23).exhaustivestruct: deprecated since v1.46.0 (2022-05-08).golint: deprecated since v1.41.0 (2021-06-15).ifshort: deprecated since v1.48.0 (2022-08-04).interfacer: deprecated since v1.38.0 (2021-03-03).maligned: deprecated since v1.38.0 (2021-03-03).nosnakecase: deprecated since v1.48.0 (2022-08-04).scopelint: deprecated since v1.39.0 (2021-03-25).structcheck: deprecated since v1.49.0 (2022-08-23).varcheck: deprecated since v1.49.0 (2022-08-23).
- ⚠️ Deprecate usage of linter alternative names
- Remove help display on errors with
config verifycommand - Add
pre-commithook to runconfig verify - Improve
github-actionoutput
- ⚠️ log an error when using previously deprecated linters (Linter Deprecation Cycle)
- Documentation
- Remove deprecated Atom from Editor Integrations
GitHub Action (v5.1.0) for golangci-lint:
- supports for
pull,pull_request_target, andmerge_groupevents with the optiononly-new-issues. - ️️⚠️
skip-pkg-cacheandskip-build-cachehave been removed because the cache related to Go itself is already handled byactions/setup-go. - with golangci-lint v1.58, the file information (path and position) will be displayed on the log.
v1.57.2
- Updated linters
contextcheck: from 1.1.4 to 1.1.5copyloopvar: from 1.0.8 to 1.0.10ginkgolinter: from 0.16.1 to 0.16.2goconst: from 1.7.0 to 1.7.1gomoddirectives: from 0.2.3 to 0.2.4intrange: from 0.1.0 to 0.1.1
- Misc.
- Display warnings on deprecated linter options
- Fix missing
colored-taboutput format - Fix TeamCity
inspectionTypeservice message
- Documentation
- Remove invalid example about mixing files and directory
- Improve linters page
v1.57.1
- Fixes
- Ignore issues with invalid position (e.g.
contextcheck).
- Ignore issues with invalid position (e.g.
v1.57.0
- New linters
copyloopvar: https://github.com/karamaru-alpha/copyloopvarintrange: https://github.com/ckaznocha/intrange
- Updated linters
dupword: from 0.0.13 to 0.0.14gci: from 0.12.1 to 0.12.3ginkgolinter: from 0.15.2 to 0.16.1 (new optionforce-expect-to,validate-async-intervals, andforbid-spec-pollution)go-critic: from 0.11.1 to 0.11.2go-critic: support ofenable-allanddisable-alloptionsgo-spancheck: from 0.5.2 to 0.5.3gomodguard: from 1.3.0 to 1.3.1govet: deprecation ofcheck-shadowing⚠️govet: disable temporarilyhttpresponsebecause of a bug https://github.com/golang/go/issues/66259misspell: addextra-wordsmusttag: from 0.8.0 to 0.9.0nakedret: from 2.0.2 to 2.0.4paralleltest: from 1.0.9 to 1.0.10perfsprint: from 0.6.0 to 0.7.1 (new optionstrconcat)protogetter: from 0.3.4 to 0.3.5revive: addexcludeoptionsloglint: from 0.4.0 to 0.5.0 (new optionno-global)staticcheck: from 0.4.6 to 0.4.7testifylint: from 1.1.2 to 1.2.0 (new optionbool-compare)unconvert: to HEAD (new optionsfast-mathandsafe)wrapcheck: from 2.8.1 to 2.8.3- Disable
copyloopvarandintrangeon Go < 1.22
- Enhancements
- 🧩New custom linters system https://golangci-lint.run/plugins/module-plugins/
- Allow running only a specific linter without modifying the file configuration (
--enable-only) - Allow custom sort order for the reports (
output.sort-order) - Automatically adjust the maximum concurrency to the container CPU quota if
run.concurrency=0 - Add
config verifycommand to check the configuration against the JSON Schema - Option to strictly follow Go generated file convention (
issues.exclude-generated-strict) - Syntax to not override
severityfrom linters (@linter) - Use severities from
gosec - Create automatically directory related to
output.formats.path - Use the first issue without inline on
mergeLineIssueson multiple issues
- Misc.
- ⚠️ Inactivate deprecated linters (
deadcode,exhaustivestruct,golint,ifshort,interfacer,maligned,nosnakecase,scopelint,structcheck,varcheck) - ⚠️ Deprecated CLI flags have been removed (deprecated since 2018)
- ⚠️ Move
show-statsoption fromruntooutputconfiguration section - ⚠️ Replace
run.skip-xxxoptions byissues.exclude-xxxoptions - ⚠️ Replace
output.formatbyoutput.formatswith a new file configuration syntax - Internal rewrite of the CLI
- Improve 'no go files to analyze' message
- Use
GOTOOLCHAIN=autoinside the Docker images
- ⚠️ Inactivate deprecated linters (
- Documentation
- ⚠️ Define the linter deprecation cycle https://golangci-lint.run/product/roadmap/#linter-deprecation-cycle
- 🎉Use information from the previous release to create linter pages
- Publish JSON schema on https://golangci-lint.run/jsonschema/golangci.jsonschema.json
- Reorganize documentation pages
- Add an explanation about the configuration file inside golangci-lint repository
⚠️ Important ⚠️
- Deprecated linters are inactivated, you still need to disable them if you are using
enable-all. - Deprecated CLI flags (about linter settings and
deadline) have been removed.
v1.56.2
- updated linters
go-critic: from 0.11.0 to 0.11.1gosec: from 2.18.2 to 2.19.0testifylint: from 1.1.1 to 1.1.2usestdlibvars: from 1.24.0 to 1.25.0wsl: from 4.2.0 to 4.2.1
- misc.
- Fix missing version in Docker image
- Documentation
- Explain the limitation of
new-from-revandnew-from-patch
- Explain the limitation of
v1.56.1
- updated linters
errcheck: from 1.6.3 to 1.7.0govet: disableloopclosurewith go1.22revive: from 1.3.6 to 1.3.7testifylint: from 1.1.0 to 1.1.1
v1.56.0
- new linters
spancheck: https://github.com/jjti/go-spancheck
- updated linters
depguard: from 2.1.0 to 2.2.0exhaustive: from 0.11.0 to 0.12.0exhaustruct: from 3.1.0 to 3.2.0gci: from 0.11.2 to 0.12.1ginkgolinter: from 0.14.1 to 0.15.2go-check-sumtype: from 0.1.3 to 0.1.4go-critic: from 0.9.0 to 0.11.0go-errorlint: from 1.4.5 to 1.4.8go-spancheck: from 0.4.2 to 0.5.2goconst: from 1.6.0 to 1.7.0godot: from 1.4.15 to 1.4.16gofumpt: from 0.5.0 to 0.6.0inamedparam: from 0.1.2 to 0.1.3ineffassign: from 0.0.0-20230610083614-0e73809eb601 to 0.1.0ireturn: from 0.2.2 to 0.3.0misspell: add mode optionmusttag: from v0.7.2 to v0.8.0paralleltest: from 1.0.8 to 1.0.9perfsprint: from 0.2.0 to 0.6.0protogetter: from 0.2.3 to 0.3.4revive: from 1.3.4 to 1.3.6sloglint: add static-msg optionsloglint: from 0.1.2 to 0.4.0testifylint: from 0.2.3 to 1.1.0unparam: from2022122-7455f1af531d to2024010-c549a3470d14whitespace: update after moving to theanalysispackagewsl: from 3.4.0 to 4.2.0zerologlint: from 0.1.3 to 0.1.5
- misc.
- 🎉 go1.22 support
- Implement stats per linter with a flag
- Make versioning inside Docker image consistent with binaries
- Parse Go RC version
- Documentation
- Fix
noctxdescription - Add missing fields to
.golangci.reference.yml - Improve
.golangci.reference.ymldefaults typecheck: improve FAQexhaustruct: note that struct regular expressions are expected to match the entirepackage/name/structnamewrapcheck: adjustignoreSigsto new defaults
- Fix
Important
testifylint has breaking changes about enabling/disabling checks:
-
If you were using the option
enablewith a filtered list of checks, you should either adddisable-all: true(1) or usedisablefield (2).
Example (1)
testifylint:
disable-all: true
enable:
- bool-compare
- compares
- empty
- error-is-as
- error-nil
- expected-actual
- go-require
- float-compare
- len
- nil-compare
- require-error
- suite-dont-use-pkg
- suite-extra-assert-call
- suite-thelper
```
```yml
Example (2)
testifylint:
disable:
- suite-dont-use-pkg
```
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Renovate Bot.