Skip to content

Commit 750490a

Browse files
committed
Do not run rubocop on Rails 4.
1 parent 5e864a2 commit 750490a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Rakefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ RuboCop::RakeTask.new('qa:code') do |task|
2424
end
2525

2626
desc('Run CI QA tasks')
27-
task(qa: ['qa:docs', 'qa:code'])
27+
if ENV['RAILS_VERSION'].to_s.include?('4')
28+
task(qa: ['qa:docs'])
29+
else
30+
task(qa: ['qa:docs', 'qa:code'])
31+
end
2832

2933
RSpec::Core::RakeTask.new(spec: :qa)
3034
task(default: :spec)

0 commit comments

Comments
 (0)