Skip to content

Commit

Permalink
adopt golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulme committed Jan 19, 2023
1 parent 1a98ea0 commit 594329c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ output:

# all available settings of specific linters
linters-settings:
gci:
sections:
- standard
- default
- prefix(github.com/open-telemetry/opentelemetry-collector-contrib)

govet:
# report about shadowed variables
check-shadowing: true
Expand Down
1 change: 0 additions & 1 deletion Makefile.Common
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ checklinks:
fmt: $(GOIMPORTS)
gofmt -w -s ./
$(GOIMPORTS) -w -local github.com/open-telemetry/opentelemetry-collector-contrib ./
goimports -w -local github.com/open-telemetry/opentelemetry-collector-contrib ./

.PHONY: lint
lint: $(LINT) checklicense misspell
Expand Down

0 comments on commit 594329c

Please sign in to comment.