Created
May 9, 2016 12:46
-
-
Save dougdroper/253bbdf77163d855c6541c2e4c8fab2c to your computer and use it in GitHub Desktop.
Run linter before pushing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
result = `govuk-lint-ruby lib app spec` | |
unless !!result.match("no offenses detected") | |
puts result | |
exit 1 | |
end | |
exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment