From c39c20d4a4e20a6b4e75fffdfb3499b082ec0c45 Mon Sep 17 00:00:00 2001 From: Benjamin Fleischer Date: Fri, 4 Sep 2015 02:32:16 -0500 Subject: [PATCH] Add no-op rubocop for rbx --- Rakefile | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Rakefile b/Rakefile index f7e16518..cc454b66 100644 --- a/Rakefile +++ b/Rakefile @@ -6,10 +6,19 @@ begin rescue LoadError else Rake::Task[:rubocop].clear if Rake::Task.task_defined?(:rubocop) - desc 'Execute rubocop' - RuboCop::RakeTask.new(:rubocop) do |task| - task.options = ['--rails', '--display-cop-names', '--display-style-guide'] - task.fail_on_error = true + if !defined?(::Rubinius) + Rake::Task[:rubocop].clear if Rake::Task.task_defined?(:rubocop) + desc 'Execute rubocop' + RuboCop::RakeTask.new(:rubocop) do |task| + task.options = ['--rails', '--display-cop-names', '--display-style-guide'] + task.fail_on_error = true + end + else + desc 'No-op rubocop to avoid rbx segfault' + task :rubocop do + puts 'Skipping rubocop on rbx due to segfault' + puts 'https://github.com/rubinius/rubinius/issues/3499' + end end end