lib/hoboken/templates/rubocop.yml.tt in hoboken-0.9.0 vs lib/hoboken/templates/rubocop.yml.tt in hoboken-0.10.0
- old
+ new
@@ -1,29 +1,49 @@
require:
+ - rubocop-performance
- rubocop-rake
<% if rspec? -%>
- rubocop-rspec
<% end -%>
+<% if sequel? -%>
+ - rubocop-sequel
+<% end -%>
AllCops:
Exclude:
- - 'bin/*'
- 'tmp/*'
- 'vendor/bundle/**/*'
NewCops: enable
TargetRubyVersion: <%= RUBY_VERSION %>
+Layout/LineLength:
+ Max: 90
+
Layout/SpaceAroundEqualsInParameterDefault:
EnforcedStyle: no_space
+<% if rspec? -%>
+Metrics/BlockLength:
+ IgnoredMethods:
+ - describe
+ - context
+ - it
+ - RSpec.configure
+<% end -%>
+
Metrics/ClassLength:
Max: 150
Metrics/MethodLength:
Max: 15
+<% if rspec? -%>
-Layout/LineLength:
- Max: 90
+RSpec/DescribeClass:
+ Enabled: false
+
+RSpec/MultipleDescribes:
+ Enabled: false
+<% end -%>
Style/BlockDelimiters:
EnforcedStyle: braces_for_chaining
Style/YodaCondition: