mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
pre-commit: add hooks check-illegal-windows-names and file-contents-sorter (#11662)
This commit is contained in:
parent
136ea3eafa
commit
a5a934dac1
2
.github/linters/codespell.txt
vendored
2
.github/linters/codespell.txt
vendored
@ -375,6 +375,7 @@ propogate
|
|||||||
provison
|
provison
|
||||||
psudo
|
psudo
|
||||||
pyhsical
|
pyhsical
|
||||||
|
re-use
|
||||||
readabilty
|
readabilty
|
||||||
readd
|
readd
|
||||||
reccuring
|
reccuring
|
||||||
@ -411,7 +412,6 @@ retriving
|
|||||||
retrun
|
retrun
|
||||||
retuned
|
retuned
|
||||||
returing
|
returing
|
||||||
re-use
|
|
||||||
rever
|
rever
|
||||||
rocessor
|
rocessor
|
||||||
runing
|
runing
|
||||||
|
|||||||
@ -32,11 +32,12 @@ repos:
|
|||||||
name: run gitleaks
|
name: run gitleaks
|
||||||
description: detect hardcoded secrets
|
description: detect hardcoded secrets
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v5.0.0
|
rev: v6.0.0
|
||||||
hooks:
|
hooks:
|
||||||
#- id: check-added-large-files
|
#- id: check-added-large-files
|
||||||
- id: check-case-conflict
|
- id: check-case-conflict
|
||||||
#- id: check-executables-have-shebangs
|
#- id: check-executables-have-shebangs
|
||||||
|
- id: check-illegal-windows-names
|
||||||
- id: check-merge-conflict
|
- id: check-merge-conflict
|
||||||
- id: check-shebang-scripts-are-executable
|
- id: check-shebang-scripts-are-executable
|
||||||
files: \.sh$
|
files: \.sh$
|
||||||
@ -50,7 +51,7 @@ repos:
|
|||||||
exclude: >
|
exclude: >
|
||||||
(?x)
|
(?x)
|
||||||
^scripts/vm/systemvm/id_rsa\.cloud$|
|
^scripts/vm/systemvm/id_rsa\.cloud$|
|
||||||
^server/src/test/java/org/apache/cloudstack/network/ssl/CertServiceTest.java$|
|
^server/src/test/java/org/apache/cloudstack/network/ssl/CertServiceTest\.java$|
|
||||||
^server/src/test/java/com/cloud/keystore/KeystoreTest\.java$|
|
^server/src/test/java/com/cloud/keystore/KeystoreTest\.java$|
|
||||||
^server/src/test/resources/certs/dsa_self_signed\.key$|
|
^server/src/test/resources/certs/dsa_self_signed\.key$|
|
||||||
^server/src/test/resources/certs/non_root\.key$|
|
^server/src/test/resources/certs/non_root\.key$|
|
||||||
@ -61,9 +62,12 @@ repos:
|
|||||||
^services/console-proxy/rdpconsole/src/test/doc/rdp-key\.pem$|
|
^services/console-proxy/rdpconsole/src/test/doc/rdp-key\.pem$|
|
||||||
^systemvm/agent/certs/localhost\.key$|
|
^systemvm/agent/certs/localhost\.key$|
|
||||||
^systemvm/agent/certs/realhostip\.key$|
|
^systemvm/agent/certs/realhostip\.key$|
|
||||||
^test/integration/smoke/test_ssl_offloading.py$
|
^test/integration/smoke/test_ssl_offloading\.py$
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
exclude: \.vhd$
|
exclude: \.vhd$
|
||||||
|
- id: file-contents-sorter
|
||||||
|
args: [--unique]
|
||||||
|
files: ^\.github/linters/codespell\.txt$
|
||||||
- id: fix-byte-order-marker
|
- id: fix-byte-order-marker
|
||||||
- id: forbid-submodules
|
- id: forbid-submodules
|
||||||
- id: mixed-line-ending
|
- id: mixed-line-ending
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user