Skip to content

Commit

Permalink
Work around JRuby bug
Browse files Browse the repository at this point in the history
  • Loading branch information
buehmann authored and bbatsov committed Oct 23, 2019
1 parent 611ed0d commit 418973b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rubocop/config_validator.rb
Expand Up @@ -131,7 +131,9 @@ def validate_parameter_names(valid_cop_names)
next if COMMON_PARAMS.include?(param) || default_config.key?(param)

supported_params = default_config.keys - INTERNAL_PARAMS
warn Rainbow(<<~MESSAGE).yellow
# FIXME: Remove .to_s, which works around a JRuby bug:
# https://github.com/jruby/jruby/issues/5935
warn Rainbow(<<~MESSAGE).yellow.to_s
Warning: #{name} does not support #{param} parameter.
Supported parameters are:
Expand Down

0 comments on commit 418973b

Please sign in to comment.