Skip to content

Commit

Permalink
Prevent accidental github.com/gogo/ import.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekSi committed Aug 27, 2019
1 parent b1ff415 commit 8077520
Show file tree
Hide file tree
Showing 4 changed files with 114 additions and 103 deletions.
4 changes: 3 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
---
linters-settings:
# prevent import of "errors" instead of "github.com/pkg/errors"
depguard:
list-type: blacklist
include-go-root: true
packages:
# use "github.com/pkg/errors" instead
- errors
# use "github.com/golang/protobuf/proto" instead
- github.com/gogo/protobuf/proto

goimports:
local-prefixes: github.com/percona/pmm
Expand Down
Loading

0 comments on commit 8077520

Please sign in to comment.