.rubocop_todo.yml in mongoid-locker-1.0.0 vs .rubocop_todo.yml in mongoid-locker-1.0.1
- old
+ new
@@ -1,14 +1,14 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
-# on 2018-09-01 16:46:40 +0300 using RuboCop version 0.58.2.
+# on 2018-11-23 00:20:08 +0300 using RuboCop version 0.60.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
-# Offense count: 6
+# Offense count: 4
# Configuration parameters: Include.
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
Bundler/DuplicatedGem:
Exclude:
- 'Gemfile'
@@ -19,17 +19,25 @@
# Offense count: 5
# Configuration parameters: CountComments, ExcludedMethods.
# ExcludedMethods: refine
Metrics/BlockLength:
- Max: 493
+ Max: 505
-# Offense count: 2
-# Configuration parameters: CountComments.
+# Offense count: 3
+# Configuration parameters: CountComments, ExcludedMethods.
Metrics/MethodLength:
Max: 25
+# Offense count: 2
+# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
+# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
+Naming/FileName:
+ Exclude:
+ - 'lib/mongoid-locker.rb'
+ - 'spec/mongoid-locker_spec.rb'
+
# Offense count: 1
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
# NamePrefix: is_, has_, have_
# NamePrefixBlacklist: is_, has_, have_
# NameWhitelist: is_a?
@@ -37,10 +45,41 @@
Naming/PredicateName:
Exclude:
- 'spec/**/*'
- 'lib/mongoid/locker.rb'
+# Offense count: 37
+# Cop supports --auto-correct.
+# Configuration parameters: SkipBlocks, EnforcedStyle.
+# SupportedStyles: described_class, explicit
+RSpec/DescribedClass:
+ Exclude:
+ - 'spec/mongoid-locker_spec.rb'
+
+# Offense count: 19
+# Configuration parameters: Max.
+RSpec/ExampleLength:
+ Exclude:
+ - 'spec/mongoid-locker_spec.rb'
+
+# Offense count: 1
+# Configuration parameters: CustomTransform, IgnoreMethods.
+RSpec/FilePath:
+ Exclude:
+ - 'spec/mongoid-locker_spec.rb'
+
+# Offense count: 6
+# Configuration parameters: .
+# SupportedStyles: have_received, receive
+RSpec/MessageSpies:
+ EnforcedStyle: receive
+
+# Offense count: 16
+# Configuration parameters: AggregateFailuresByDefault.
+RSpec/MultipleExpectations:
+ Max: 5
+
# Offense count: 2
Style/Documentation:
Exclude:
- 'spec/**/*'
- 'test/**/*'
@@ -49,30 +88,10 @@
# Offense count: 2
Style/DoubleNegation:
Exclude:
- 'lib/mongoid/locker.rb'
-# Offense count: 1
-# Configuration parameters: MinBodyLength.
-Style/GuardClause:
- Exclude:
- - 'lib/mongoid/locker.rb'
-
-# Offense count: 1
-# Cop supports --auto-correct.
-# Configuration parameters: .
-# SupportedStyles: compact, exploded
-Style/RaiseArgs:
- EnforcedStyle: compact
-
-# Offense count: 1
-# Cop supports --auto-correct.
-# Configuration parameters: MinSize.
-# SupportedStyles: percent, brackets
-Style/SymbolArray:
- EnforcedStyle: brackets
-
-# Offense count: 63
+# Offense count: 55
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Metrics/LineLength:
- Max: 184
+ Max: 180