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

FileName should accept multiple extensions #913

Merged
merged 2 commits into from
Mar 22, 2014
Merged

FileName should accept multiple extensions #913

merged 2 commits into from
Mar 22, 2014

Conversation

tamird
Copy link
Contributor

@tamird tamird commented Mar 21, 2014

It's common for rails view specs to be named foo.html.erb_spec.rb. Currently, those files will fail this cop.

@bbatsov
Copy link
Collaborator

bbatsov commented Mar 22, 2014

👍 That's a reasonable change. Please, update the changelog.

@tamird
Copy link
Contributor Author

tamird commented Mar 22, 2014

Done!

@@ -12,6 +12,7 @@

### Bugs fixed

* [#913](https://github.com/bbatsov/rubocop/issues/913): `FileName` accepts multiple extensions. ([@tamird][])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't call this a bugfix - it's rather a change in the behaviour of the cop. (meaning - put it in the "changes" section). You'll also have to add your nickname to the bottom of the changelog.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, I've made the change.

bbatsov added a commit that referenced this pull request Mar 22, 2014
`FileName` should accept multiple extensions
@bbatsov bbatsov merged commit d24a1eb into rubocop:master Mar 22, 2014
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.

2 participants