Skip to content

Instantly share code, notes, and snippets.

@dougdroper
Created May 9, 2016 12:46
Show Gist options
  • Save dougdroper/253bbdf77163d855c6541c2e4c8fab2c to your computer and use it in GitHub Desktop.
Save dougdroper/253bbdf77163d855c6541c2e4c8fab2c to your computer and use it in GitHub Desktop.
Run linter before pushing
#!/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