|
1 | 1 | # This configuration was generated by |
2 | 2 | # `rubocop --auto-gen-config` |
3 | | -# on 2020-04-07 15:05:45 -0400 using RuboCop version 0.81.0. |
| 3 | +# on 2025-12-31 23:55:39 UTC using RuboCop version 1.81.1. |
4 | 4 | # The point is for the user to remove these configuration records |
5 | 5 | # one by one as the offenses are removed from the code base. |
6 | 6 | # Note that changes in the inspected code, or installation of new |
7 | 7 | # versions of RuboCop, may require this file to be generated again. |
8 | 8 |
|
9 | | -# Offense count: 3 |
10 | | -# Configuration parameters: Include. |
11 | | -# Include: **/*.gemfile, **/Gemfile, **/gems.rb |
12 | | -Bundler/DuplicatedGem: |
| 9 | +# Offense count: 1 |
| 10 | +# Configuration parameters: Severity. |
| 11 | +Gemspec/RequiredRubyVersion: |
13 | 12 | Exclude: |
14 | | - - 'Gemfile' |
| 13 | + - 'mongoid-locker.gemspec' |
15 | 14 |
|
16 | | -# Offense count: 4 |
17 | | -# Configuration parameters: IgnoredMethods. |
18 | | -Metrics/AbcSize: |
19 | | - Max: 24 |
| 15 | +# Offense count: 6 |
| 16 | +# Configuration parameters: AllowedMethods. |
| 17 | +# AllowedMethods: enums |
| 18 | +Lint/ConstantDefinitionInBlock: |
| 19 | + Exclude: |
| 20 | + - 'spec/support/configurations_shared_context.rb' |
| 21 | + - 'spec/test_examples_spec.rb' |
20 | 22 |
|
21 | | -# Offense count: 11 |
22 | | -# Configuration parameters: CountComments, ExcludedMethods. |
23 | | -# ExcludedMethods: refine |
24 | | -Metrics/BlockLength: |
25 | | - Max: 290 |
| 23 | +# Offense count: 8 |
| 24 | +# Configuration parameters: AllowComments, AllowEmptyLambdas. |
| 25 | +Lint/EmptyBlock: |
| 26 | + Exclude: |
| 27 | + - 'spec/support/locker_is_included_shared_examples.rb' |
26 | 28 |
|
27 | | -# Offense count: 5 |
28 | | -# Configuration parameters: CountComments, ExcludedMethods. |
| 29 | +# Offense count: 3 |
| 30 | +# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes. |
| 31 | +Metrics/AbcSize: |
| 32 | + Max: 27 |
| 33 | + |
| 34 | +# Offense count: 6 |
| 35 | +# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. |
29 | 36 | Metrics/MethodLength: |
30 | 37 | Max: 31 |
31 | 38 |
|
32 | 39 | # Offense count: 1 |
33 | | -# Configuration parameters: CountComments. |
| 40 | +# Configuration parameters: CountComments, CountAsOne. |
34 | 41 | Metrics/ModuleLength: |
35 | | - Max: 105 |
| 42 | + Max: 109 |
36 | 43 |
|
37 | 44 | # Offense count: 2 |
38 | | -# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms. |
| 45 | +# Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms. |
| 46 | +# CheckDefinitionPathHierarchyRoots: lib, spec, test, src |
39 | 47 | # 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 |
40 | 48 | Naming/FileName: |
41 | 49 | Exclude: |
| 50 | + - 'Rakefile.rb' |
42 | 51 | - 'lib/mongoid-locker.rb' |
43 | 52 | - 'spec/mongoid-locker_spec.rb' |
44 | 53 |
|
45 | 54 | # Offense count: 1 |
46 | | -# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros. |
47 | | -# NamePrefix: is_, has_, have_ |
48 | | -# ForbiddenPrefixes: is_, has_, have_ |
| 55 | +# Configuration parameters: Mode, AllowedMethods, AllowedPatterns, AllowBangMethods, WaywardPredicates. |
| 56 | +# AllowedMethods: call |
| 57 | +# WaywardPredicates: nonzero? |
| 58 | +Naming/PredicateMethod: |
| 59 | + Exclude: |
| 60 | + - 'lib/mongoid/locker/wrapper.rb' |
| 61 | + |
| 62 | +# Offense count: 1 |
| 63 | +# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros, UseSorbetSigs. |
| 64 | +# NamePrefix: is_, has_, have_, does_ |
| 65 | +# ForbiddenPrefixes: is_, has_, have_, does_ |
49 | 66 | # AllowedMethods: is_a? |
50 | 67 | # MethodDefinitionMacros: define_method, define_singleton_method |
51 | | -Naming/PredicateName: |
| 68 | +Naming/PredicatePrefix: |
52 | 69 | Exclude: |
53 | 70 | - 'spec/**/*' |
54 | 71 | - 'lib/mongoid/locker.rb' |
55 | 72 |
|
56 | 73 | # Offense count: 2 |
57 | 74 | RSpec/BeforeAfterAll: |
58 | 75 | Exclude: |
59 | | - - 'spec/spec_helper.rb' |
60 | | - - 'spec/rails_helper.rb' |
61 | | - - 'spec/support/**/*.rb' |
| 76 | + - '**/spec/spec_helper.rb' |
| 77 | + - '**/spec/rails_helper.rb' |
| 78 | + - '**/spec/support/**/*.rb' |
62 | 79 | - 'spec/test_examples_spec.rb' |
63 | 80 |
|
64 | 81 | # Offense count: 1 |
| 82 | +# Configuration parameters: IgnoredMetadata. |
65 | 83 | RSpec/DescribeClass: |
66 | 84 | Exclude: |
| 85 | + - '**/spec/features/**/*' |
| 86 | + - '**/spec/requests/**/*' |
| 87 | + - '**/spec/routing/**/*' |
| 88 | + - '**/spec/system/**/*' |
| 89 | + - '**/spec/views/**/*' |
67 | 90 | - 'spec/test_examples_spec.rb' |
68 | 91 |
|
69 | | -# Offense count: 8 |
70 | | -# Configuration parameters: Max. |
| 92 | +# Offense count: 9 |
| 93 | +# Configuration parameters: CountAsOne. |
71 | 94 | RSpec/ExampleLength: |
| 95 | + Max: 11 |
| 96 | + |
| 97 | +# Offense count: 5 |
| 98 | +# This cop supports unsafe autocorrection (--autocorrect-all). |
| 99 | +RSpec/IncludeExamples: |
72 | 100 | Exclude: |
| 101 | + - 'spec/mongoid-locker_spec.rb' |
73 | 102 | - 'spec/support/locker_is_included_shared_examples.rb' |
74 | | - - 'spec/test_examples_spec.rb' |
| 103 | + - 'spec/support/locker_methods_shared_examples.rb' |
75 | 104 |
|
76 | | -# Offense count: 1 |
77 | | -# Configuration parameters: CustomTransform, IgnoreMethods. |
78 | | -RSpec/FilePath: |
| 105 | +# Offense count: 2 |
| 106 | +RSpec/LetSetup: |
79 | 107 | Exclude: |
80 | | - - 'spec/mongoid-locker_spec.rb' |
| 108 | + - 'spec/support/populate_database_shared_context.rb' |
81 | 109 |
|
82 | 110 | # Offense count: 12 |
83 | 111 | # Configuration parameters: . |
84 | 112 | # SupportedStyles: have_received, receive |
85 | 113 | RSpec/MessageSpies: |
86 | 114 | EnforcedStyle: receive |
87 | 115 |
|
| 116 | +# Offense count: 12 |
| 117 | +# Configuration parameters: AllowSubject. |
| 118 | +RSpec/MultipleMemoizedHelpers: |
| 119 | + Max: 10 |
| 120 | + |
| 121 | +# Offense count: 2 |
| 122 | +# Configuration parameters: AllowedPatterns. |
| 123 | +# AllowedPatterns: ^expect_, ^assert_ |
| 124 | +RSpec/NoExpectationExample: |
| 125 | + Exclude: |
| 126 | + - 'spec/support/locker_is_included_shared_examples.rb' |
| 127 | + |
| 128 | +# Offense count: 1 |
| 129 | +RSpec/RemoveConst: |
| 130 | + Exclude: |
| 131 | + - 'spec/support/locker_helpers.rb' |
| 132 | + |
| 133 | +# Offense count: 1 |
| 134 | +# Configuration parameters: CustomTransform, IgnoreMethods, IgnoreMetadata, InflectorPath, EnforcedInflector. |
| 135 | +# SupportedInflectors: default, active_support |
| 136 | +RSpec/SpecFilePathFormat: |
| 137 | + Exclude: |
| 138 | + - '**/spec/routing/**/*' |
| 139 | + - 'spec/mongoid-locker_spec.rb' |
| 140 | + |
88 | 141 | # Offense count: 1 |
89 | 142 | RSpec/SubjectStub: |
90 | 143 | Exclude: |
91 | 144 | - 'spec/support/delegated_methods_shared_examples.rb' |
92 | 145 |
|
| 146 | +# Offense count: 1 |
| 147 | +# This cop supports unsafe autocorrection (--autocorrect-all). |
| 148 | +Style/CollectionQuerying: |
| 149 | + Exclude: |
| 150 | + - 'lib/mongoid/locker.rb' |
| 151 | + |
93 | 152 | # Offense count: 2 |
| 153 | +# Configuration parameters: AllowedConstants. |
94 | 154 | Style/Documentation: |
95 | 155 | Exclude: |
96 | 156 | - 'spec/**/*' |
97 | 157 | - 'test/**/*' |
98 | 158 | - 'lib/mongoid/locker.rb' |
99 | 159 |
|
| 160 | +# Offense count: 4 |
| 161 | +# This cop supports unsafe autocorrection (--autocorrect-all). |
| 162 | +# Configuration parameters: AllowSplatArgument. |
| 163 | +Style/HashConversion: |
| 164 | + Exclude: |
| 165 | + - 'spec/support/locker_is_included_shared_examples.rb' |
| 166 | + - 'spec/support/locker_methods_shared_examples.rb' |
| 167 | + |
100 | 168 | # Offense count: 2 |
101 | | -# Cop supports --auto-correct. |
102 | | -# Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods. |
| 169 | +# This cop supports unsafe autocorrection (--autocorrect-all). |
| 170 | +# Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns. |
103 | 171 | # SupportedStyles: predicate, comparison |
104 | 172 | Style/NumericPredicate: |
105 | 173 | Exclude: |
106 | 174 | - 'spec/**/*' |
107 | 175 | - 'lib/mongoid/locker.rb' |
108 | 176 |
|
109 | | -# Offense count: 35 |
110 | | -# Cop supports --auto-correct. |
111 | | -# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns. |
| 177 | +# Offense count: 7 |
| 178 | +# This cop supports safe autocorrection (--autocorrect). |
| 179 | +# Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings. |
112 | 180 | # URISchemes: http, https |
113 | 181 | Layout/LineLength: |
114 | 182 | Max: 250 |
0 commit comments