.rubocop.yml in jabber_admin-1.0.5 vs .rubocop.yml in jabber_admin-1.1.0
- old
+ new
@@ -1,21 +1,39 @@
-require: rubocop-rspec
+require:
+ - rubocop-rspec
+ - rubocop-rails
-Documentation:
+Rails:
Enabled: true
+Style/Documentation:
+ Enabled: true
+
AllCops:
+ NewCops: enable
+ SuggestExtensions: false
DisplayCopNames: true
TargetRubyVersion: 2.5
+ TargetRailsVersion: 5.2
+ Exclude:
+ - bin/**/*
+ - vendor/**/*
+ - config/**/*
+ - build/**/*
+ - gemfiles/**/*
Metrics/BlockLength:
Exclude:
- Rakefile
- spec/**/*.rb
- '**/*.rake'
- '*.gemspec'
+# MFA is not yet enabled for our gems yet.
+Gemspec/RequireMFA:
+ Enabled: false
+
# Document all the things.
Style/DocumentationMethod:
Enabled: true
RequireForNonPublicMethods: true
@@ -29,7 +47,7 @@
RSpec/NestedGroups:
Max: 4
# We stay at 80 characters per line.
# See: https://rubystyle.guide/#max-line-length
-Metrics/LineLength:
+Layout/LineLength:
Max: 80