From df3080d3542d74d0d3fe1ad310650afcc39b326d Mon Sep 17 00:00:00 2001 From: Ville Vesilehto Date: Wed, 16 Aug 2023 08:44:56 +0300 Subject: [PATCH] fix depguard v2 config --- .golangci.yml | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 9c96b0aef..505a33161 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -53,8 +53,38 @@ linters-settings: recommendations: - google.golang.org/protobuf depguard: - list-type: denylist - include-go-root: true + rules: + main: + # List of file globs that will match this list of settings to compare against. + # Default: $all + files: + - $all + # List of allowed packages. + allow: + - $gostd + - github.com/BurntSushi/toml + - github.com/Masterminds/sprig/v3 + - github.com/davecgh/go-spew/spew + - github.com/hashicorp/consul-template + - github.com/hashicorp/consul/api + - github.com/hashicorp/consul/sdk/testutil + - github.com/hashicorp/go-gatedio + - github.com/hashicorp/go-hclog + - github.com/hashicorp/go-multierror + - github.com/hashicorp/go-rootcerts + - github.com/hashicorp/go-sockaddr/template + - github.com/hashicorp/go-syslog + - github.com/hashicorp/hcl + - github.com/hashicorp/logutils + - github.com/hashicorp/nomad/api + - github.com/hashicorp/vault/api + - github.com/imdario/mergo + - github.com/mitchellh/go-homedir + - github.com/mitchellh/hashstructure + - github.com/mitchellh/mapstructure + - github.com/pkg/errors + - github.com/stretchr/testify/assert + - github.com/stretchr/testify/require run: timeout: 10m