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 false negative for Rails/LinkToBlank when _blank is a symbol #6821

Merged
merged 1 commit into from
Mar 7, 2019

Conversation

Intrepidd
Copy link

when using target: :_blank, the Rails/LinkToBlank cop does not register an offence when it should.

@Intrepidd Intrepidd force-pushed the link-to-blank-sym-fix branch 2 times, most recently from d9351f8 to 7b26e6a Compare March 7, 2019 13:20
CHANGELOG.md Outdated
@@ -4,6 +4,7 @@

### Bug fixes

* [#6821](https://github.com/rubocop-hq/rubocop/pull/6821): Fix false positive for Rails/LinkToBlank when _blank is a symbol. ([@Intrepidd][])
Copy link
Member

Choose a reason for hiding this comment

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

What is not able to find a problem is "false negative" (not "false positive") :-)

Copy link
Author

Choose a reason for hiding this comment

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

Ok I thought as a false positive as in "your code is ok" when it is not.

I'll update my PR right away

Thanks !

@Intrepidd Intrepidd changed the title Fix false positive for Rails/LinkToBlank when _blank is a symbol Fix false negative for Rails/LinkToBlank when _blank is a symbol Mar 7, 2019
CHANGELOG.md Outdated
@@ -4,6 +4,7 @@

### Bug fixes

* [#6821](https://github.com/rubocop-hq/rubocop/pull/6821): Fix false negative for Rails/LinkToBlank when _blank is a symbol. ([@Intrepidd][])
Copy link
Member

Choose a reason for hiding this comment

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

This is a nitpick. It seems that _ intents italic start if _blank is not enclosed in backticks.

-* [#6821](https://github.com/rubocop-hq/rubocop/pull/6821): Fix false negative for Rails/LinkToBlank when _blank is a symbol. ([@Intrepidd][])
+* [#6821](https://github.com/rubocop-hq/rubocop/pull/6821): Fix false negative for Rails/LinkToBlank when `_blank` is a symbol. ([@Intrepidd][])

Copy link
Author

Choose a reason for hiding this comment

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

Thanks, fixed

@koic koic merged commit 4b9f6a7 into rubocop:master Mar 7, 2019
@koic
Copy link
Member

koic commented Mar 7, 2019

Thanks!

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