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

AccessModifierIndentation autocorrect can't make up its mind #781

Closed
tamird opened this issue Jan 31, 2014 · 2 comments
Closed

AccessModifierIndentation autocorrect can't make up its mind #781

tamird opened this issue Jan 31, 2014 · 2 comments
Assignees
Labels

Comments

@tamird
Copy link
Contributor

tamird commented Jan 31, 2014

Here's a test case:

# encoding: utf-8

# demonstrates rubocop bugs
class Hello
  def foo
    'hi'
  end

  def bar
    Module.new do

     private

      def hi
        'bye'
      end
    end
  end
end

Running that with autocorrect will never result in a pass. @jonas054

@jonas054
Copy link
Collaborator

jonas054 commented Feb 1, 2014

Interesting. I'll take a look.

@ghost ghost assigned jonas054 Feb 1, 2014
bbatsov added a commit that referenced this issue Feb 1, 2014
[Fix #781] Fix double reporting in AccessModifierIndentation
@tamird
Copy link
Contributor Author

tamird commented Feb 1, 2014

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants