Skip to content

Commit

Permalink
[Fix #9345] Make Style/AsciiComments allow copyright notice
Browse files Browse the repository at this point in the history
Fixes #9345.

This PR makes `Style/AsciiComments` allow copyright notice "©" by default.
  • Loading branch information
koic authored and bbatsov committed Jan 18, 2021
1 parent c570f55 commit 292cba4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* [#9345](https://github.com/rubocop-hq/rubocop/issues/9345): Make `Style/AsciiComments` allow copyright notice by default. ([@koic][])
3 changes: 2 additions & 1 deletion config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2704,7 +2704,8 @@ Style/AsciiComments:
Enabled: true
VersionAdded: '0.9'
VersionChanged: '0.52'
AllowedChars: []
AllowedChars:
- ©

Style/Attr:
Description: 'Checks for uses of Module#attr.'
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/style/ascii_comments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module Cop
module Style
# This cop checks for non-ascii (non-English) characters
# in comments. You could set an array of allowed non-ascii chars in
# AllowedChars attribute (empty by default).
# `AllowedChars` attribute (copyright notice "©" by default).
#
# @example
# # bad
Expand Down

0 comments on commit 292cba4

Please sign in to comment.