Skip to content

Commit

Permalink
chore: fix linter warnings in terminal (#1302)
Browse files Browse the repository at this point in the history
I was getting these warnings when running go linting.

```sh
./bin/golangci-lint run
WARN [config_reader] The configuration option `run.skip-files` is deprecated, please use `issues.exclude-files`.
WARN [config_reader] The configuration option `run.skip-dirs` is deprecated, please use `issues.exclude-dirs`.
WARN [config_reader] The configuration option `govet.check-shadowing` is deprecated. Please enable `shadow` instead, if you are not using `enable-all`.
```
  • Loading branch information
wesbillman authored Apr 18, 2024
1 parent 794a835 commit 7e1034d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
run:
tests: true
timeout: 5m
skip-dirs:
- resources
- old
skip-files:
- cmd/protopkg/main.go

output:
print-issued-lines: false
Expand Down Expand Up @@ -78,8 +73,8 @@ linters-settings:
exhaustive:
default-signifies-exhaustive: true
govet:
check-shadowing: true
use-installed-packages: true
enable:
- 'shadow'
dupl:
threshold: 100
goconst:
Expand Down Expand Up @@ -113,6 +108,11 @@ linters-settings:
issues:
max-same-issues: 0
max-issues-per-linter: 0
exclude-dirs:
- resources
- old
exclude-files:
- cmd/protopkg/main.go
exclude-use-default: false
exclude:
# Captured by errcheck.
Expand Down

0 comments on commit 7e1034d

Please sign in to comment.