Skip to content
New issue

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

[Fix #6349] MemoizedInstanceVariableName allows underscored method name #6587

Commits on Dec 19, 2018

  1. [Fix rubocop#6349] MemoizedInstanceVariableName allows underscored me…

    …thod name
    
    The following code should be valid:
    
        def _foo
          @_foo ||= :foo
        end
    
    But before this change it complains that the variable name should be @foo.
    
    The rules need to take into account what the method name is,
    and the configured style.
    matthewrudy committed Dec 19, 2018
    Configuration menu
    Copy the full SHA
    2804f06 View commit details
    Browse the repository at this point in the history