diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 9153642..17bcdde 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -14,7 +14,7 @@ jobs: uses: golangci/golangci-lint-action@v3.4.0 with: # Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version. - version: v1.48 + version: v1.52 # Optional: working directory, useful for monorepos # working-directory: test diff --git a/go.mod b/go.mod index 8e0e4e3..4611aa1 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/katbyte/terrafmt v0.5.2 github.com/slack-go/slack v0.12.1 github.com/stretchr/testify v1.8.2 - github.com/ysmood/golangci-lint v0.6.2 + github.com/ysmood/golangci-lint v0.7.0 ) require ( @@ -80,6 +80,7 @@ require ( github.com/vmihailenco/msgpack/v4 v4.3.12 // indirect github.com/vmihailenco/tagparser v0.1.1 // indirect github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 // indirect + github.com/ysmood/fetchup v0.1.3 // indirect github.com/yuin/goldmark v1.4.13 // indirect github.com/yuin/goldmark-meta v0.0.0-20191126180153-f0638e958b60 // indirect github.com/zclconf/go-cty v1.13.1 // indirect diff --git a/go.sum b/go.sum index 6debd08..c888dca 100644 --- a/go.sum +++ b/go.sum @@ -374,8 +374,15 @@ github.com/xanzy/ssh-agent v0.3.0 h1:wUMzuKtKilRgBAD1sUb8gOwwRr2FGoBVumcjoOACClI github.com/xanzy/ssh-agent v0.3.0/go.mod h1:3s9xbODqPuuhK9JV1R321M/FlMZSBvE5aY6eAcqrDh0= github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 h1:QldyIu/L63oPpyvQmHgvgickp1Yw510KJOqX7H24mg8= github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778/go.mod h1:2MuV+tbUrU1zIOPMxZ5EncGwgmMJsa+9ucAQZXxsObs= -github.com/ysmood/golangci-lint v0.6.2 h1:LPfqCDCH68UuHT9hHe0z087SR5fRBf/88ZxHVtSxQsQ= -github.com/ysmood/golangci-lint v0.6.2/go.mod h1:MjiPi46oBlehp6jdJD3BM/ES8jT/wFzPKTHZqmDYIW0= +github.com/ysmood/fetchup v0.1.3 h1:tpdEXKZMJOz58t2i42aENoW/za6Isly7/aG1CmgeLZ4= +github.com/ysmood/fetchup v0.1.3/go.mod h1:b5DtW4kZ7L5UokuXfT4QKEZBCubUQXKcwbX2PMNFzRg= +github.com/ysmood/golangci-lint v0.7.0 h1:h+vUeIEnfqZEcX8tkmtJzvIRQZkNNTzM0kw0VeVrlKQ= +github.com/ysmood/golangci-lint v0.7.0/go.mod h1:t7ppGX8S10Yi3uKwicKLv/1YqSHBGjrLQDsoX8FfGHM= +github.com/ysmood/gop v0.0.1 h1:EGxcy28xzMfjT+TlLf8JQd1w/sTz0XPrbHazLLs84BA= +github.com/ysmood/gop v0.0.1/go.mod h1:JenWOSCGucsXYHdw1Cw4a0fmLnux7jXBDdlBGjh8V/g= +github.com/ysmood/got v0.32.0/go.mod h1:pE1l4LOwOBhQg6A/8IAatkGp7uZjnalzrZolnlhhMgY= +github.com/ysmood/got v0.33.0 h1:E0XJ5/mI2wdCCjXkqJ2d96GdOEYFwe2ou0FqHJf6zr4= +github.com/ysmood/got v0.33.0/go.mod h1:P3C/Wwttv4uq/tpovaH+c8ANmHePyFPxEbNzdxcEGDU= github.com/yuin/goldmark v1.1.7/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= diff --git a/slack/provider.go b/slack/provider.go index ba3ed03..2103b4d 100644 --- a/slack/provider.go +++ b/slack/provider.go @@ -35,7 +35,7 @@ func Provider() *schema.Provider { } } -func providerConfigure(ctx context.Context, d *schema.ResourceData) (interface{}, diag.Diagnostics) { +func providerConfigure(_ context.Context, d *schema.ResourceData) (interface{}, diag.Diagnostics) { var diags diag.Diagnostics token, ok := d.GetOk("token") diff --git a/slack/provider_test.go b/slack/provider_test.go index 0656c51..1f2e1fc 100644 --- a/slack/provider_test.go +++ b/slack/provider_test.go @@ -60,7 +60,7 @@ func TestProvider(t *testing.T) { } } -func TestProvider_impl(t *testing.T) { +func TestProvider_impl(_ *testing.T) { var _ *schema.Provider = Provider() } diff --git a/slack/resource_conversation.go b/slack/resource_conversation.go index e03091f..0e9a14d 100644 --- a/slack/resource_conversation.go +++ b/slack/resource_conversation.go @@ -398,7 +398,7 @@ func resourceSlackConversationDelete(ctx context.Context, d *schema.ResourceData return diags } -func updateChannelData(d *schema.ResourceData, channel *slack.Channel, users []string) diag.Diagnostics { +func updateChannelData(d *schema.ResourceData, channel *slack.Channel, _ []string) diag.Diagnostics { if channel.ID == "" { return diag.Errorf("error setting id: returned channel does not have an id") }