From 706d9daf96c4f60bc98382214e894e73106bdfbe Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 8 Oct 2024 12:10:14 +0000 Subject: [PATCH 1/2] build(deps): bump github.com/go-critic/go-critic from 0.11.4 to 0.11.5 Bumps [github.com/go-critic/go-critic](https://github.com/go-critic/go-critic) from 0.11.4 to 0.11.5. - [Release notes](https://github.com/go-critic/go-critic/releases) - [Commits](https://github.com/go-critic/go-critic/compare/v0.11.4...v0.11.5) --- updated-dependencies: - dependency-name: github.com/go-critic/go-critic dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 1e273fce06a2..5498a191310d 100644 --- a/go.mod +++ b/go.mod @@ -38,7 +38,7 @@ require ( github.com/firefart/nonamedreturns v1.0.5 github.com/fzipp/gocyclo v0.6.0 github.com/ghostiam/protogetter v0.3.8 - github.com/go-critic/go-critic v0.11.4 + github.com/go-critic/go-critic v0.11.5 github.com/go-viper/mapstructure/v2 v2.2.1 github.com/go-xmlfmt/xmlfmt v1.1.2 github.com/gofrs/flock v0.12.1 diff --git a/go.sum b/go.sum index bcd9f1ca7345..ffaefd3d48b8 100644 --- a/go.sum +++ b/go.sum @@ -149,8 +149,8 @@ github.com/fzipp/gocyclo v0.6.0 h1:lsblElZG7d3ALtGMx9fmxeTKZaLLpU8mET09yN4BBLo= github.com/fzipp/gocyclo v0.6.0/go.mod h1:rXPyn8fnlpa0R2csP/31uerbiVBugk5whMdlyaLkLoA= github.com/ghostiam/protogetter v0.3.8 h1:LYcXbYvybUyTIxN2Mj9h6rHrDZBDwZloPoKctWrFyJY= github.com/ghostiam/protogetter v0.3.8/go.mod h1:WZ0nw9pfzsgxuRsPOFQomgDVSWtDLJRfQJEhsGbmQMA= -github.com/go-critic/go-critic v0.11.4 h1:O7kGOCx0NDIni4czrkRIXTnit0mkyKOCePh3My6OyEU= -github.com/go-critic/go-critic v0.11.4/go.mod h1:2QAdo4iuLik5S9YG0rT4wcZ8QxwHYkrr6/2MWAiv/vc= +github.com/go-critic/go-critic v0.11.5 h1:TkDTOn5v7EEngMxu8KbuFqFR43USaaH8XRJLz1jhVYA= +github.com/go-critic/go-critic v0.11.5/go.mod h1:wu6U7ny9PiaHaZHcvMDmdysMqvDem162Rh3zWTrqk8M= github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20191125211704-12ad95a8df72/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= github.com/go-gl/glfw/v3.3/glfw v0.0.0-20200222043503-6f7a984d4dc4/go.mod h1:tQ2UAYgL5IevRw8kRxooKSPJfGvJ9fJQFa0TUsXzTg8= From f4bfcc76b616a2a0a9eb28ed7352ba75db8701a9 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Tue, 8 Oct 2024 14:16:50 +0200 Subject: [PATCH 2/2] chore: update doc --- .golangci.next.reference.yml | 4 ++++ jsonschema/golangci.next.jsonschema.json | 1 + 2 files changed, 5 insertions(+) diff --git a/.golangci.next.reference.yml b/.golangci.next.reference.yml index a3de5ad5086f..c86316bff9bd 100644 --- a/.golangci.next.reference.yml +++ b/.golangci.next.reference.yml @@ -890,6 +890,9 @@ linters-settings: # Detects input and output parameters that have a type of pointer to referential type. # https://go-critic.com/overview.html#ptrToRefParam - ptrToRefParam + # Detects append all its data while range it. + # https://go-critic.com/overview.html#rangeAppendAll + - rangeAppendAll # Detects expensive copies of `for` loop range expressions. # https://go-critic.com/overview.html#rangeExprCopy - rangeExprCopy @@ -1086,6 +1089,7 @@ linters-settings: - preferStringWriter - preferWriteByte - ptrToRefParam + - rangeAppendAll - rangeExprCopy - rangeValCopy - redundantSprint diff --git a/jsonschema/golangci.next.jsonschema.json b/jsonschema/golangci.next.jsonschema.json index a1fc391253d2..20253cb5baf5 100644 --- a/jsonschema/golangci.next.jsonschema.json +++ b/jsonschema/golangci.next.jsonschema.json @@ -68,6 +68,7 @@ "preferStringWriter", "preferWriteByte", "ptrToRefParam", + "rangeAppendAll", "rangeExprCopy", "rangeValCopy", "redundantSprint",