Skip to content

Commit 9a0a2a6

Browse files
committed
Fix heroku deploy dependency on rubocop
* Also default rake will run tests and lint
1 parent d786b93 commit 9a0a2a6

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

Diff for: Rakefile

-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,3 @@
44
require File.expand_path("../config/application", __FILE__)
55

66
Rails.application.load_tasks
7-
8-
require "rubocop/rake_task"
9-
10-
RuboCop::RakeTask.new

Diff for: lib/tasks/rubocop.rake

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
if %w(development test).include? Rails.env
2+
require "rubocop/rake_task"
3+
RuboCop::RakeTask.new
4+
5+
task(:default).clear
6+
7+
desc "JS Linting"
8+
task :js_lint do
9+
sh "cd client && bin/lint"
10+
end
11+
12+
task default: [:spec, :rubocop]
13+
end

0 commit comments

Comments
 (0)