1
1
# This configuration was generated by
2
2
# `rubocop --auto-gen-config`
3
- # on 2023-03-14 14:36:06 +0900 using RuboCop version 0.82 .0.
3
+ # on 2023-04-13 07:32:16 UTC using RuboCop version 1.49 .0.
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: 1
10
+ # This cop supports safe autocorrection (--autocorrect).
11
+ # Configuration parameters: Severity, Include.
12
+ # Include: **/*.gemspec
13
+ Gemspec/RequireMFA :
14
+ Exclude :
15
+ - ' rspec-openapi.gemspec'
16
+
9
17
# Offense count: 10
10
- # Configuration parameters: IgnoredMethods .
18
+ # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes .
11
19
Metrics/AbcSize :
12
- Max : 68
20
+ Max : 41
13
21
14
- # Offense count: 2
15
- # Configuration parameters: CountComments, ExcludedMethods .
16
- # ExcludedMethods : refine
22
+ # Offense count: 3
23
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns .
24
+ # AllowedMethods : refine
17
25
Metrics/BlockLength :
18
26
Max : 72
19
27
20
- # Offense count: 3
21
- # Configuration parameters: IgnoredMethods .
28
+ # Offense count: 5
29
+ # Configuration parameters: AllowedMethods, AllowedPatterns .
22
30
Metrics/CyclomaticComplexity :
23
- Max : 14
31
+ Max : 12
24
32
25
- # Offense count: 14
26
- # Configuration parameters: CountComments, ExcludedMethods .
33
+ # Offense count: 13
34
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns .
27
35
Metrics/MethodLength :
28
- Max : 53
36
+ Max : 38
29
37
30
38
# Offense count: 2
31
- # Configuration parameters: IgnoredMethods .
39
+ # Configuration parameters: AllowedMethods, AllowedPatterns .
32
40
Metrics/PerceivedComplexity :
33
- Max : 16
41
+ Max : 12
34
42
35
43
# Offense count: 1
36
44
# Configuration parameters: ForbiddenDelimiters.
37
- # ForbiddenDelimiters: (?-mix :(^|\s)(EO[A-Z]{1}|END)(\s|$))
45
+ # ForbiddenDelimiters: (?i-mx :(^|\s)(EO[A-Z]{1}|END)(\s|$))
38
46
Naming/HeredocDelimiterNaming :
39
47
Exclude :
40
48
- ' lib/rspec/openapi/result_recorder.rb'
41
49
42
50
# Offense count: 2
43
- # Cop supports --auto-correct.
44
- # Configuration parameters: AutoCorrect, EnforcedStyle.
51
+ # This cop supports unsafe autocorrection (--autocorrect-all).
52
+ Security/IoMethods :
53
+ Exclude :
54
+ - ' spec/integration_tests/rails_test.rb'
55
+ - ' spec/requests/rails_spec.rb'
56
+
57
+ # Offense count: 2
58
+ # This cop supports unsafe autocorrection (--autocorrect-all).
59
+ # Configuration parameters: EnforcedStyle.
45
60
# SupportedStyles: nested, compact
46
61
Style/ClassAndModuleChildren :
47
62
Exclude :
48
63
- ' lib/rspec/openapi.rb'
49
64
- ' lib/rspec/openapi/schema_file.rb'
50
65
51
- # Offense count: 4
52
- # Cop supports --auto-correct.
53
- Style/ColonMethodCall :
54
- Exclude :
55
- - ' lib/rspec/openapi/components_updater.rb'
56
- - ' lib/rspec/openapi/schema_cleaner.rb'
57
-
58
- # Offense count: 1
59
- # Cop supports --auto-correct.
60
- # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
61
- # SupportedStyles: assign_to_condition, assign_inside_condition
62
- Style/ConditionalAssignment :
63
- Exclude :
64
- - ' lib/rspec/openapi/schema_builder.rb'
65
-
66
66
# Offense count: 5
67
+ # Configuration parameters: AllowedConstants.
67
68
Style/Documentation :
68
69
Exclude :
69
70
- ' spec/**/*'
@@ -74,92 +75,7 @@ Style/Documentation:
74
75
- ' lib/rspec/openapi/schema_file.rb'
75
76
76
77
# Offense count: 1
77
- # Cop supports --auto-correct.
78
- Style/ExpandPathArguments :
79
- Exclude :
80
- - ' rspec-openapi.gemspec'
81
-
82
- # Offense count: 63
83
- # Cop supports --auto-correct.
84
- # Configuration parameters: EnforcedStyle.
85
- # SupportedStyles: always, always_true, never
86
- Style/FrozenStringLiteralComment :
87
- Enabled : false
88
-
89
- # Offense count: 2
90
- # Configuration parameters: MinBodyLength.
91
- Style/GuardClause :
92
- Exclude :
93
- - ' lib/rspec/openapi/record_builder.rb'
94
- - ' spec/rails/app/controllers/tables_controller.rb'
95
-
96
- # Offense count: 5
97
- # Cop supports --auto-correct.
98
- Style/IfUnlessModifier :
99
- Exclude :
100
- - ' lib/rspec/openapi/schema_cleaner.rb'
101
- - ' lib/rspec/openapi/schema_file.rb'
102
- - ' lib/rspec/openapi/schema_merger.rb'
103
- - ' spec/rails/app/controllers/tables_controller.rb'
104
-
105
- # Offense count: 1
106
- # Cop supports --auto-correct.
107
- # Configuration parameters: EnforcedStyle.
108
- # SupportedStyles: line_count_dependent, lambda, literal
109
- Style/Lambda :
78
+ # This cop supports unsafe autocorrection (--autocorrect-all).
79
+ Style/SelectByRegexp :
110
80
Exclude :
111
81
- ' spec/requests/roda_spec.rb'
112
-
113
- # Offense count: 1
114
- # Cop supports --auto-correct.
115
- # Configuration parameters: IncludeSemanticChanges.
116
- Style/NonNilCheck :
117
- Exclude :
118
- - ' lib/rspec/openapi/hash_helper.rb'
119
-
120
- # Offense count: 2
121
- # Cop supports --auto-correct.
122
- Style/StderrPuts :
123
- Exclude :
124
- - ' spec/rails/bin/yarn'
125
-
126
- # Offense count: 31
127
- # Cop supports --auto-correct.
128
- # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
129
- # SupportedStyles: single_quotes, double_quotes
130
- Style/StringLiterals :
131
- Exclude :
132
- - ' Gemfile'
133
- - ' Rakefile'
134
- - ' bin/console'
135
- - ' lib/rspec/openapi/record_builder.rb'
136
- - ' lib/rspec/openapi/schema_merger.rb'
137
- - ' spec/rails/bin/yarn'
138
- - ' spec/rails/config/application.rb'
139
- - ' spec/rails/config/environments/production.rb'
140
- - ' spec/rails/config/puma.rb'
141
- - ' spec/rails/config/spring.rb'
142
- - ' spec/requests/rails_spec.rb'
143
- - ' spec/rspec/rails_spec.rb'
144
-
145
- # Offense count: 2
146
- # Cop supports --auto-correct.
147
- # Configuration parameters: .
148
- # SupportedStyles: percent, brackets
149
- Style/SymbolArray :
150
- EnforcedStyle : percent
151
- MinSize : 6
152
-
153
- # Offense count: 2
154
- # Cop supports --auto-correct.
155
- Style/UnpackFirst :
156
- Exclude :
157
- - ' spec/rails/app/controllers/images_controller.rb'
158
- - ' spec/requests/rails_spec.rb'
159
-
160
- # Offense count: 103
161
- # Cop supports --auto-correct.
162
- # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
163
- # URISchemes: http, https
164
- Layout/LineLength :
165
- Max : 213
0 commit comments