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
Rubocop cop Style/IndentationWidth is failing with private_class_method syntax.
The class to test:
class Foo private_class_method def self.bar 'bar' end end
Error trace:
An error occurred while Style/IndentationWidth cop was inspecting /Users/mseppae/foo.rb. undefined method `line' for nil:NilClass /Users/mseppae/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/parser-2.2.2.6/lib/parser/source/map.rb:98:in `line' /Users/mseppae/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/rubocop-0.32.1/lib/rubocop/cop/style/indentation_width.rb:225:in `indentation_to_check?' /Users/mseppae/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/rubocop-0.32.1/lib/rubocop/cop/style/indentation_width.rb:201:in `check_indentation' /Users/mseppae/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/rubocop-0.32.1/lib/rubocop/cop/style/indentation_width.rb:97:in `on_send' (eval):5:in `block (2 levels) in on_send'
System information:
Mention the following information in the issue report: 0.32.1 (using Parser 2.2.2.6, running on ruby 2.2.0 x86_64-darwin14)
The text was updated successfully, but these errors were encountered:
65b38ff
Merge pull request #2053 from unmanbearpig/2045-fix
7889ad1
[Fix #2045] Fix error on class method definition with modifier
No branches or pull requests
Rubocop cop Style/IndentationWidth is failing with private_class_method syntax.
The class to test:
Error trace:
System information:
The text was updated successfully, but these errors were encountered: