Add pre-commit hooks

Signed-off-by: Kyle Harding <kyle@balena.io>
This commit is contained in:
Kyle Harding
2024-10-02 15:06:29 -04:00
parent 3a074d7ffb
commit 58319e144e
4 changed files with 28 additions and 3 deletions
+25
View File
@@ -0,0 +1,25 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 38.101.0
hooks:
- id: renovate-config-validator
- repo: https://github.com/rhysd/actionlint
rev: v1.7.3
hooks:
- id: actionlint-docker
- repo: https://github.com/hadolint/hadolint
rev: v2.12.0
hooks:
- id: hadolint-docker
+1 -1
View File
@@ -159,7 +159,7 @@ COPY --from=root-key --chown=unbound:unbound /var/unbound/root.key /var/unbound/
RUN [ "unbound", "-V" ]
# hadolint ignore=DL3059
RUN [ "unbound-checkconf" ]
RUN [ "unbound-checkconf" ]
# hadolint ignore=DL3059
RUN [ "drill", "-v" ]
# hadolint ignore=DL3059
@@ -2,4 +2,4 @@ cachedb:
backend: "redis"
redis-server-host: redis
redis-server-port: 6379
redis-expire-records: yes
redis-expire-records: yes
+1 -1
View File
@@ -76,7 +76,7 @@ server:
# Fetch DS records earlier (DNSSEC): more cpu usage, less latency
prefetch-key: yes
# One thread should be sufficient, can be increased on beefy machines.
# In reality for most users running on small networks or on a single machine,
# it should be unnecessary to seek performance enhancement by increasing num-threads above 1.