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 #3366] Make Style/MutableConstant cop aware of splat assignments #3367

Merged
merged 1 commit into from Aug 5, 2016

Conversation

Drenmi
Copy link
Collaborator

@Drenmi Drenmi commented Aug 4, 2016

This cop would generate false positives on code like:

FOO = *(1...10)

and:

BAR = *[1...10].freeze

This change fixes that.

@bbatsov
Copy link
Collaborator

bbatsov commented Aug 5, 2016

Has to be rebased.

…signments

This cop would generate false positives on code like:

```
FOO = *(1...10)
```

and:

```
BAR = *[1...10].freeze
```

This change fixes that.
@Drenmi Drenmi force-pushed the bugfix/mutable-constant-cop branch from eeb6fe7 to dddbd53 Compare August 5, 2016 12:17
@Drenmi
Copy link
Collaborator Author

Drenmi commented Aug 5, 2016

@bbatsov: Rebased.

@bbatsov bbatsov merged commit f281575 into rubocop:master Aug 5, 2016
@Drenmi Drenmi deleted the bugfix/mutable-constant-cop branch September 16, 2016 16:26
Neodelf pushed a commit to Neodelf/rubocop that referenced this pull request Oct 15, 2016
…signments (rubocop#3367)

This cop would generate false positives on code like:

```
FOO = *(1...10)
```

and:

```
BAR = *[1...10].freeze
```

This change fixes 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

Successfully merging this pull request may close these issues.

None yet

2 participants