Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Commit 5490260

Browse files
committed
Only run rubocop on recent MRI
1 parent 0ae3af9 commit 5490260

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Gemfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,9 @@ if RUBY_VERSION < '2.0.0' && !!(RbConfig::CONFIG['host_os'] =~ /cygwin|mswin|min
2424
gem 'ffi', '< 1.9.15' # allow ffi to be installed on older rubies on windows
2525
end
2626

27-
if RUBY_VERSION >= '2.0'
28-
gem 'rubocop', "~> 0.52.1"
27+
# No need to run rubocop on earlier versions
28+
if RUBY_VERSION >= '2.4' && RUBY_ENGINE == 'ruby'
29+
gem "rubocop", "~> 0.52.1"
2930
end
3031

3132
eval File.read('Gemfile-custom') if File.exist?('Gemfile-custom')

0 commit comments

Comments
 (0)