11# This configuration was generated by
22# `rubocop --auto-gen-config`
3- # on 2025-05-28 16:52:10 UTC using RuboCop version 1.75.8 .
3+ # on 2026-06-10 02:07:47 UTC using RuboCop version 1.86.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: 8
9+ # Offense count: 10
1010# Configuration parameters: AllowedMethods.
1111# AllowedMethods: enums
1212Lint/ConstantDefinitionInBlock :
@@ -24,42 +24,44 @@ Lint/EmptyBlock:
2424 - ' spec/grape-swagger/entity/attribute_parser_spec.rb'
2525
2626# Offense count: 1
27+ # Configuration parameters: AllowComments.
2728Lint/EmptyClass :
2829 Exclude :
2930 - ' spec/support/shared_contexts/custom_type_parser.rb'
3031
3132# Offense count: 2
3233# This cop supports unsafe autocorrection (--autocorrect-all).
33- # Configuration parameters: AllowedMethods.
34+ # Configuration parameters: AllowedMethods, InferNonNilReceiver, AdditionalNilMethods .
3435# AllowedMethods: instance_of?, kind_of?, is_a?, eql?, respond_to?, equal?
36+ # AdditionalNilMethods: present?, blank?, try, try!
3537Lint/RedundantSafeNavigation :
3638 Exclude :
3739 - ' lib/grape-swagger/entity/attribute_parser.rb'
3840
3941# Offense count: 4
4042# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
4143Metrics/AbcSize :
42- Max : 34
44+ Max : 25
4345
4446# Offense count: 2
4547# Configuration parameters: CountComments, CountAsOne.
4648Metrics/ClassLength :
47- Max : 145
49+ Max : 142
4850
49- # Offense count: 2
51+ # Offense count: 1
5052# Configuration parameters: AllowedMethods, AllowedPatterns.
5153Metrics/CyclomaticComplexity :
52- Max : 11
54+ Max : 9
5355
5456# Offense count: 7
5557# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
5658Metrics/MethodLength :
5759 Max : 28
5860
59- # Offense count: 2
61+ # Offense count: 1
6062# Configuration parameters: AllowedMethods, AllowedPatterns.
6163Metrics/PerceivedComplexity :
62- Max : 13
64+ Max : 9
6365
6466# Offense count: 5
6567# Configuration parameters: EnforcedStyle, CheckMethodNames, CheckSymbols, AllowedIdentifiers, AllowedPatterns.
@@ -86,28 +88,31 @@ RSpec/ContextWording:
8688 - ' spec/support/shared_contexts/inheritance_api.rb'
8789 - ' spec/support/shared_contexts/this_api.rb'
8890
89- # Offense count: 3
91+ # Offense count: 5
9092# Configuration parameters: IgnoredMetadata.
9193RSpec/DescribeClass :
9294 Exclude :
9395 - ' **/spec/features/**/*'
94- - ' **/spec/issues/**/*'
9596 - ' **/spec/requests/**/*'
9697 - ' **/spec/routing/**/*'
9798 - ' **/spec/system/**/*'
9899 - ' **/spec/views/**/*'
100+ - ' spec/grape-swagger/entities/additional_properties_spec.rb'
99101 - ' spec/grape-swagger/entities/response_model_spec.rb'
102+ - ' spec/issues/44_desc_in_entity_type_spec.rb'
103+ - ' spec/issues/962_polymorphic_entity_with_custom_documentation_spec.rb'
100104
101- # Offense count: 4
105+ # Offense count: 6
102106# Configuration parameters: CountAsOne.
103107RSpec/ExampleLength :
104- Max : 225
108+ Max : 221
105109
106- # Offense count: 30
110+ # Offense count: 33
107111RSpec/LeakyConstantDeclaration :
108112 Exclude :
109113 - ' spec/grape-swagger/entities/response_model_spec.rb'
110- - ' **/spec/issues/**/*'
114+ - ' spec/issues/44_desc_in_entity_type_spec.rb'
115+ - ' spec/issues/962_polymorphic_entity_with_custom_documentation_spec.rb'
111116 - ' spec/support/shared_contexts/inheritance_api.rb'
112117 - ' spec/support/shared_contexts/this_api.rb'
113118
@@ -116,7 +121,7 @@ RSpec/MultipleDescribes:
116121 Exclude :
117122 - ' spec/grape-swagger/entities/response_model_spec.rb'
118123
119- # Offense count: 5
124+ # Offense count: 6
120125RSpec/MultipleExpectations :
121126 Max : 11
122127
@@ -127,14 +132,13 @@ RSpec/NamedSubject:
127132 Exclude :
128133 - ' spec/grape-swagger/entities/response_model_spec.rb'
129134
130- # Offense count: 46
135+ # Offense count: 57
131136# Configuration parameters: AllowedGroups.
132137RSpec/NestedGroups :
133138 Max : 5
134139
135140# Offense count: 3
136- # Configuration parameters: Include, CustomTransform, IgnoreMethods, IgnoreMetadata.
137- # Include: **/*_spec.rb
141+ # Configuration parameters: CustomTransform, IgnoreMethods, IgnoreMetadata.
138142RSpec/SpecFilePathFormat :
139143 Exclude :
140144 - ' **/spec/routing/**/*'
@@ -157,3 +161,9 @@ Style/OpenStructUse:
157161 Exclude :
158162 - ' spec/grape-swagger/entities/response_model_spec.rb'
159163 - ' spec/support/shared_contexts/this_api.rb'
164+
165+ # Offense count: 1
166+ # This cop supports unsafe autocorrection (--autocorrect-all).
167+ Style/ReduceToHash :
168+ Exclude :
169+ - ' lib/grape-swagger/entity/parser.rb'
0 commit comments