We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This is happening in version 0.33.0 and master
0.33.0
master
Sample test
it 'exception' do source = ['{:a => "a",', ' :b => [nil, 2.5]}'] inspect_source(cop, source) end
Exception
RuboCop::Cop::Style::ExtraSpacing when AllowForAlignment is true exception Failure/Error: inspect_source(cop, source) NoMethodError: undefined method `[]' for 2.5:Float # ./lib/rubocop/cop/style/extra_spacing.rb:107:in `aligned_same_character?' # ./lib/rubocop/cop/style/extra_spacing.rb:82:in `block in aligned_with?' # ./lib/rubocop/cop/style/extra_spacing.rb:76:in `downto' # ./lib/rubocop/cop/style/extra_spacing.rb:76:in `each' # ./lib/rubocop/cop/style/extra_spacing.rb:76:in `aligned_with?' # ./lib/rubocop/cop/style/extra_spacing.rb:52:in `aligned_with_something?' # ./lib/rubocop/cop/style/extra_spacing.rb:28:in `block in investigate' # ./lib/rubocop/cop/style/extra_spacing.rb:24:in `each' # ./lib/rubocop/cop/style/extra_spacing.rb:24:in `each_cons' # ./lib/rubocop/cop/style/extra_spacing.rb:24:in `investigate'
The text was updated successfully, but these errors were encountered:
77d21c3
Merge pull request #2122 from jonas054/2113_extra_spacing_crash
a4ca6e5
[Fix #2113] Handle non-string tokens in ExtraSpacing
add Style/ExtraSpacing to .rubocop_todo.yml until rubocop fixes false…
0c18f47
… positives see: rubocop/rubocop#2109 rubocop/rubocop#2113
jonas054
No branches or pull requests
This is happening in version
0.33.0
andmaster
Sample test
Exception
The text was updated successfully, but these errors were encountered: