CI: Run gofmt on Linting action (#110159)

* CI: Run gofmt on Linting action

* Chore: Run gofmt on all packages
This commit is contained in:
Matheus Macabu
2025-08-26 16:14:03 +02:00
committed by GitHub
parent d34338be02
commit 78ac555c4d
75 changed files with 169 additions and 73 deletions
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build !wireinject
//go:build !wireinject
// +build !wireinject
// Package bar includes both wireinject and non-wireinject variants.
package bar
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package bar
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
+2 -1
View File
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
+2 -1
View File
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
// All of the declarations are in one file.
// Wire should copy non-injectors over, preserving imports.
+2 -1
View File
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//
//+build wireinject
//go:build wireinject
// +build wireinject
package main
+2 -1
View File
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
+2 -1
View File
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
// This file is specifically designed to cause issues with copying the
// AST, particularly with the identifier "context".
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
+2 -1
View File
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
+2 -1
View File
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
+2 -1
View File
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
+2 -1
View File
@@ -12,7 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
//+build wireinject
//go:build wireinject
// +build wireinject
package main
+1 -1
View File
@@ -382,7 +382,7 @@ func TestSearchGetOrCreateIndexWithIndexUpdate(t *testing.T) {
buildEmptyIndexCalls: []buildEmptyIndexCall{},
cache: map[NamespacedResource]ResourceIndex{
NamespacedResource{Namespace: "ns", Group: "group", Resource: "bad"}: &MockResourceIndex{
{Namespace: "ns", Group: "group", Resource: "bad"}: &MockResourceIndex{
updateIndexError: failedErr,
},
},
@@ -524,7 +524,7 @@ func runTestIntegrationBackendListModifiedSince(t *testing.T, backend resource.S
require.GreaterOrEqual(t, latestRv, rvDeleted)
counter := 0
for _, _ = range seq {
for range seq {
counter++
}
require.Equal(t, 0, counter) // no events should be returned