travis-ci/travis-lint — Issue #3: Exit status on a invalid .travis.yml file should differ from zero
Author: dvberkel
Created: 2012-02-27 15:02:13+00:00
State: open

I was trying to setup a [pre-commit hook](http://book.git-scm.com/5_git_hooks.html "Git Community Book on Hooks") which would not allow a commit if travis-lint fails. Unfortunately travis-lint exits with a status code of zero even when it finds issues.

### Example

With running `travis-lint` ont he following *invalid* `.travis.yml` the exit code is zero

languag: ruby
rvm:
- 1.9.2

#### Sample run

> travis-lint
Found an issue with the `language:` key:

The "language" key is mandatory

> echo $?
0