File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 '
33repos :
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
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments