Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix #12717] Re-use definition of directive comments from Style/Comme…
…ntedKeyword To make sure we don't have a different, more strict definition of what constitutes a rubocop:disable or rubocop:todo comment in the cop compared to elsewhere in the code, use the definition implemented in DirectiveComment. We also get the rubocop:enable comments included in this definition, but it's not a problem if we allow those comments in the cop, as they don't make any sense as end-of-line comments and are unlikely to occur.
- Loading branch information
Showing
3 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* [#12717](https://github.com/rubocop/rubocop/issues/12717): Fix regexp for inline disable comments in `Style/CommentedKeyword`. ([@jonas054][]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters