.rubocop.yml in reek-3.11 vs .rubocop.yml in reek-4.0.0.pre1
- old
+ new
@@ -1,10 +1,11 @@
AllCops:
Exclude:
- 'spec/samples/**/*'
- 'tmp/**/*'
- 'vendor/**/*'
+ TargetRubyVersion: 2.1
# FIXME: Make the class shorter
Metrics/ClassLength:
Exclude:
- lib/reek/context_builder.rb
@@ -37,9 +38,16 @@
EnforcedStyle: trailing
# Require empty lines between defs, except for one-line defs
Style/EmptyLineBetweenDefs:
AllowAdjacentOneLineDefs: true
+
+# Require comment for files in lib and bin
+Style/FrozenStringLiteralComment:
+ Include:
+ - 'bin/*'
+ - 'lib/**/*'
+ EnforcedStyle: always
# Allow multiline block chains
Style/MultilineBlockChain:
Enabled: false