.rubocop_todo.yml in mongoid-locker-1.0.1 vs .rubocop_todo.yml in mongoid-locker-2.0.0

- old
+ new

@@ -1,35 +1,40 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2018-11-23 00:20:08 +0300 using RuboCop version 0.60.0. +# on 2019-10-23 10:17:29 -0400 using RuboCop version 0.75.1. # 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: 4 +# Offense count: 3 # Configuration parameters: Include. # Include: **/*.gemfile, **/Gemfile, **/gems.rb Bundler/DuplicatedGem: Exclude: - 'Gemfile' -# Offense count: 2 +# Offense count: 4 Metrics/AbcSize: - Max: 20 + Max: 21 -# Offense count: 5 +# Offense count: 10 # Configuration parameters: CountComments, ExcludedMethods. # ExcludedMethods: refine Metrics/BlockLength: - Max: 505 + Max: 292 -# Offense count: 3 +# Offense count: 5 # Configuration parameters: CountComments, ExcludedMethods. Metrics/MethodLength: - Max: 25 + Max: 31 +# Offense count: 1 +# Configuration parameters: CountComments. +Metrics/ModuleLength: + Max: 104 + # 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: @@ -45,53 +50,64 @@ 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: +# Offense count: 12 +# Configuration parameters: Prefixes. +# Prefixes: when, with, without +RSpec/ContextWording: Exclude: - - 'spec/mongoid-locker_spec.rb' + - 'spec/support/configurations_shared_context.rb' + - 'spec/support/populate_database_shared_context.rb' + - 'spec/support/reset_shared_context.rb' -# Offense count: 19 +# Offense count: 7 # Configuration parameters: Max. RSpec/ExampleLength: Exclude: - - 'spec/mongoid-locker_spec.rb' + - 'spec/support/locker_is_included_shared_examples.rb' # Offense count: 1 # Configuration parameters: CustomTransform, IgnoreMethods. RSpec/FilePath: Exclude: - 'spec/mongoid-locker_spec.rb' -# Offense count: 6 +# Offense count: 5 +RSpec/LeakyConstantDeclaration: + Exclude: + - 'spec/support/configurations_shared_context.rb' + +# Offense count: 12 # Configuration parameters: . # SupportedStyles: have_received, receive RSpec/MessageSpies: EnforcedStyle: receive -# Offense count: 16 +# Offense count: 11 # Configuration parameters: AggregateFailuresByDefault. RSpec/MultipleExpectations: - Max: 5 + Max: 3 # Offense count: 2 Style/Documentation: Exclude: - 'spec/**/*' - 'test/**/*' - 'lib/mongoid/locker.rb' # Offense count: 2 -Style/DoubleNegation: +# Cop supports --auto-correct. +# Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods. +# SupportedStyles: predicate, comparison +Style/NumericPredicate: Exclude: + - 'spec/**/*' - 'lib/mongoid/locker.rb' -# Offense count: 55 -# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. +# Offense count: 33 +# Cop supports --auto-correct. +# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. # URISchemes: http, https Metrics/LineLength: - Max: 180 + Max: 250