-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into running_deployment
- Loading branch information
Showing
11 changed files
with
92 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
linters: | ||
# Enable specific linter | ||
# https://golangci-lint.run/usage/linters/#enabled-by-default | ||
enable: | ||
- errorlint | ||
- revive | ||
- ginkgolinter | ||
- gofmt | ||
- govet | ||
linters-settings: | ||
revive: | ||
rules: | ||
# https://github.com/mgechev/revive/blob/master/RULES_DESCRIPTIONS.md#unused-parameter | ||
- name: unused-parameter | ||
severity: warning | ||
disabled: true | ||
run: | ||
timeout: 5m |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
repos: | ||
- repo: local | ||
hooks: | ||
- id: gotidy | ||
name: gotidy | ||
language: system | ||
entry: make | ||
args: ["tidy"] | ||
pass_filenames: false | ||
- id: make-manifests | ||
name: make-manifests | ||
language: system | ||
entry: make | ||
args: ['manifests'] | ||
pass_filenames: false | ||
- id: make-generate | ||
name: make-generate | ||
language: system | ||
entry: make | ||
args: ['generate'] | ||
pass_filenames: false | ||
- id: make-operator-lint | ||
name: make-operator-lint | ||
language: system | ||
entry: make | ||
args: ['operator-lint'] | ||
pass_filenames: false | ||
|
||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
- id: check-added-large-files | ||
- id: fix-byte-order-marker | ||
- id: check-case-conflict | ||
- id: check-executables-have-shebangs | ||
exclude: ^vendor | ||
- id: check-shebang-scripts-are-executable | ||
exclude: ^vendor | ||
- id: check-merge-conflict | ||
- id: check-symlinks | ||
- id: destroyed-symlinks | ||
- id: check-yaml | ||
args: [-m] | ||
- id: check-json | ||
- id: detect-private-key | ||
- id: end-of-file-fixer | ||
exclude: ^vendor | ||
- id: no-commit-to-branch | ||
- id: trailing-whitespace | ||
exclude: ^vendor | ||
|
||
- repo: https://github.com/openstack/bashate.git | ||
rev: 2.1.1 | ||
hooks: | ||
- id: bashate | ||
entry: bashate --error . --ignore=E006,E040,E011,E020,E012 | ||
|
||
- repo: https://github.com/golangci/golangci-lint | ||
rev: v1.52.2 | ||
hooks: | ||
- id: golangci-lint | ||
args: ["-v"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,4 +32,4 @@ function merge_config_dir { | |
cp -f ${conf} /var/lib/config-data/merged/ | ||
fi | ||
done | ||
} | ||
} |