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

Upgrade .golangci.yml config #2893

Merged
merged 2 commits into from
Jul 11, 2024
Merged

Upgrade .golangci.yml config #2893

merged 2 commits into from
Jul 11, 2024

Conversation

cthulhu-rider
Copy link
Contributor

No description provided.

This fixes
```
$ golangci-lint --version
golangci-lint has version 1.59.1 built with go1.22.3 from 1a55854a on 2024-06-09T18:08:33Z
$ golangci-lint run ./...
WARN [config_reader] The configuration option `output.format` is deprecated, please use `output.formats`
```

The configuration file is updated according to
https://golangci-lint.run/usage/configuration/.

Signed-off-by: Leonard Lyubich <[email protected]>
@cthulhu-rider cthulhu-rider marked this pull request as draft July 11, 2024 17:16
Copy link

codecov bot commented Jul 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 23.67%. Comparing base (4f90cc2) to head (cadd6b1).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2893   +/-   ##
=======================================
  Coverage   23.67%   23.67%           
=======================================
  Files         775      775           
  Lines       44908    44908           
=======================================
+ Hits        10633    10634    +1     
+ Misses      33420    33419    -1     
  Partials      855      855           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

According to https://golangci-lint.run/usage/linters/#govet,
`check-shadowing` no longer exists. Now it should be
```yaml
govet:
  disable: [shadow]
```
but `shadow` is disabled by default. Thus, whole `govet` section is not
needed anymore.

```
$ golangci-lint --version
golangci-lint has version 1.59.1 built with go1.22.3 from 1a55854a on 2024-06-09T18:08:33Z
```

Signed-off-by: Leonard Lyubich <[email protected]>
@cthulhu-rider cthulhu-rider marked this pull request as ready for review July 11, 2024 17:37
@carpawell carpawell merged commit 22259ce into master Jul 11, 2024
19 of 22 checks passed
@carpawell carpawell deleted the lint-config-deprecated branch July 11, 2024 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants