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

Add nosprintfhostport linter #2749

Merged
merged 3 commits into from
Apr 23, 2022
Merged

Add nosprintfhostport linter #2749

merged 3 commits into from
Apr 23, 2022

Conversation

stbenjam
Copy link
Contributor

@stbenjam stbenjam commented Apr 6, 2022

Repo:
https://github.com/stbenjam/no-sprintf-host-port

Description:
no-sprintf-host-port checks that Sprintf is not used to construct a host:port
combination in a URL that possibly contains an IPv6 address.

Details:
A frequent pattern is for a developer to construct a URL like this:

fmt.Sprintf("http://%s:%d/foo", host, port)

However, if "host" is an IPv6 address like 2001:4860:4860::8888, the URL
constructed will be invalid. IPv6 addresses must be bracketed, like
this:

http://[2001:4860:4860::8888]:9443

The linter really only looks for the most obvious cases, but where it's
possible to infer that a URL is being constructed with Sprintf containing
a :, this informs the user to use net.JoinHostPort instead.

Running it against some real world code bases like OpenShift and
Kubernetes has found a number of cases that would break in IPv6
environments
.

@boring-cyborg
Copy link

boring-cyborg bot commented Apr 6, 2022

Hey, thank you for opening your first Pull Request !

@CLAassistant
Copy link

CLAassistant commented Apr 6, 2022

CLA assistant check
All committers have signed the CLA.

@ldez
Copy link
Member

ldez commented Apr 6, 2022

In order for a pull request adding a linter to be reviewed, the linter and the PR must follow some requirements.

Pull Request Description

  • It must have a link to the linter repository.
  • It must provide a short description about the linter.

Linter

  • It must not be a duplicate of another linter or a rule of a linter. (the team will help to verify that)
  • It must have a valid license and the file must contain the required information by the license, ex: author, year, etc.
  • It must use go/analysis.
  • It must have a valid tag, ex: v1.0.0, v0.1.0.
  • It must not contain init().
  • It must not contain panic(), log.fatal(), os.exit(), or similar.
  • It must not have false positives/negatives. (the team will help to verify that)
  • It must have tests inside golangci-lint.

The Linter Tests Inside Golangci-lint

  • They must have at least one std lib import.
  • They must work with T=<name of the linter test file>.go make test_linters. (the team will help to verify that)

.golangci.example.yml

  • The linter must be added to the list of available linters (alphabetical case-insensitive order).
    • enable and disable options
  • If the linter has a configuration, the exhaustive configuration of the linter must be added (alphabetical case-insensitive order)
    • The values must be different from the default ones.
    • The default values must be defined in a comment.
    • The option must have a short description.

Others Requirements

  • The files (tests and linter) inside golangci-lint must have the same name as the linter.
  • The .golangci.yml of golangci-lint itself must not be edited and the linter must not be added to this file.
  • The linters must be sorted in the alphabetical order (case-insensitive) in the Manager.GetAllSupportedLinterConfigs(...) and .golangci.example.yml.
  • The load mode (WithLoadMode(...)):
    • if the linter doesn't use types: goanalysis.LoadModeSyntax
    • goanalysis.LoadModeTypesInfo required WithLoadForGoAnalysis() in the Manager.GetAllSupportedLinterConfigs(...)
  • The version in WithSince(...) must be the next minor version (v1.X.0) of golangci-lint.

Recommendations

  • The linter should not use SSA. (currently, SSA does not support generics)
  • The linter repository should have a CI, tests, a readme and linting.
  • The linter should be published as a binary. (useful to diagnose bug origins)

The golangci-lint team will edit this comment to check the boxes before and during the review.

This checklist does not imply that we will accept the linter.

@ldez ldez added the linter: new Support new linter label Apr 7, 2022
@Antonboom
Copy link
Contributor

@stbenjam, is it necessary to have the prefix go-?
(yes, I saw goprintffuncname).

I think nosprintfhostport is more suitable.

And it looks like a more general problem nosprintf, for example

  • don't use fmt.Sprintf to build the URL and use url.URL instead.
  • don't use errors.New(fmt.Sprintf("...")) and use fmt.Errorf("...") instead.
  • ...

What do you think?

@stbenjam
Copy link
Contributor Author

stbenjam commented Apr 7, 2022

@stbenjam, is it necessary to have the prefix go-? (yes, I saw goprintffuncname).

No, I can fix that. nosprintfhostport then? I can also do nosprintf if we can come up with some more general cases. For the two you gave:

don't use fmt.Sprintf to build the URL and use url.URL instead.

Do you have an example of what this would look like? I think this turns any quick URL construction into many lines. Not sure I would want that forced on me -- the problem (for me anyway) is pretty limited to using Sprintf to construct the host:port portion of a URL only, but otherwise I think Sprintf is fine.

don't use errors.New(fmt.Sprintf("...")) and use fmt.Errorf("...") instead.

Looks like gosimple already checks that:

foo.go:9:14: S1028: should use fmt.Errorf(...) instead of errors.New(fmt.Sprintf(...)) (gosimple)

@stbenjam stbenjam changed the title Add gosprintfhostport linter Add nosprintfhostport linter Apr 7, 2022
@stbenjam
Copy link
Contributor Author

Hi, I think I've addressed what I can from the checklist and comments. Could you have another look? Thank you 🙏

@Antonboom Antonboom requested a review from ldez April 16, 2022 13:14
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.

I tested the linter with several large code-base, and I haven't seen false positives or false negatives.
I feel that this linter can have this problem, but as I don't have any proof of that, I will approve.

The Go linter go-sprintf-host-port checks that sprintf is not used to
construct a host:port combination in a URL. A frequent pattern is for a
developer to construct a URL like this:

```go
fmt.Sprintf("http://%s:%d/foo", host, port)
```

However, if "host" is an IPv6 address like 2001:4860:4860::8888, the URL
constructed will be invalid. IPv6 addresses must be bracketed, like
this:

```
http://[2001:4860:4860::8888]:9443
```

The linter is naive, and really only looks for the most obvious cases,
but where it's possible to infer that a URL is being constructed with
Sprintf containing a :, this informs the user to use net.JoinHostPort
instead.

Running it against some real world code bases like OpenShift and
Kubernetes has found a number of cases that would break in IPv6
environments.
- Alphabetized manager.go
- Added go glangci.example.yml
- Used tag for go.mod
@stbenjam
Copy link
Contributor Author

@ldez Could you look again? I had to rebase as lintersdb got a new entry that caused a conflict.

@ldez ldez merged commit 89e6cd6 into golangci:master Apr 23, 2022
@stbenjam stbenjam deleted the sprintfhostport branch April 24, 2022 21:59
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.46 milestone Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linter: new Support new linter
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants