Skip to content

chore(deps): update dependency golangci/golangci-lint

Ghost User requested to merge renovate/golangci-golangci-lint-1.x into main

This MR contains the following updates:

Package Type Update Change
golangci/golangci-lint minor 1.42.1 -> 1.46.2
golangci/golangci-lint repository minor v1.44.0 -> v1.46.2

Note: The pre-commit manager in Renovate is not supported by the pre-commit maintainers or community. Please do not report any problems there, instead create a Discussion in the Renovate repository if you have any questions.


Release Notes

golangci/golangci-lint

v1.46.2

Compare Source

  1. updated linters:
    • execinquery: bump from v1.2.0 to v1.2.1
    • errorlint: bump to v1.0.0
    • thelper: allow to disable one option
  2. documentation:
    • rename .golangci.example.yml to .golangci.reference.yml
    • add containedctx linter to the list of available linters

v1.46.1

Compare Source

  1. updated linters:
    • execinquery: bump from v0.6.0 to v0.6.1
  2. documentation:
    • add missing linters

v1.46.0

Compare Source

  1. new linters:
  2. updated linters:
    • bidichk: from 0.2.2 to 0.2.3
    • deadcode: bump to HEAD
    • errchkjson: from 0.2.3 to 0.3.0
    • errname: from 0.1.5 to 0.1.6
    • go-critic: from 0.6.2 to 0.6.3
    • gocyclo: from 0.4.0 to 0.5.1
    • gofumpt from 0.3.0 to 0.3.1
    • gomoddirectives: from 0.2.2 to 0.2.3
    • gosec: from 2.10.0 to 2.11.0
    • honnef.co/go/tools: from 0.2.2to 0.3.1 (go1.18 support)
    • nilnil: from 0.1.0 to 0.1.1
    • nonamedreturns: bump from 1.0.0 to 1.0.1
    • predeclared: from 0.2.1 to 0.2.2
    • promlinter: bump to v0.2.0
    • revive: from 1.1.4 to 1.2.1
    • tenv: from 1.4.7 to 1.5.0
    • thelper: from 0.5.1 to 0.6.2
    • unused: fix false-positive
    • varnamelen: bump to v0.8.0
    • wrapcheck: from 2.5.0 to 2.6.1
    • exhaustivestruct: This linter is deprecated use exhaustruct instead.
  3. documentation:
    • Update "Shell Completion" instruction on Linux
    • Update FAQ page
  4. misc:
    • log: enable override coloring based on CLICOLOR and CLICOLOR_FORCE

v1.45.2

Compare Source

  1. misc:
    • fix: help command

v1.45.1

Compare Source

  1. updated linters:
    • interfacer: inactivate with go1.18
    • govet: inactivate unsupported analyzers (go1.18)
    • depguard: reduce requirements
    • structcheck: inactivate with go1.18
    • varnamelen: bump from v0.6.0 to v0.6.1
  2. misc:
    • Automatic Go version detection 🎉 (go1.18)
    • docker: update base images (go1.18)

v1.45.0

Compare Source

  1. updated linters:
    • cobra: from 1.3.0 to 1.4.0
    • containedctx: from 1.0.1 to 1.0.2
    • errcheck: add an option to remove default exclusions
    • gci: from 0.3.1 to 0.3.2
    • go-header: from 0.4.2 to 0.4.3
    • gofumpt: add module-path setting
    • gofumpt: from 0.2.1 to 0.3.0
    • gopsutil: from 3.22.1 to 3.22.2
    • gosec: from 2.9.6 to 2.10.0
    • makezero: from 1.1.0 to 1.1.1
    • revive: fix default values
    • wrapcheck: from 2.4.0 to 2.5.0
  2. documentation:
    • docs: add "back to the top" button
    • docs: add forbidigo example that uses comments
    • docs: improve linters page
  3. misc:
    • go1.18 support 🎉
    • Add an option to manage the targeted version of Go
    • Default to YAML when config file has no extension

v1.44.2

Compare Source

  1. updated linters:
    • gci: bump to HEAD
    • gci: restore defaults for sections
    • whitespace: from 0.0.4 to 0.0.5
  2. documentation:
    • add link to configuration in the linters list

v1.44.1

Compare Source

  1. updated linters:
    • bidichk: from 0.2.1 to 0.2.2
    • errchkjson: from 0.2.1 to 0.2.3
    • thelper: from 0.5.0 to 0.5.1
    • tagliatelle: from 0.3.0 to 0.3.1
    • gopsutil: from 3.21.12 to 3.22.1
    • gci: from 0.2.9 to 0.3.0
    • revive: from v1.1.3 to v1.1.4
    • varnamelen: from v0.5.0 to v0.6.0
  2. documentation:
    • linters: improve configuration pages
    • decorder: fix disable-init-func-first-check: false elaboration
  3. misc:
    • fix debug output

v1.44.0

Compare Source

  1. new linters:
  2. updated linters:
    • asciicheck: bump to v0.1.1
    • bidichk: from 0.1.1 to 0.2.1
    • bodyclose: bump to HEAD
    • decorder: from 0.2.0 to 0.2.1
    • depguard: from 1.0.1 to 1.1.0
    • errchkjson: from 0.2.0 to 0.2.1
    • errorlint: bump to HEAD
    • exhaustive: drop deprecated/unused settings
    • exhaustive: from v0.2.3 to 0.7.11
    • forbidigo: from 1.2.0 to 1.3.0
    • forcetypeassert: bump to v0.1.0
    • gocritic: from 0.6.1 to 0.6.2
    • gocritic: support autofix
    • gocyclo: from 0.3.1 to 0.4.0
    • godot: add period option
    • gofumpt: from 0.1.1 to 0.2.1
    • gomnd: from 2.4.0 to 2.5.0
    • gomnd: new configuration
    • gosec: from 2.9.1 to 2.9.6
    • ifshort: from 1.0.3 to 1.0.4
    • ineffassign: bump to HEAD
    • makezero: to v1.1.0
    • promlinter: from v0.1.0 to HEAD
    • revive: fix enableAllRules
    • revive: from 1.1.2 to 1.1.3
    • staticcheck: from 0.2.1 to 0.2.2
    • tagliatelle: from 0.2.0 to 0.3.0
    • thelper: from 0.4.0 to 0.5.0
    • unparam: bump to HEAD
    • varnamelen: bump to v0.5.0
    • wrapcheck: update configuration to include ignoreSignRegexps
  3. documentation:
    • linters: improve pages about configuration
    • improve page about false-positive
    • nolintlint: fix wrong default value in comment
    • revive: add a more detailed configuration
  4. misc:
    • outputs: Add support for multiple outputs
    • outputs: Print error text in <failure> tag content for more readable JUnit output
    • outputs: ensure that the Issues key in JSON format is a list
    • Return error if any linter fails to run
    • cli: Show deprecated mark in the CLI linters help

v1.43.0

Compare Source

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)


Configuration

📅 Schedule: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This MR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this MR, click this checkbox.

This MR has been generated by Renovate Bot.

Edited by Ghost User

Merge request reports

Loading