You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bb...@apache.org on 2019/09/18 10:52:46 UTC
[mesos] 09/09: Enabled a number of additional pre-commit checks.
This is an automated email from the ASF dual-hosted git repository.
bbannier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git
commit fb467a03cb8a5bde5147dc06ca6b73c9df04ff48
Author: Benjamin Bannier <bb...@apache.org>
AuthorDate: Wed Sep 18 11:37:19 2019 +0200
Enabled a number of additional pre-commit checks.
This patch enables checkers for well-formed YAML and JSON, and a linter
which checks that all executable scripts have a valid shebang line.
Review: https://reviews.apache.org/r/71209/
---
support/pre-commit-config.yaml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/support/pre-commit-config.yaml b/support/pre-commit-config.yaml
index 547a4fb..62ce1a4 100644
--- a/support/pre-commit-config.yaml
+++ b/support/pre-commit-config.yaml
@@ -46,3 +46,9 @@ repos:
hooks:
- id: require-ascii
exclude: '^(docs/(committers.md|contributors.yaml))|(site|src/webui)/'
+- repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: v2.3.0
+ hooks:
+ - id: check-yaml
+ - id: check-json
+ - id: check-executables-have-shebangs