Skip to content

Commit

Permalink
Configure Style/RegexpLiteral cop.
Browse files Browse the repository at this point in the history
Allow inner slashes when using // for regex literals. Allow the
Guardfile to use a syntax that is more consistent with its own style.
  • Loading branch information
hainesr committed Sep 22, 2019
1 parent 2cbbf8d commit bb685bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ Lint/UselessComparison:
Exclude:
- 'test/entry_test.rb'

Style/RegexpLiteral:
AllowInnerSlashes: true
Exclude:
- 'Guardfile'

# Turn this cop off for these files as it fires for objects without
# an empty? method.
Style/ZeroLengthPredicate:
Expand Down
10 changes: 0 additions & 10 deletions .rubocop_rubyzip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,16 +206,6 @@ Style/NumericPredicate:
- 'test/file_split_test.rb'
- 'test/test_helper.rb'

# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
# SupportedStyles: slashes, percent_r, mixed
Style/RegexpLiteral:
Exclude:
- 'lib/zip/filesystem.rb'
- 'test/entry_test.rb'
- 'test/settings_test.rb'

# Offense count: 15
# Cop supports --auto-correct.
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, Whitelist.
Expand Down

0 comments on commit bb685bb

Please sign in to comment.