11# This configuration was generated by
2- # `rubocop --auto-gen-config`
3- # on 2023-08-17 21:34:59 UTC using RuboCop version 1.50.2 .
2+ # `rubocop --auto-gen-config --no-auto-gen-timestamp `
3+ # using RuboCop version 1.85.1 .
44# The point is for the user to remove these configuration records
55# one by one as the offenses are removed from the code base.
66# Note that changes in the inspected code, or installation of new
77# versions of RuboCop, may require this file to be generated again.
88
9- # Offense count: 1
10- # Configuration parameters: IgnoreLiteralBranches, IgnoreConstantBranches.
11- Lint/DuplicateBranch :
12- Exclude :
13- - ' lib/puppet/provider/mongodb.rb'
14-
159# Offense count: 1
1610# Configuration parameters: AllowComments, AllowEmptyLambdas.
1711Lint/EmptyBlock :
1812 Exclude :
1913 - ' spec/unit/puppet/provider/mongodb_shard/mongodb_spec.rb'
2014
2115# Offense count: 1
16+ Lint/LiteralAssignmentInCondition :
17+ Exclude :
18+ - ' lib/puppet/type/mongodb_replset.rb'
19+
20+ # Offense count: 1
21+ # Configuration parameters: AllowRBSInlineAnnotation.
2222Lint/SelfAssignment :
2323 Exclude :
2424 - ' lib/puppet/provider/mongodb_replset/mongo.rb'
2525
2626# Offense count: 7
2727# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
2828# SupportedStyles: snake_case, normalcase, non_integer
29- # AllowedIdentifiers: capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
29+ # AllowedIdentifiers: TLS1_1, TLS1_2, capture3, iso8601, rfc1123_date, rfc822, rfc2822, rfc3339, x86_64
3030Naming/VariableNumber :
3131 Exclude :
3232 - ' lib/puppet/provider/mongodb_user/mongodb.rb'
@@ -38,9 +38,26 @@ RSpec/BeEq:
3838 Exclude :
3939 - ' spec/functions/mongodb_password_spec.rb'
4040
41- # Offense count: 1
42- RSpec/MultipleExpectations :
43- Max : 2
41+ # Offense count: 11
42+ RSpec/LeakyLocalVariable :
43+ Exclude :
44+ - ' spec/acceptance/database_spec.rb'
45+ - ' spec/acceptance/mongos_spec.rb'
46+ - ' spec/acceptance/replset_spec.rb'
47+ - ' spec/acceptance/server_spec.rb'
48+ - ' spec/acceptance/sharding_spec.rb'
49+ - ' spec/acceptance/user_spec.rb'
50+ - ' spec/classes/mongos_spec.rb'
51+ - ' spec/unit/puppet/provider/mongodb_replset/mongodb_spec.rb'
52+ - ' spec/unit/puppet/provider/mongodb_spec.rb'
53+
54+ # Offense count: 10
55+ # This cop supports unsafe autocorrection (--autocorrect-all).
56+ RSpec/ReceiveMessages :
57+ Exclude :
58+ - ' spec/unit/puppet/provider/mongodb_database/mongodb_spec.rb'
59+ - ' spec/unit/puppet/provider/mongodb_replset/mongodb_spec.rb'
60+ - ' spec/unit/puppet/provider/mongodb_user/mongodb_spec.rb'
4461
4562# Offense count: 6
4663RSpec/RepeatedExampleGroupBody :
@@ -55,33 +72,18 @@ RSpec/VariableName:
5572 Exclude :
5673 - ' spec/classes/server_spec.rb'
5774
58- # Offense count: 44
75+ # Offense count: 1
5976# This cop supports unsafe autocorrection (--autocorrect-all).
6077# Configuration parameters: EnforcedStyle.
6178# SupportedStyles: always, always_true, never
6279Style/FrozenStringLiteralComment :
63- Enabled : false
64-
65- # Offense count: 1
66- # This cop supports unsafe autocorrection (--autocorrect-all).
67- # Configuration parameters: AllowedReceivers.
68- # AllowedReceivers: Thread.current
69- Style/HashEachMethods :
7080 Exclude :
71- - ' lib/puppet/provider/mongodb_database/mongodb.rb'
81+ - ' **/*.arb'
82+ - ' spec/unit/puppet/util/mongodb_output_spec.rb'
7283
73- # Offense count: 1
84+ # Offense count: 14
7485# This cop supports unsafe autocorrection (--autocorrect-all).
75- # Configuration parameters: EnforcedStyle, AllowedMethods, AllowedPatterns.
76- # SupportedStyles: predicate, comparison
77- Style/NumericPredicate :
86+ Style/HashFetchChain :
7887 Exclude :
79- - ' spec/**/* '
88+ - ' lib/facter/is_master.rb '
8089 - ' lib/puppet/provider/mongodb.rb'
81-
82- # Offense count: 1
83- # This cop supports unsafe autocorrection (--autocorrect-all).
84- # Configuration parameters: Mode.
85- Style/StringConcatenation :
86- Exclude :
87- - ' lib/puppet/provider/mongodb_database/mongodb.rb'
0 commit comments