rubocop.yml in rubocop-shopify-2.13.0 vs rubocop.yml in rubocop-shopify-2.14.0
- old
+ new
@@ -193,11 +193,11 @@
Lint/NestedPercentLiteral:
Enabled: false
Lint/NoReturnInBeginEndBlocks:
- Enabled: false
+ Enabled: true
Lint/NonAtomicFileOperation:
Enabled: false
Lint/NonDeterministicRequireOrder:
@@ -370,12 +370,13 @@
- main
- primary
- leader
AllowedRegex:
- !ruby/regexp '/master[_\s\.]key/' # Rails master key
- - 'blob/master/'
- - 'origin/master'
+ - !ruby/regexp /\w*:\/\/\S+/ # URLs (e.g. https://github.com/org/repo/blob/master/README.md)
+ - !ruby/regexp '/(?:blob|tree)/master/' # e.g. github.com/org/repo/blob/master/README.md, without https://
+ - !ruby/regexp '/origin[ \/]master/' # Legacy default git branch name
- 'mastercard'
- 'webmaster'
Naming/MemoizedInstanceVariableName:
Enabled: false
@@ -510,10 +511,13 @@
Enabled: false
Style/EvalWithLocation:
Enabled: false
+Style/ExactRegexpMatch:
+ Enabled: true
+
Style/ExpandPathArguments:
Enabled: false
Style/ExponentialNotation:
Enabled: false
@@ -753,9 +757,12 @@
Style/RegexpLiteral:
EnforcedStyle: mixed
Style/RescueStandardError:
Enabled: false
+
+Style/ReturnNil:
+ Enabled: true
Style/SelectByRegexp:
Enabled: false
Style/SingleArgumentDig: