It appears that we inconsistently use 2 and 4 space indents for YAML
however 2 space indents appear to be the dominant one in practice so
set config to that so that the least amount of changes happen when
prettier is applied.
This patch is also a preparation patch for RELENG-152 as the automation
we want to add for managing JJB updates when branch cutting requires
a consistent formatting of the YAML files so that auto-generated output
can match appropriately with minimal formatting changes.
Issue: RELENG-152
Change-Id: Ie35521de0378b7892f06ff7f36d470847c78989f
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
max_line_length = 80
[*.yaml]
-indent_size = 4
+indent_size = 2
- id: check-json
- id: trailing-whitespace
+ - repo: https://github.com/prettier/prettier
+ rev: 2.0.5
+ hooks:
+ - id: prettier
+
- repo: https://github.com/jorisroovers/gitlint
rev: v0.13.1
hooks:
hooks:
- id: shellcheck
exclude: >
- (?x)^(
- jjb/global-jjb/.*|
- jenkins-config/.*
- )$
+ (?x)^(
+ jjb/global-jjb/.*|
+ jenkins-config/.*
+ )$
- repo: https://github.com/ambv/black
rev: stable
max: 120
ignore: |
packer
-