Skip to content

Commit 420089a

Browse files
"test: revert fixing go-lint issues 6/8"
This reverts commit ee9bedd.
1 parent 5ffc655 commit 420089a

2 files changed

Lines changed: 27 additions & 9 deletions

File tree

.pre-commit-config.yaml

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,28 @@
1-
# See https://pre-commit.com for more information
2-
# See https://pre-commit.com/hooks.html for more hooks
1+
fail_fast: false
2+
minimum_pre_commit_version: '0'
33
repos:
4-
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v3.2.0
4+
# more info on the usage: https://github.com/golangci/golangci-lint/blob/main/.pre-commit-hooks.yaml
5+
- repo: https://github.com/golangci/golangci-lint
6+
rev: c0d3ddc9cf3faa61a4e378e879ece580256d76e5 # v2.12.2
67
hooks:
7-
- id: trailing-whitespace
8-
- id: end-of-file-fixer
9-
- id: check-yaml
10-
- id: check-added-large-files
8+
- id: golangci-lint-full
9+
language_version: 1.26.4
10+
stages: [pre-commit]
11+
- id: golangci-lint-fmt
12+
language_version: 1.26.4
13+
stages: [pre-commit]
14+
- repo: https://github.com/cpp-linter/cpp-linter-hooks
15+
rev: b3dad9fc4697e35a696198f8b6b7ac30b1e31ae0 # v1.5.0
16+
hooks:
17+
- id: clang-format
18+
args:
19+
- --version=19
20+
- id: clang-tidy
21+
args:
22+
- --version=19
23+
- --checks=.clang-tidy
24+
files: ^bpf/.*\.c$
25+
- repo: https://github.com/yoheimuta/protolint
26+
rev: 67278bf4e14fdfc8bdafef823b8e76eb403ed9ba # v0.56.4
27+
hooks:
28+
- id: protolint

test/e2e/kubectl_plugin_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"strings"
88
"testing"
99
"time"
10-
10+
1111
"github.com/rancher-sandbox/runtime-enforcer/api/v1alpha1"
1212
"github.com/rancher-sandbox/runtime-enforcer/internal/types/policymode"
1313
"github.com/stretchr/testify/assert"

0 commit comments

Comments
 (0)