.rubocop.yml in fizzy-api-0.1.4 vs .rubocop.yml in fizzy-api-0.1.5
- old
+ new
@@ -1,8 +1,9 @@
inherit_from: rubocop-todo.yml
AllCops:
+ TargetRubyVersion: 2.3
Exclude:
- 'fizzy_api.gemspec'
- 'tmp/**/*'
- 'vendor/**/*'
- 'bin/*'
@@ -13,15 +14,30 @@
# Limit lines to 80 characters.
LineLength:
Max: 120
+Metrics/BlockLength:
+ Exclude:
+ - 'spec/**/*'
+
+Style/MixinUsage:
+ Exclude:
+ - 'spec/spec_helper.rb'
+
# Avoid methods longer than 10 lines of code
MethodLength:
CountComments: false # count full line comments?
Max: 20
+# Describe specs fail this test
+# Namespaces in rake tasks do too
+Metrics/BlockLength:
+ Exclude:
+ - 'spec/**/*'
+ - '**/*.rake'
+
################################################################## DISABLED COPS
# These cops are disabled because we think they are a Bad Idea. If you add one
# here, make sure to add a comment describing what the cop does, and why this
# is a bad idea.
@@ -31,9 +47,9 @@
# less descriptive names?
Documentation:
Enabled: false
# Gems typically have one file named the-gem-name.rb which can be autorequired by bundler
-Style/FileName:
+Naming/FileName:
Exclude:
- lib/fizzy-api.rb