Skip to content

Commit c39c20d

Browse files
committed
Add no-op rubocop for rbx
1 parent 1d15de4 commit c39c20d

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

Rakefile

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,19 @@ begin
66
rescue LoadError
77
else
88
Rake::Task[:rubocop].clear if Rake::Task.task_defined?(:rubocop)
9-
desc 'Execute rubocop'
10-
RuboCop::RakeTask.new(:rubocop) do |task|
11-
task.options = ['--rails', '--display-cop-names', '--display-style-guide']
12-
task.fail_on_error = true
9+
if !defined?(::Rubinius)
10+
Rake::Task[:rubocop].clear if Rake::Task.task_defined?(:rubocop)
11+
desc 'Execute rubocop'
12+
RuboCop::RakeTask.new(:rubocop) do |task|
13+
task.options = ['--rails', '--display-cop-names', '--display-style-guide']
14+
task.fail_on_error = true
15+
end
16+
else
17+
desc 'No-op rubocop to avoid rbx segfault'
18+
task :rubocop do
19+
puts 'Skipping rubocop on rbx due to segfault'
20+
puts 'https://github.com/rubinius/rubinius/issues/3499'
21+
end
1322
end
1423
end
1524

0 commit comments

Comments
 (0)