File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change 6
6
rescue LoadError
7
7
else
8
8
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
13
22
end
14
23
end
15
24
You can’t perform that action at this time.
0 commit comments