Skip to content

Commit

Permalink
Add lint to the default rake task
Browse files Browse the repository at this point in the history
Because this app uses minitest which runs via an at_exit hook this causes
the lint to run first, then the cucumber features, then, finally, the
tests.  This is probably the wrong way around in terms of speed and things
you care, but that's minitest for you.
  • Loading branch information
h-lame committed Sep 19, 2016
1 parent 3bd3530 commit 884f52f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Rakefile
Expand Up @@ -6,5 +6,6 @@ if Rails.env.development? || Rails.env.test?
require 'ci/reporter/rake/minitest'
end

task default: [:lint]
Rails.application.load_tasks
task test: :check_for_bad_time_handling
4 changes: 4 additions & 0 deletions lib/tasks/lint.rake
@@ -0,0 +1,4 @@
desc "Run govuk-lint with similar params to CI"
task "lint" do
sh "bundle exec govuk-lint-ruby --rails --diff --format clang app test lib config"
end

0 comments on commit 884f52f

Please sign in to comment.