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

Lint/AssignmentInCondition not triggered for property access #2960

Closed
ptarjan opened this issue Mar 15, 2016 · 1 comment
Closed

Lint/AssignmentInCondition not triggered for property access #2960

ptarjan opened this issue Mar 15, 2016 · 1 comment

Comments

@ptarjan
Copy link
Contributor

ptarjan commented Mar 15, 2016

Expected behavior

if foo.bar = baz
  91
end

Should trigger the Lint/AssignmentInCondition

Actual behavior

No error

Steps to reproduce the problem

$ cat a.rb
if foo.bar = baz
  91
end
$ rubocop a.rb
Inspecting 1 file
.

1 file inspected, no offenses detected

RuboCop version

$ rubocop -V
0.38.0 (using Parser 2.3.0.6, running on ruby 2.1.2 x86_64-darwin15.0)
@alexdowad
Copy link
Contributor

I've got a fix.

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