Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cgo: fix many linters ignoring Cgo files #3025

Merged
merged 3 commits into from
Jul 30, 2022
Merged

Conversation

ansiwen
Copy link
Contributor

@ansiwen ansiwen commented Jul 30, 2022

This change fixes a bug that caused that many linters ignored all files that are using Cgo. It was introduced by PR #1065, which assumed that all files referenced by //line directives are non-Go files, which is not true. In the case of Cgo they point to the original Go files which are used by Cgo as templates to generate other Go files.

The fix replaces all calls of Pass.Fset.PositionFor with a function getFileNames() that first calls Pass.Fset.PositionFor with adjustment, and only if it results in a non-Go file it calls Pass.Fset.PositionFor again without adjustment.

Fixes #1392
Fixes #2449
Fixes #2612
Fixes #2788
Fixes #2910

Signed-off-by: Sven Anderson [email protected]

@boring-cyborg
Copy link

boring-cyborg bot commented Jul 30, 2022

Hey, thank you for opening your first Pull Request !

@CLAassistant
Copy link

CLAassistant commented Jul 30, 2022

CLA assistant check
All committers have signed the CLA.

@ldez ldez self-requested a review July 30, 2022 12:49
@ldez ldez self-assigned this Jul 30, 2022
@ldez ldez added bug Something isn't working area: cgo Related to CGO labels Jul 30, 2022
@ansiwen ansiwen changed the title Cgo fix Fix many linters ignoring Cgo files Jul 30, 2022
This change fixes a bug caused that many linters ignored all files that are
using Cgo. It was introduced by PR golangci#1065, which assumed that all files
referenced by //line directives are non-Go files, which is not true. In the case
of Cgo they point to the original Go files which are used by Cgo as templates to
generate other Go files.

The fix replaces all calls of Pass.Fset.PositionFor with a function
getFileNames() that first calls Pass.Fset.PositionFor with adjustment, and only
if it results in a non-Go file it calls Pass.Fset.PositionFor again without
adjustment.

Fixes: golangci#2910

Signed-off-by: Sven Anderson <[email protected]>
@ldez ldez changed the title Fix many linters ignoring Cgo files gco: fix many linters ignoring Cgo files Jul 30, 2022
@ldez ldez changed the title gco: fix many linters ignoring Cgo files cgo: fix many linters ignoring Cgo files Jul 30, 2022
It seems like the gci linter doesn't know about the special import rules for
Cgo.
@kamilsk kamilsk self-requested a review July 30, 2022 13:57
Copy link
Contributor

@kamilsk kamilsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

kamilsk
kamilsk previously approved these changes Jul 30, 2022
@ldez

This comment was marked as off-topic.

@kamilsk

This comment was marked as off-topic.

@kamilsk kamilsk requested review from kamilsk and removed request for kamilsk July 30, 2022 16:38
@ldez

This comment was marked as off-topic.

Copy link
Member

@ldez ldez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First, I would say thanks to @kolyshkin for the analysis, and @ansiwen for taking the time to use this analysis to create this PR.

I tested with the repositories or snippets listed in the following issues: #1392, #2449, #2612, #2788, #2910.
I also tested with some other repositories that use CGO.
I also tested with code (using CGO or not) that contains issues (not related to CGO) and the reports are still right.

The PR fixes 100% of the current issues we have with CGO.

Thank you a lot @ansiwen ❤️

@ansiwen
Copy link
Contributor Author

ansiwen commented Jul 31, 2022

Right, I forgot to mention @kolyshkin, without his analysis I couldn't have done this fix, thanks a lot! Also thank you @ldez and @kamilsk for your quick reviews. The more reviews the higher the chance to find issues. 🙂

That's open source collaboration! 🥰

@ansiwen
Copy link
Contributor Author

ansiwen commented Jul 31, 2022

I just noticed that golangci-lint-action does not support commit hashs for the golangci-lint version. Is there any bug release planned?

@ldez
Copy link
Member

ldez commented Jul 31, 2022

The new bug fix release will be done tomorrow at 11:00 am UTC (Monday)

dtzitzon pushed a commit to anduril/golangci-lint that referenced this pull request Aug 17, 2022
* fix: help command (golangci#2681)

* docs: Update documentation and assets (golangci#2682)

Co-authored-by: Fernandez Ludovic <[email protected]>

* bump varnamelen to v0.6.2 (golangci#2684)

* build(deps): bump minimist from 1.2.5 to 1.2.6 in /tools (golangci#2686)

* build(deps): bump minimist from 1.2.5 to 1.2.6 in /.github/peril (golangci#2687)

* build(deps): bump minimist from 1.2.5 to 1.2.6 in /docs (golangci#2688)

* build(deps): bump minimist from 1.2.5 to 1.2.6 in /.github/contributors (golangci#2685)

* build(deps): bump mvdan.cc/gofumpt from 0.3.0 to 0.3.1 (golangci#2694)

Bumps [mvdan.cc/gofumpt](https://github.com/mvdan/gofumpt) from 0.3.0 to 0.3.1.
- [Release notes](https://github.com/mvdan/gofumpt/releases)
- [Changelog](https://github.com/mvdan/gofumpt/blob/master/CHANGELOG.md)
- [Commits](mvdan/gofumpt@v0.3.0...v0.3.1)

---
updated-dependencies:
- dependency-name: mvdan.cc/gofumpt
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump github.com/quasilyte/go-ruleguard/dsl (golangci#2691)

Bumps [github.com/quasilyte/go-ruleguard/dsl](https://github.com/quasilyte/go-ruleguard) from 0.3.17 to 0.3.19.
- [Release notes](https://github.com/quasilyte/go-ruleguard/releases)
- [Commits](quasilyte/go-ruleguard@dsl/v0.3.17...dsl/v0.3.19)

---
updated-dependencies:
- dependency-name: github.com/quasilyte/go-ruleguard/dsl
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump github.com/breml/errchkjson from 0.2.3 to 0.3.0 (golangci#2695)

Co-authored-by: Fernandez Ludovic <[email protected]>

* build(deps): bump github.com/tomarrell/wrapcheck/v2 from 2.5.0 to 2.6.0 (golangci#2696)

* build(deps): bump github.com/tomarrell/wrapcheck/v2 from 2.5.0 to 2.6.0

Bumps [github.com/tomarrell/wrapcheck/v2](https://github.com/tomarrell/wrapcheck) from 2.5.0 to 2.6.0.
- [Release notes](https://github.com/tomarrell/wrapcheck/releases)
- [Commits](tomarrell/wrapcheck@v2.5.0...v2.6.0)

---
updated-dependencies:
- dependency-name: github.com/tomarrell/wrapcheck/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* add new option

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fernandez Ludovic <[email protected]>

* build(deps): bump github.com/breml/bidichk from 0.2.2 to 0.2.3 (golangci#2698)

* build(deps): bump peter-evans/create-pull-request from 3 to 4 (golangci#2699)

Bumps [peter-evans/create-pull-request](https://github.com/peter-evans/create-pull-request) from 3 to 4.
- [Release notes](https://github.com/peter-evans/create-pull-request/releases)
- [Commits](peter-evans/create-pull-request@v3...v4)

---
updated-dependencies:
- dependency-name: peter-evans/create-pull-request
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add execinquery linter (golangci#2677)

* bump varnamelen to v0.8.0 (golangci#2703)

* build(deps): bump github.com/fzipp/gocyclo from 0.4.0 to 0.5.0 (golangci#2693)

Bumps [github.com/fzipp/gocyclo](https://github.com/fzipp/gocyclo) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/fzipp/gocyclo/releases)
- [Changelog](https://github.com/fzipp/gocyclo/blob/main/CHANGELOG.md)
- [Commits](fzipp/gocyclo@v0.4.0...v0.5.0)

---
updated-dependencies:
- dependency-name: github.com/fzipp/gocyclo
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* bump deadcode to HEAD (golangci#2704)

* build(deps): bump ansi-regex from 3.0.0 to 3.0.1 in /.github/peril (golangci#2700)

* build(deps): bump github.com/securego/gosec/v2 from 2.10.0 to 2.11.0 (golangci#2697)

Co-authored-by: Fernandez Ludovic <[email protected]>

* docs: update FAQ page. (golangci#2705)

* build(deps): bump gatsby-remark-images from 6.7.0 to 6.11.1 in /docs (golangci#2713)

* build(deps): bump gatsby-transformer-sharp from 4.7.0 to 4.11.0 in /docs (golangci#2714)

* build(deps): bump gatsby-plugin-catch-links in /docs (golangci#2715)

* build(deps): bump gatsby-plugin-offline from 5.6.0 to 5.11.1 in /docs (golangci#2716)

* build(deps): bump @emotion/styled from 11.6.0 to 11.8.1 in /docs (golangci#2717)

* build(deps): bump gatsby-source-filesystem from 4.7.0 to 4.11.1 in /docs (golangci#2718)

* build(deps): bump gatsby-remark-copy-linked-files in /docs (golangci#2720)

* build(deps): bump url-join from 4.0.1 to 5.0.0 in /docs (golangci#2721)

* build(deps): bump gatsby from 4.9.0 to 4.11.1 in /docs (golangci#2723)

Bumps [gatsby](https://github.com/gatsbyjs/gatsby) from 4.9.0 to 4.11.1.
- [Release notes](https://github.com/gatsbyjs/gatsby/releases)
- [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/gatsbyjs/gatsby/compare/[email protected]@4.11.1)

---
updated-dependencies:
- dependency-name: gatsby
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump gatsby-remark-autolink-headers in /docs (golangci#2722)

Bumps [gatsby-remark-autolink-headers](https://github.com/gatsbyjs/gatsby/tree/HEAD/packages/gatsby-remark-autolink-headers) from 5.6.0 to 5.11.1.
- [Release notes](https://github.com/gatsbyjs/gatsby/releases)
- [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-remark-autolink-headers/CHANGELOG.md)
- [Commits](https://github.com/gatsbyjs/gatsby/commits/[email protected]/packages/gatsby-remark-autolink-headers)

---
updated-dependencies:
- dependency-name: gatsby-remark-autolink-headers
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump gatsby-transformer-yaml from 4.7.0 to 4.11.0 in /docs (golangci#2719)

Bumps [gatsby-transformer-yaml](https://github.com/gatsbyjs/gatsby/tree/HEAD/packages/gatsby-transformer-yaml) from 4.7.0 to 4.11.0.
- [Release notes](https://github.com/gatsbyjs/gatsby/releases)
- [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-transformer-yaml/CHANGELOG.md)
- [Commits](https://github.com/gatsbyjs/gatsby/commits/[email protected]/packages/gatsby-transformer-yaml)

---
updated-dependencies:
- dependency-name: gatsby-transformer-yaml
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump gatsby-plugin-emotion from 7.9.0 to 7.11.0 in /docs (golangci#2725)

Bumps [gatsby-plugin-emotion](https://github.com/gatsbyjs/gatsby/tree/HEAD/packages/gatsby-plugin-emotion) from 7.9.0 to 7.11.0.
- [Release notes](https://github.com/gatsbyjs/gatsby/releases)
- [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-plugin-emotion/CHANGELOG.md)
- [Commits](https://github.com/gatsbyjs/gatsby/commits/[email protected]/packages/gatsby-plugin-emotion)

---
updated-dependencies:
- dependency-name: gatsby-plugin-emotion
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump gatsby-plugin-mdx from 3.9.0 to 3.11.1 in /docs (golangci#2726)

* build(deps): bump gatsby-plugin-react-helmet in /docs (golangci#2728)

* build(deps): bump gatsby-plugin-canonical-urls in /docs (golangci#2729)

* build(deps): bump gatsby-remark-responsive-iframe in /docs (golangci#2730)

* build(deps): bump gatsby-plugin-sharp from 4.9.0 to 4.11.1 in /docs (golangci#2724)

* build(deps): bump postcss from 8.4.6 to 8.4.12 in /docs (golangci#2731)

* build(deps): bump gatsby-plugin-manifest from 4.9.0 to 4.11.1 in /docs (golangci#2732)

Bumps [gatsby-plugin-manifest](https://github.com/gatsbyjs/gatsby/tree/HEAD/packages/gatsby-plugin-manifest) from 4.9.0 to 4.11.1.
- [Release notes](https://github.com/gatsbyjs/gatsby/releases)
- [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-plugin-manifest/CHANGELOG.md)
- [Commits](https://github.com/gatsbyjs/gatsby/commits/[email protected]/packages/gatsby-plugin-manifest)

---
updated-dependencies:
- dependency-name: gatsby-plugin-manifest
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump gatsby-transformer-remark in /docs (golangci#2733)

* build(deps): bump puppeteer from 13.1.3 to 13.5.2 in /docs (golangci#2734)

* build(deps): bump gatsby-plugin-sitemap from 5.9.0 to 5.11.1 in /docs (golangci#2735)

* build(deps): bump @emotion/react from 11.8.1 to 11.8.2 in /docs (golangci#2737)

Bumps [@emotion/react](https://github.com/emotion-js/emotion) from 11.8.1 to 11.8.2.
- [Release notes](https://github.com/emotion-js/emotion/releases)
- [Changelog](https://github.com/emotion-js/emotion/blob/main/CHANGELOG.md)
- [Commits](https://github.com/emotion-js/emotion/compare/@emotion/[email protected]...@emotion/[email protected])

---
updated-dependencies:
- dependency-name: "@emotion/react"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump gatsby-plugin-google-analytics in /docs (golangci#2736)

Bumps [gatsby-plugin-google-analytics](https://github.com/gatsbyjs/gatsby/tree/HEAD/packages/gatsby-plugin-google-analytics) from 4.6.0 to 4.11.0.
- [Release notes](https://github.com/gatsbyjs/gatsby/releases)
- [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-plugin-google-analytics/CHANGELOG.md)
- [Commits](https://github.com/gatsbyjs/gatsby/commits/[email protected]/packages/gatsby-plugin-google-analytics)

---
updated-dependencies:
- dependency-name: gatsby-plugin-google-analytics
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump honnef.co/go/tools from 0.2.2 to 0.3.0 (golangci#2738)

* dev: remove some TODO (golangci#2743)

* chore: use go1.18 to test the previous version of golangci-lint
* chore: update gomnd configuration

* build(deps): bump github.com/sivchari/tenv from 1.4.7 to 1.5.0 (golangci#2739)

* build(deps): bump github.com/mgechev/revive from 1.1.4 to 1.2.0 (golangci#2741)

* build(deps): bump github.com/shirou/gopsutil/v3 from 3.22.2 to 3.22.3 (golangci#2740)

* staticcheck: re-enable for go1.18 (golangci#2746)

Co-authored-by: Fernandez Ludovic <[email protected]>

* feat(log): enable override coloring based on CLICOLOR and CLICOLOR_FORCE (golangci#2657)

* dev: support build tags about go version in linter tests (golangci#2744)

* build(deps): bump react and react-dom in /docs (golangci#2727)

* bump github.com/kulti/thelper from 0.5.1 to 0.6.2 (golangci#2742)

* build(deps): bump moment from 2.29.1 to 2.29.2 in /docs (golangci#2754)

Bumps [moment](https://github.com/moment/moment) from 2.29.1 to 2.29.2.
- [Release notes](https://github.com/moment/moment/releases)
- [Changelog](https://github.com/moment/moment/blob/develop/CHANGELOG.md)
- [Commits](moment/moment@2.29.1...2.29.2)

---
updated-dependencies:
- dependency-name: moment
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump github.com/Antonboom/errname from 0.1.5 to 0.1.6 (golangci#2758)

Bumps [github.com/Antonboom/errname](https://github.com/Antonboom/errname) from 0.1.5 to 0.1.6.
- [Release notes](https://github.com/Antonboom/errname/releases)
- [Commits](Antonboom/errname@v0.1.5...v0.1.6)

---
updated-dependencies:
- dependency-name: github.com/Antonboom/errname
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump github.com/Antonboom/nilnil from 0.1.0 to 0.1.1 (golangci#2757)

Bumps [github.com/Antonboom/nilnil](https://github.com/Antonboom/nilnil) from 0.1.0 to 0.1.1.
- [Release notes](https://github.com/Antonboom/nilnil/releases)
- [Commits](Antonboom/nilnil@v0.1.0...v0.1.1)

---
updated-dependencies:
- dependency-name: github.com/Antonboom/nilnil
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump github.com/fzipp/gocyclo from 0.5.0 to 0.5.1 (golangci#2756)

Bumps [github.com/fzipp/gocyclo](https://github.com/fzipp/gocyclo) from 0.5.0 to 0.5.1.
- [Release notes](https://github.com/fzipp/gocyclo/releases)
- [Changelog](https://github.com/fzipp/gocyclo/blob/main/CHANGELOG.md)
- [Commits](fzipp/gocyclo@v0.5.0...v0.5.1)

---
updated-dependencies:
- dependency-name: github.com/fzipp/gocyclo
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump github.com/BurntSushi/toml from 1.0.0 to 1.1.0 (golangci#2755)

Bumps [github.com/BurntSushi/toml](https://github.com/BurntSushi/toml) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/BurntSushi/toml/releases)
- [Commits](BurntSushi/toml@v1.0.0...v1.1.0)

---
updated-dependencies:
- dependency-name: github.com/BurntSushi/toml
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump github.com/nishanths/predeclared from 0.2.1 to 0.2.2 (golangci#2761)

Bumps [github.com/nishanths/predeclared](https://github.com/nishanths/predeclared) from 0.2.1 to 0.2.2.
- [Release notes](https://github.com/nishanths/predeclared/releases)
- [Commits](nishanths/predeclared@v0.2.1...v0.2.2)

---
updated-dependencies:
- dependency-name: github.com/nishanths/predeclared
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump github.com/mgechev/revive from 1.2.0 to 1.2.1 (golangci#2760)

Bumps [github.com/mgechev/revive](https://github.com/mgechev/revive) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/mgechev/revive/releases)
- [Changelog](https://github.com/mgechev/revive/blob/master/.goreleaser.yml)
- [Commits](mgechev/revive@v1.2.0...v1.2.1)

---
updated-dependencies:
- dependency-name: github.com/mgechev/revive
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump github.com/go-critic/go-critic from 0.6.2 to 0.6.3 (golangci#2759)

Co-authored-by: Fernandez Ludovic <[email protected]>

* build(deps): bump moment from 2.25.3 to 2.29.2 in /.github/contributors (golangci#2753)

* build(deps): bump actions/setup-go from 2 to 3 (golangci#2763)

Bumps [actions/setup-go](https://github.com/actions/setup-go) from 2 to 3.
- [Release notes](https://github.com/actions/setup-go/releases)
- [Commits](actions/setup-go@v2...v3)

---
updated-dependencies:
- dependency-name: actions/setup-go
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump github.com/spf13/viper from 1.10.1 to 1.11.0 (golangci#2770)

Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.10.1 to 1.11.0.
- [Release notes](https://github.com/spf13/viper/releases)
- [Commits](spf13/viper@v1.10.1...v1.11.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/viper
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add nonamedreturns linter (golangci#2701)

* unused: fix false-positive (golangci#2772)

* Add nosprintfhostport linter (golangci#2749)

* nonamedreturns: bump from 1.0.0 to 1.0.1 (golangci#2776)

* build(deps): bump honnef.co/go/tools from 0.3.0 to 0.3.1 (golangci#2780)

* build(deps): bump github.com/stbenjam/no-sprintf-host-port (golangci#2781)

Bumps [github.com/stbenjam/no-sprintf-host-port](https://github.com/stbenjam/no-sprintf-host-port) from 0.1.0 to 0.1.1.
- [Release notes](https://github.com/stbenjam/no-sprintf-host-port/releases)
- [Commits](stbenjam/no-sprintf-host-port@v0.1.0...v0.1.1)

---
updated-dependencies:
- dependency-name: github.com/stbenjam/no-sprintf-host-port
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump github/codeql-action from 1 to 2 (golangci#2782)

Bumps [github/codeql-action](https://github.com/github/codeql-action) from 1 to 2.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](github/codeql-action@v1...v2)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat: add `exhaustruct` linter (golangci#2667)

Co-authored-by: Fernandez Ludovic <[email protected]>

* promlinter: bump to v0.2.0 (golangci#2789)

* build(deps): bump github.com/tomarrell/wrapcheck/v2 from 2.6.0 to 2.6.1 (golangci#2791)

* build(deps): bump github.com/shirou/gopsutil/v3 from 3.22.3 to 3.22.4 (golangci#2792)

* build(deps): bump github.com/ldez/gomoddirectives from 0.2.2 to 0.2.3 (golangci#2793)

* build(deps): bump puppeteer from 13.5.2 to 13.7.0 in /docs (golangci#2794)

* build(deps): bump gatsby-plugin-sharp from 4.11.1 to 4.13.0 in /docs (golangci#2795)

* build(deps): bump gatsby-remark-copy-linked-files in /docs (golangci#2797)

Bumps [gatsby-remark-copy-linked-files](https://github.com/gatsbyjs/gatsby/tree/HEAD/packages/gatsby-remark-copy-linked-files) from 5.11.0 to 5.13.0.
- [Release notes](https://github.com/gatsbyjs/gatsby/releases)
- [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-remark-copy-linked-files/CHANGELOG.md)
- [Commits](https://github.com/gatsbyjs/gatsby/commits/[email protected]/packages/gatsby-remark-copy-linked-files)

---
updated-dependencies:
- dependency-name: gatsby-remark-copy-linked-files
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump gatsby-source-filesystem in /docs (golangci#2800)

Bumps [gatsby-source-filesystem](https://github.com/gatsbyjs/gatsby/tree/HEAD/packages/gatsby-source-filesystem) from 4.11.1 to 4.13.0.
- [Release notes](https://github.com/gatsbyjs/gatsby/releases)
- [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-source-filesystem/CHANGELOG.md)
- [Commits](https://github.com/gatsbyjs/gatsby/commits/[email protected]/packages/gatsby-source-filesystem)

---
updated-dependencies:
- dependency-name: gatsby-source-filesystem
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump gatsby-remark-autolink-headers in /docs (golangci#2801)

* build(deps): bump gatsby from 4.11.1 to 4.13.1 in /docs (golangci#2796)

* build(deps): bump gatsby-transformer-sharp in /docs (golangci#2798)

* build(deps): bump gatsby-plugin-sitemap from 5.11.1 to 5.13.0 in /docs (golangci#2802)

* build(deps): bump gatsby-remark-responsive-iframe in /docs (golangci#2803)

* build(deps): bump gatsby-transformer-remark in /docs (golangci#2804)

* build(deps): bump gatsby-plugin-google-analytics in /docs (golangci#2805)

* build(deps): bump gatsby-plugin-netlify from 4.1.0 to 4.3.1 in /docs (golangci#2806)

* build(deps): bump @emotion/react from 11.8.2 to 11.9.0 in /docs (golangci#2807)

* build(deps): bump react-live from 3.0.0 to 3.1.0 in /docs (golangci#2808)

* build(deps): bump gatsby-plugin-react-helmet in /docs (golangci#2811)

* build(deps): bump gatsby-plugin-offline from 5.11.1 to 5.13.0 in /docs (golangci#2809)

Bumps [gatsby-plugin-offline](https://github.com/gatsbyjs/gatsby/tree/HEAD/packages/gatsby-plugin-offline) from 5.11.1 to 5.13.0.
- [Release notes](https://github.com/gatsbyjs/gatsby/releases)
- [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby-plugin-offline/CHANGELOG.md)
- [Commits](https://github.com/gatsbyjs/gatsby/commits/[email protected]/packages/gatsby-plugin-offline)

---
updated-dependencies:
- dependency-name: gatsby-plugin-offline
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump gatsby-transformer-yaml from 4.11.0 to 4.13.0 in /docs (golangci#2812)

* build(deps): bump gatsby-remark-images from 6.11.1 to 6.13.0 in /docs (golangci#2813)

* build(deps): bump gatsby-plugin-manifest from 4.11.1 to 4.13.0 in /docs (golangci#2814)

* build(deps): bump polished from 4.1.4 to 4.2.2 in /docs (golangci#2810)

* build(deps): bump gatsby-plugin-mdx from 3.11.1 to 3.13.0 in /docs (golangci#2815)

* build(deps): bump gatsby-plugin-canonical-urls in /docs (golangci#2816)

* build(deps): bump gatsby-plugin-emotion from 7.11.0 to 7.13.0 in /docs (golangci#2817)

* build(deps): bump react-dom from 18.0.0 to 18.1.0 in /docs (golangci#2821)

* build(deps): bump postcss from 8.4.12 to 8.4.13 in /docs (golangci#2819)

* build(deps): bump gatsby-plugin-catch-links in /docs (golangci#2818)

* build(deps): bump react from 18.0.0 to 18.1.0 in /docs (golangci#2822)

* build(deps): bump gatsby-plugin-robots-txt from 1.7.0 to 1.7.1 in /docs (golangci#2820)

* docs: update "Shell Completion" instruction on Linux (golangci#2829)

* docs: Update documentation and assets (golangci#2833)

Co-authored-by: Fernandez Ludovic <[email protected]>

* build(deps): bump docker/setup-buildx-action from 1 to 2 (golangci#2836)

Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 1 to 2.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](docker/setup-buildx-action@v1...v2)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump docker/build-push-action from 2 to 3 (golangci#2838)

Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 2 to 3.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](docker/build-push-action@v2...v3)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump docker/setup-qemu-action from 1 to 2 (golangci#2837)

* docs: add missing linters (golangci#2841)

* fix: fix typo for errchkjson (golangci#2842)

* bump github.com/lufeee/execinquery from v1.0.0 to v1.2.0 (golangci#2845)

* docs: Update documentation and assets (golangci#2846)

Co-authored-by: Fernandez Ludovic <[email protected]>

* docs: add containedctx linter to the list of available linters (golangci#2850)

* bump github.com/lufeee/execinquery from v1.2.0 to v1.2.1 (golangci#2853)

* docs: rename .golangci.example.yml to .golangci.reference.yml (golangci#2857)

* bump github.com/polyfloyd/go-errorlint to v1.0.0 (golangci#2855)

* thelper: allow to disable one option (golangci#2854)

* build(deps): bump golangci/golangci-lint-action from 3.1.0 to 3.2.0 (golangci#2858)

Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](golangci/golangci-lint-action@v3.1.0...v3.2.0)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* docs: Update documentation and assets (golangci#2860)

Co-authored-by: Fernandez Ludovic <[email protected]>

* chore: spelling and grammar fixes (golangci#2865)

* docs: fix typo (golangci#2867)

* build(deps): bump github.com/hashicorp/go-version from 1.4.0 to 1.5.0 (golangci#2873)

* build(deps): bump github.com/kulti/thelper from 0.6.2 to 0.6.3 (golangci#2872)

* build(deps): bump github.com/quasilyte/go-ruleguard/dsl from 0.3.19 to 0.3.21 (golangci#2874)

* build(deps): bump github.com/kisielk/errcheck from 1.6.0 to 1.6.1 (golangci#2871)

Bumps [github.com/kisielk/errcheck](https://github.com/kisielk/errcheck) from 1.6.0 to 1.6.1.
- [Release notes](https://github.com/kisielk/errcheck/releases)
- [Commits](kisielk/errcheck@v1.6.0...v1.6.1)

---
updated-dependencies:
- dependency-name: github.com/kisielk/errcheck
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* bump golang.org/x/tools to HEAD (golangci#2875)

* bump golang.org/x/tools to HEAD
* fix: adapt linters to the new validation system.

* build(deps): bump honnef.co/go/tools from 0.3.1 to 0.3.2 (golangci#2870)

* build(deps): bump goreleaser/goreleaser-action from 2 to 3 (golangci#2876)

* fix: codeQL scanning (golangci#2882)

* build(deps): bump github.com/Antonboom/errname from 0.1.6 to 0.1.7 (golangci#2888)

* build(deps): bump github.com/spf13/viper from 1.11.0 to 1.12.0 (golangci#2889)

Co-authored-by: Fernandez Ludovic <[email protected]>

* docs(linters): add defaults (golangci#2891)

* docs(govet): add settings for `shadow` and `unusedresult` (golangci#2890)

docs(govet): add missing settings for `shadow` and `unusedresult`

* docs(thelper): add `fuzz` config and description (golangci#2887)

docs(thelper): add missing `fuzz` config and description

* docs(gosec): add configs for all existing rules (golangci#2886)

docs: gosec: add configs for all existing rules

* docs(depguard): add `ignore-file-rules` (golangci#2884)

* docs: linters-settings: depguard: add missing `ignore-file-rules`

* Add an example without !

* docs(gocritic): add `enable` and `disable` ruleguard settings (golangci#2885)

* docs: ruleguard: add missing `enable` and `disable` settings

* Don't use go-critic groups and tags

* gci: fix issues and re-enable autofix (golangci#2892)

Co-authored-by: Fernandez Ludovic <[email protected]>

* build(deps): bump sharp from 0.30.3 to 0.30.6 in /docs (golangci#2900)

Bumps [sharp](https://github.com/lovell/sharp) from 0.30.3 to 0.30.6.
- [Release notes](https://github.com/lovell/sharp/releases)
- [Changelog](https://github.com/lovell/sharp/blob/main/docs/changelog.md)
- [Commits](lovell/sharp@v0.30.3...v0.30.6)

---
updated-dependencies:
- dependency-name: sharp
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump gatsby-remark-autolink-headers from 5.13.0 to 5.15.1 in /docs (golangci#2897)

build(deps): bump gatsby-remark-autolink-headers in /docs

Bumps [gatsby-remark-autolink-headers](https://github.com/gatsbyjs/gatsby/tree/HEAD/packages/gatsby-remark-autolink-headers) from 5.13.0 to 5.15.1.
- [Release notes](https://github.com/gatsbyjs/gatsby/releases)
- [Changelog](https://github.com/gatsbyjs/gatsby/blob/[email protected]/packages/gatsby-remark-autolink-headers/CHANGELOG.md)
- [Commits](https://github.com/gatsbyjs/gatsby/commits/[email protected]/packages/gatsby-remark-autolink-headers)

---
updated-dependencies:
- dependency-name: gatsby-remark-autolink-headers
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump prism-react-renderer from 1.3.1 to 1.3.3 in /docs (golangci#2896)

Bumps [prism-react-renderer](https://github.com/FormidableLabs/prism-react-renderer) from 1.3.1 to 1.3.3.
- [Release notes](https://github.com/FormidableLabs/prism-react-renderer/releases)
- [Commits](FormidableLabs/prism-react-renderer@v1.3.1...v1.3.3)

---
updated-dependencies:
- dependency-name: prism-react-renderer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump gatsby from 4.13.1 to 4.15.2 in /docs (golangci#2895)

Bumps [gatsby](https://github.com/gatsbyjs/gatsby) from 4.13.1 to 4.15.2.
- [Release notes](https://github.com/gatsbyjs/gatsby/releases)
- [Changelog](https://github.com/gatsbyjs/gatsby/blob/master/CHANGELOG.md)
- [Commits](https://github.com/gatsbyjs/gatsby/compare/[email protected]@4.15.2)

---
updated-dependencies:
- dependency-name: gatsby
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump gatsby-remark-images from 6.13.0 to 6.15.1 in /docs (golangci#2898)

* build(deps): bump gatsby-plugin-manifest from 4.13.0 to 4.15.1 in /docs (golangci#2899)

Bumps [gatsby-plugin-manifest](https://github.com/gatsbyjs/gatsby/tree/HEAD/packages/gatsby-plugin-manifest) from 4.13.0 to 4.15.1.
- [Release notes](https://github.com/gatsbyjs/gatsby/releases)
- [Changelog](https://github.com/gatsbyjs/gatsby/blob/[email protected]/packages/gatsby-plugin-manifest/CHANGELOG.md)
- [Commits](https://github.com/gatsbyjs/gatsby/commits/[email protected]/packages/gatsby-plugin-manifest)

---
updated-dependencies:
- dependency-name: gatsby-plugin-manifest
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump gatsby-plugin-mdx from 3.13.0 to 3.15.2 in /docs (golangci#2904)

Co-authored-by: Fernandez Ludovic <[email protected]>

* dev: preallocate some slices and maps (golangci#2902)

* build(deps): bump devcert from 1.2.0 to 1.2.1 in /docs (golangci#2905)

* build(deps): bump github.com/nishanths/exhaustive from 0.7.11 to 0.8.1 (golangci#2906)

Bumps [github.com/nishanths/exhaustive](https://github.com/nishanths/exhaustive) from 0.7.11 to 0.8.1.
- [Release notes](https://github.com/nishanths/exhaustive/releases)
- [Commits](nishanths/exhaustive@v0.7.11...v0.8.1)

---
updated-dependencies:
- dependency-name: github.com/nishanths/exhaustive
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump github.com/kunwardeep/paralleltest from 1.0.3 to 1.0.4 (golangci#2907)

* build(deps): bump github.com/kunwardeep/paralleltest from 1.0.3 to 1.0.4

Bumps [github.com/kunwardeep/paralleltest](https://github.com/kunwardeep/paralleltest) from 1.0.3 to 1.0.4.
- [Release notes](https://github.com/kunwardeep/paralleltest/releases)
- [Commits](kunwardeep/paralleltest@v1.0.3...v1.0.4)

---
updated-dependencies:
- dependency-name: github.com/kunwardeep/paralleltest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* fix: linter

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fernandez Ludovic <[email protected]>

* build(deps): bump github.com/shirou/gopsutil/v3 from 3.22.4 to 3.22.5 (golangci#2908)

Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.22.4 to 3.22.5.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](shirou/gopsutil@v3.22.4...v3.22.5)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* docs: have a clear explanation about the staticcheck integration. (golangci#2894)

docs: have a clear state about staticcheck

* docs: add thanks page (golangci#2893)

* docs(gomnd): fix typo (golangci#2909)

* gosec: allow `global` config (golangci#2880)

* build(deps): bump github.com/stretchr/testify from 1.7.1 to 1.7.2 (golangci#2917)

* build(deps): bump github.com/GaijinEntertainment/go-exhaustruct/v2 from 2.1.0 to 2.2.0 (golangci#2916)

* build(deps): bump github.com/kunwardeep/paralleltest from 1.0.4 to 1.0.6 (golangci#2918)

Co-authored-by: Fernandez Ludovic <[email protected]>

* config: spread go version on linter's configurations (golangci#2913)

* depguard: adjust phrasing (golangci#2921)

* build(deps): bump github.com/firefart/nonamedreturns from 1.0.1 to 1.0.2 (golangci#2929)

Co-authored-by: Fernandez Ludovic <[email protected]>

* build(deps): bump github.com/securego/gosec/v2 from 2.11.0 to 2.12.0 (golangci#2925)

Co-authored-by: Fernandez Ludovic <[email protected]>

* build(deps): bump github.com/sivchari/tenv from 1.5.0 to 1.6.0 (golangci#2927)

* build(deps): bump github.com/tomarrell/wrapcheck/v2 from 2.6.1 to 2.6.2 (golangci#2928)

Bumps [github.com/tomarrell/wrapcheck/v2](https://github.com/tomarrell/wrapcheck) from 2.6.1 to 2.6.2.
- [Release notes](https://github.com/tomarrell/wrapcheck/releases)
- [Commits](tomarrell/wrapcheck@v2.6.1...v2.6.2)

---
updated-dependencies:
- dependency-name: github.com/tomarrell/wrapcheck/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump github.com/fzipp/gocyclo from 0.5.1 to 0.6.0 (golangci#2926)

* chore: remove reviewers from dependabot configuration (golangci#2932)

* build(deps): bump github.com/spf13/cobra from 1.4.0 to 1.5.0 (golangci#2933)

* build(deps): bump github.com/stretchr/testify from 1.7.2 to 1.7.4 (golangci#2934)

* build(deps): bump react-live from 3.1.0 to 3.1.1 in /docs (golangci#2935)

* build(deps): bump gatsby-plugin-emotion from 7.13.0 to 7.17.0 in /docs (golangci#2936)

* build(deps): bump gatsby-plugin-react-helmet from 5.13.0 to 5.17.0 in /docs (golangci#2939)

* build(deps): bump gatsby-plugin-offline from 5.13.0 to 5.17.0 in /docs (golangci#2937)

* build(deps): bump gatsby-plugin-catch-links from 4.13.0 to 4.17.0 in /docs (golangci#2938)

* build(deps): bump github.com/firefart/nonamedreturns from 1.0.2 to 1.0.4 (golangci#2944)

Co-authored-by: Fernandez Ludovic <[email protected]>

* build(deps): bump github.com/stretchr/testify from 1.7.4 to 1.7.5 (golangci#2942)

* build(deps): bump gitlab.com/bosi/decorder from 0.2.1 to 0.2.2 (golangci#2943)

* build(deps): bump github.com/maratori/testpackage from 1.0.1 to 1.1.0 (golangci#2945)

Co-authored-by: Fernandez Ludovic <[email protected]>

* add nosnakecase lint (golangci#2828)

Co-authored-by: Fernandez Ludovic <[email protected]>

* build(deps): bump postcss from 8.4.13 to 8.4.14 in /docs (golangci#2949)

* build(deps): bump gatsby-remark-copy-linked-files from 5.13.0 to 5.17.0 in /docs (golangci#2950)

* build(deps): bump gatsby-plugin-sharp from 4.13.0 to 4.17.0 in /docs (golangci#2951)

* build(deps): bump gatsby-plugin-google-analytics from 4.13.0 to 4.17.0 in /docs (golangci#2952)

* build(deps): bump react from 18.1.0 to 18.2.0 in /docs (golangci#2953)

Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react) from 18.1.0 to 18.2.0.
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/v18.2.0/packages/react)

---
updated-dependencies:
- dependency-name: react
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump github.com/hashicorp/go-version from 1.5.0 to 1.6.0 (golangci#2958)

Bumps [github.com/hashicorp/go-version](https://github.com/hashicorp/go-version) from 1.5.0 to 1.6.0.
- [Release notes](https://github.com/hashicorp/go-version/releases)
- [Changelog](https://github.com/hashicorp/go-version/blob/main/CHANGELOG.md)
- [Commits](hashicorp/go-version@v1.5.0...v1.6.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/go-version
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump github.com/shirou/gopsutil/v3 from 3.22.5 to 3.22.6 (golangci#2959)

Bumps [github.com/shirou/gopsutil/v3](https://github.com/shirou/gopsutil) from 3.22.5 to 3.22.6.
- [Release notes](https://github.com/shirou/gopsutil/releases)
- [Commits](shirou/gopsutil@v3.22.5...v3.22.6)

---
updated-dependencies:
- dependency-name: github.com/shirou/gopsutil/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump github.com/stretchr/testify from 1.7.5 to 1.8.0 (golangci#2957)

Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.5 to 1.8.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](stretchr/testify@v1.7.5...v1.8.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump parse-url from 6.0.0 to 6.0.2 in /docs (golangci#2961)

Co-authored-by: Fernandez Ludovic <[email protected]>

* build(deps): bump github.com/uudashr/gocognit from 1.0.5 to 1.0.6 (golangci#2962)

* build(deps): bump github.com/daixiang0/gci from 0.3.4 to 0.4.0 (golangci#2965)

Co-authored-by: Fernandez Ludovic <[email protected]>

* build(deps): bump moment from 2.29.2 to 2.29.4 in /docs (golangci#2967)

* build(deps): bump moment from 2.29.2 to 2.29.4 in /.github/contributors (golangci#2966)

* dev: change err to nil (golangci#2971)

* build(deps): bump github.com/daixiang0/gci from 0.4.0 to 0.4.1 (golangci#2973)

Co-authored-by: Fernandez Ludovic <[email protected]>

* dev: remove kortschak from generated team (golangci#2974)

* staticcheck: fix generics (golangci#2976)

Co-authored-by: Fernandez Ludovic <[email protected]>

* dev: use directives instead of comments for tests (golangci#2978)

* build(deps): bump github.com/daixiang0/gci from 0.4.1 to 0.4.2 (golangci#2979)

Bumps [github.com/daixiang0/gci](https://github.com/daixiang0/gci) from 0.4.1 to 0.4.2.
- [Release notes](https://github.com/daixiang0/gci/releases)
- [Commits](daixiang0/gci@v0.4.1...v0.4.2)

---
updated-dependencies:
- dependency-name: github.com/daixiang0/gci
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Add linter `asasalint` to lint pass []any as any (golangci#2968)

* docs: Update documentation and assets (golangci#2981)

Co-authored-by: Fernandez Ludovic <[email protected]>

* gci: remove the use of stdin (golangci#2984)

Co-authored-by: Tom Moulard <[email protected]>

* build(deps): bump github.com/sivchari/tenv from 1.6.0 to 1.7.0 (golangci#2988)

* gci: fix options display (golangci#2989)

* fix: generics (golangci#2991)

* build(deps): bump github.com/daixiang0/gci from 0.4.2 to 0.4.3 (golangci#2992)

* fix: disable structcheck for go >= 1.18 (golangci#2994)

* Revert 'fix: generics (golangci#2991)' (golangci#2995)

* docs: Update documentation and assets (golangci#2996)

Co-authored-by: ldez <[email protected]>

* build(deps): bump terser from 5.12.0 to 5.14.2 in /docs (golangci#2998)

* revive: ignore slow rules (golangci#2999)

* docs: Update documentation and assets (golangci#3000)

Co-authored-by: Fernandez Ludovic <[email protected]>

* feat: remove some go1.18 limitations (golangci#3001)

* fix: restore some linters

- govet(nilness,unusedwrite)
- bodyclose
- contextcheck
- nilerr
- noctx
- tparallel

* fix: remove structcheck from the default linters.

* build(deps): bump github.com/alingse/asasalint from 0.0.10 to 0.0.11 (golangci#3003)

* upgrade asasalint update default builtin

* Update .golangci.reference.yml

Co-authored-by: Ludovic Fernandez <[email protected]>

Co-authored-by: Ludovic Fernandez <[email protected]>

* dev: clean commands (golangci#3007)

Co-authored-by: Fernandez Ludovic <[email protected]>

* build(deps): bump github.com/sirupsen/logrus from 1.8.1 to 1.9.0 (golangci#3010)

Bumps [github.com/sirupsen/logrus](https://github.com/sirupsen/logrus) from 1.8.1 to 1.9.0.
- [Release notes](https://github.com/sirupsen/logrus/releases)
- [Changelog](https://github.com/sirupsen/logrus/blob/master/CHANGELOG.md)
- [Commits](sirupsen/logrus@v1.8.1...v1.9.0)

---
updated-dependencies:
- dependency-name: github.com/sirupsen/logrus
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump github.com/BurntSushi/toml from 1.1.0 to 1.2.0 (golangci#3009)

Bumps [github.com/BurntSushi/toml](https://github.com/BurntSushi/toml) from 1.1.0 to 1.2.0.
- [Release notes](https://github.com/BurntSushi/toml/releases)
- [Commits](BurntSushi/toml@v1.1.0...v1.2.0)

---
updated-dependencies:
- dependency-name: github.com/BurntSushi/toml
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump github.com/sivchari/nosnakecase from 1.5.0 to 1.7.0 (golangci#3008)

Bumps [github.com/sivchari/nosnakecase](https://github.com/sivchari/nosnakecase) from 1.5.0 to 1.7.0.
- [Release notes](https://github.com/sivchari/nosnakecase/releases)
- [Commits](sivchari/nosnakecase@v1.5.0...v1.7.0)

---
updated-dependencies:
- dependency-name: github.com/sivchari/nosnakecase
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* dev: change format like function without args (golangci#3012)

Co-authored-by: Fernandez Ludovic <[email protected]>

* doc: add Bytebase info the trusted-by page (golangci#3013)

* gci: fix panic with invalid configuration option (golangci#3019)

* cgo: fix linters ignoring Cgo files (golangci#3025)

* docs: fix broken license link (golangci#3028)

* build(deps): bump github.com/ryancurrah/gomodguard from 1.2.3 to 1.2.4 (golangci#3029)

* build(deps): bump github.com/daixiang0/gci from 0.4.3 to 0.5.0 (golangci#3031)

Co-authored-by: Fernandez Ludovic <[email protected]>

* build(deps): bump gitlab.com/bosi/decorder from 0.2.2 to 0.2.3 (golangci#3033)

* build(deps): bump github.com/GaijinEntertainment/go-exhaustruct/v2 from 2.2.0 to 2.2.2 (golangci#3030)

Co-authored-by: Fernandez Ludovic <[email protected]>

* build(deps): bump honnef.co/go/tools from 0.3.2 to 0.3.3 (golangci#3032)

* docs: Update documentation and assets (golangci#3036)

Co-authored-by: Fernandez Ludovic <[email protected]>

* nolint: drop allow-leading-space option and add "nolint:all" (golangci#3002)

* ifshort: deprecate linter (golangci#3034)

Co-authored-by: Fernandez Ludovic <[email protected]>

* dev: syntax highlight for all dockerfiles (golangci#3038)

* docs(install): remove outdated info on source install (golangci#3039)

* build(deps): bump github.com/daixiang0/gci from 0.5.0 to 0.6.0 (golangci#3035)

* build(deps): bump gatsby-transformer-sharp from 4.13.0 to 4.19.0 in /docs (golangci#3040)

* build(deps): bump gatsby-plugin-netlify from 4.3.1 to 5.0.1 in /docs (golangci#3041)

* build(deps): bump gatsby-plugin-sharp from 4.17.0 to 4.19.0 in /docs (golangci#3044)

* build(deps): bump gatsby-plugin-react-helmet from 5.17.0 to 5.19.0 in /docs (golangci#3042)

* build(deps): bump gatsby-plugin-emotion from 7.17.0 to 7.19.0 in /docs (golangci#3047)

* build(deps): bump gatsby-plugin-offline from 5.17.0 to 5.19.0 in /docs (golangci#3043)

* build(deps): bump gatsby-transformer-yaml from 4.13.0 to 4.19.0 in /docs (golangci#3045)

* build(deps): bump gatsby from 4.15.2 to 4.19.2 in /docs (golangci#3046)

* gci: add missing `custom-order` setting (golangci#3052)

* feat: add usestdlibvars (golangci#3016)

* contextcheck: disable linter (golangci#3050)

* feat: go1.19 support  (golangci#3037)

* dev: remove stable from actions/setup-go (golangci#3055)

Co-authored-by: Fernandez Ludovic <[email protected]>

* build(deps): bump revgrep to HEAD (golangci#3054)

* build(deps): bump github.com/kisielk/errcheck from 1.6.1 to 1.6.2 (golangci#3059)

* build(deps): bump github.com/daixiang0/gci from 0.6.0 to 0.6.2 (golangci#3058)

Co-authored-by: Ludovic Fernandez <[email protected]>
Co-authored-by: golangci-releaser <[email protected]>
Co-authored-by: Maik Schreiber <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: lufe <[email protected]>
Co-authored-by: Milas Bowman <[email protected]>
Co-authored-by: ttys3 <[email protected]>
Co-authored-by: Aleksey Bakin <[email protected]>
Co-authored-by: Christian Mehlmauer <[email protected]>
Co-authored-by: Stephen Benjamin <[email protected]>
Co-authored-by: Anton Zinovyev <[email protected]>
Co-authored-by: Yuki Okushi <[email protected]>
Co-authored-by: Gustavo Bazan <[email protected]>
Co-authored-by: sivchari <[email protected]>
Co-authored-by: Ville Skyttä <[email protected]>
Co-authored-by: sg0hsmt <[email protected]>
Co-authored-by: Marat Reymers <[email protected]>
Co-authored-by: Loong Dai <[email protected]>
Co-authored-by: Sasha Melentyev <[email protected]>
Co-authored-by: Cory Miller <[email protected]>
Co-authored-by: Dan Kortschak <[email protected]>
Co-authored-by: Ethan Reesor <[email protected]>
Co-authored-by: alingse <[email protected]>
Co-authored-by: Tom Moulard <[email protected]>
Co-authored-by: Oscar <[email protected]>
Co-authored-by: Yilong Li <[email protected]>
Co-authored-by: Sven Anderson <[email protected]>
Co-authored-by: Eugene Simonov <[email protected]>
Co-authored-by: Dreamacro <[email protected]>
Co-authored-by: Kir Kolyshkin <[email protected]>
Co-authored-by: Tyler Dorn <[email protected]>
SeigeC pushed a commit to SeigeC/golangci-lint that referenced this pull request Apr 4, 2023
@ldez ldez added this to the v1.47 milestone Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment