Skip to content

Commit

Permalink
Add yamllint configuration, run yamllint in Travis
Browse files Browse the repository at this point in the history
This ensures all yaml files we have in cluster-monitoring-operator
are parsable and consistently indented.
  • Loading branch information
Elad Alfassa committed Apr 26, 2018
1 parent fd39bf7 commit df84b86
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ go:
services:
- docker
before_install:
- sudo apt-get -qq update
- sudo apt-get install -y python-pip
- sudo pip install yamllint
jobs:
include:
- script: yamllint .
- stage: Build
script: make build
- script: make generate && git diff --exit-code
15 changes: 15 additions & 0 deletions .yamllint
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
extends: default
ignore: |
vendor/
manifests/cluster-monitoring-operator-role.yaml

rules:
indentation:
spaces: 2
indent-sequences: consistent
document-start: disable
line-length: disable
trailing-spaces: disable
colons: disable
empty-lines: disable

0 comments on commit df84b86

Please sign in to comment.