Skip to content

Commit

Permalink
[dist] Add some linter rake tasks
Browse files Browse the repository at this point in the history
There are many subtle differences on how we run rubocop in the CI
cycle to the defaults. Sometimes I want to run it like travis does...
  • Loading branch information
hennevogel committed Mar 27, 2018
1 parent be1713b commit 3a1854c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/api/lib/tasks/dev.rake
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,20 @@ namespace :dev do
Rake::Task['db:structure:verify'].invoke
Rake::Task['db:structure:verify_no_bigint'].invoke
Rake::Task['haml_lint'].invoke
sh 'rubocop -D -F -S --fail-level convention ../..'
Rake::Task['rubocop_lint'].invoke
Rake::Task['git_cop'].invoke
sh 'jshint ./app/assets/javascripts/'
end
namespace :lint do
desc 'Run the ruby linter'
task :ruby do
sh 'rubocop -D -F -S --fail-level convention ../..'
end
desc 'Run the haml linter'
task :haml do
Rake::Task['haml_lint'].invoke
end
end
end

def copy_example_file(example_file)
Expand Down

0 comments on commit 3a1854c

Please sign in to comment.