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

DotPosition buggy with trailing dots #822

Closed
jaymzh opened this issue Feb 19, 2014 · 1 comment
Closed

DotPosition buggy with trailing dots #822

jaymzh opened this issue Feb 19, 2014 · 1 comment

Comments

@jaymzh
Copy link

jaymzh commented Feb 19, 2014

In 0.18.1, if you have code like:

foo = File.new(
  "/some/file/that/is/really/long", 'r').
  readlines.map { |x| (x !~ /\/\.svn/ && x) || nil }.
  compact.join("\n")

Rubocop will complain about readlines.map and compact.join claiming they should be on the previous line. But... they shouldn't, this is proper trailing dot syntax.

@bbatsov
Copy link
Collaborator

bbatsov commented Feb 26, 2014

I'll have a look at that.

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

No branches or pull requests

2 participants