Skip to content

Commit

Permalink
Merge pull request #1118 from kmuto/rubocop1004
Browse files Browse the repository at this point in the history
RuboCop 0.59.2に対する更新
  • Loading branch information
kmuto authored Oct 15, 2018
2 parents 9d74ecf + 8915951 commit 1849917
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,9 @@ Layout/DotPosition:
Layout/EmptyLines:
Enabled: true

Layout/EmptyLineAfterGuardClause:
Enabled: false

Layout/EmptyLinesAroundAccessModifier:
Enabled: true

Expand Down Expand Up @@ -442,6 +445,9 @@ Naming/AccessorMethodName:
#Style/BinaryOperatorParameterName:
# Enabled: true

Naming/FileName:
Enabled: false

Naming/HeredocDelimiterNaming:
Enabled: false

Expand Down
2 changes: 1 addition & 1 deletion lib/review/compiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,7 @@ def parse_args(str, _name = nil)
while word = scanner.scan(/(\[\]|\[.*?[^\\]\])/)
w2 = word[1..-2].gsub(/\\(.)/) do
ch = $1
(ch == ']' or ch == '\\') ? ch : '\\' + ch
[']', '\\'].include?(ch) ? ch : '\\' + ch
end
words << w2
end
Expand Down

0 comments on commit 1849917

Please sign in to comment.