Skip to content

Commit

Permalink
Enable unused linter, add allow-parrallel-runs as config (open-teleme…
Browse files Browse the repository at this point in the history
…try#5359)

Signed-off-by: Bogdan Drutu <[email protected]>
  • Loading branch information
bogdandrutu authored May 13, 2022
1 parent a90d219 commit c77f9e1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ run:
# the dependency descriptions in go.mod.
modules-download-mode: readonly

# Allow multiple parallel golangci-lint instances running.
# If false (default) - golangci-lint acquires file lock on start.
allow-parallel-runners: true

# output configuration options
output:
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
Expand Down Expand Up @@ -116,16 +120,12 @@ linters:
- revive
- staticcheck
- unconvert
- unused
- unparam

issues:
# Excluding configuration per-path, per-linter, per-text and per-source
exclude-rules:
# Exclude some linters from running on tests files.
- path: otlp_test.go
linters:
# See https://github.com/golangci/golangci-lint/issues/537#issuecomment-545170007
- structcheck
- text: "G404:"
linters:
- gosec
Expand Down
4 changes: 2 additions & 2 deletions Makefile.Common
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ tidy:

.PHONY: lint
lint:
$(LINT) run --allow-parallel-runners
$(LINT) run

.PHONY: lint-unstable
lint-unstable:
$(LINT) run --allow-parallel-runners --build-tags enable_unstable
$(LINT) run --build-tags enable_unstable

.PHONY: generate
generate:
Expand Down

0 comments on commit c77f9e1

Please sign in to comment.