1
1
# This configuration was generated by
2
2
# `rubocop --auto-gen-config`
3
- # on 2019-10-09 14:16:04 +0200 using RuboCop version 0.68.1 .
3
+ # on 2023-01-24 11:24:49 UTC using RuboCop version 1.44.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: 11
10
- Metrics/AbcSize :
11
- Max : 45
12
-
13
9
# Offense count: 2
14
- # Configuration parameters: CountComments.
10
+ # Configuration parameters: CountComments, CountAsOne .
15
11
Metrics/ClassLength :
16
- Max : 250
12
+ Max : 203
17
13
18
14
# Offense count: 7
15
+ # Configuration parameters: AllowedMethods, AllowedPatterns, IgnoredMethods.
19
16
Metrics/CyclomaticComplexity :
20
17
Max : 13
21
18
22
19
# Offense count: 17
23
- # Configuration parameters: CountComments, ExcludedMethods.
20
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, AllowedMethods, AllowedPatterns, IgnoredMethods .
24
21
Metrics/MethodLength :
25
- Max : 40
22
+ Max : 34
26
23
27
- # Offense count: 2
28
- # Configuration parameters: CountComments.
24
+ # Offense count: 1
25
+ # Configuration parameters: CountComments, CountAsOne .
29
26
Metrics/ModuleLength :
30
- Max : 147
27
+ Max : 104
31
28
32
- # Offense count: 6
33
- Metrics/PerceivedComplexity :
34
- Max : 13
35
-
36
- # Offense count: 2
29
+ # Offense count: 1
37
30
Naming/AccessorMethodName :
38
31
Exclude :
39
32
- ' lib/wicked_pdf/middleware.rb'
40
- - ' lib/wicked_pdf/pdf_helper.rb'
41
33
42
34
# Offense count: 1
35
+ # This cop supports safe autocorrection (--autocorrect).
36
+ # Configuration parameters: AllowOnConstant, AllowOnSelfClass.
43
37
Style/CaseEquality :
44
38
Exclude :
45
39
- ' lib/wicked_pdf/wicked_pdf_helper.rb'
@@ -49,66 +43,63 @@ Style/ClassVars:
49
43
Exclude :
50
44
- ' lib/wicked_pdf.rb'
51
45
52
- # Offense count: 10
46
+ # Offense count: 13
47
+ # Configuration parameters: AllowedConstants.
53
48
Style/Documentation :
54
49
Exclude :
55
50
- ' spec/**/*'
56
51
- ' test/**/*'
57
52
- ' generators/wicked_pdf/wicked_pdf_generator.rb'
58
53
- ' lib/wicked_pdf.rb'
54
+ - ' lib/wicked_pdf/binary.rb'
59
55
- ' lib/wicked_pdf/middleware.rb'
56
+ - ' lib/wicked_pdf/option_parser.rb'
60
57
- ' lib/wicked_pdf/pdf_helper.rb'
61
58
- ' lib/wicked_pdf/progress.rb'
62
59
- ' lib/wicked_pdf/railtie.rb'
63
- - ' lib/wicked_pdf/binary.rb'
64
- - ' lib/wicked_pdf/option_parser.rb'
65
60
- ' lib/wicked_pdf/tempfile.rb'
66
61
- ' lib/wicked_pdf/wicked_pdf_helper.rb'
67
62
- ' lib/wicked_pdf/wicked_pdf_helper/assets.rb'
68
63
69
64
# Offense count: 2
70
- # Cop supports --auto-correct .
65
+ # This cop supports safe autocorrection (--autocorrect) .
71
66
Style/ExpandPathArguments :
72
67
Exclude :
73
68
- ' test/test_helper.rb'
74
69
- ' wicked_pdf.gemspec'
75
70
76
- # Offense count: 8
77
- # Cop supports --auto-correct .
78
- # Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
71
+ # Offense count: 4
72
+ # This cop supports safe autocorrection (--autocorrect) .
73
+ # Configuration parameters: EnforcedStyle, EnforcedShorthandSyntax, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
79
74
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
75
+ # SupportedShorthandSyntax: always, never, either, consistent
80
76
Style/HashSyntax :
81
77
Exclude :
82
- - ' gemfiles/4.0.gemfile'
83
- - ' gemfiles/4.1.gemfile'
84
- - ' gemfiles/4.2.gemfile'
85
78
- ' gemfiles/5.0.gemfile'
86
79
- ' gemfiles/5.1.gemfile'
87
80
- ' gemfiles/5.2.gemfile'
88
81
- ' gemfiles/6.0.gemfile'
89
- - ' gemfiles/rails_edge.gemfile'
90
82
91
83
# Offense count: 2
92
- # Cop supports --auto-correct .
84
+ # This cop supports unsafe autocorrection (--autocorrect-all) .
93
85
# Configuration parameters: EnforcedStyle.
94
86
# SupportedStyles: literals, strict
95
87
Style/MutableConstant :
96
88
Exclude :
97
89
- ' lib/wicked_pdf/wicked_pdf_helper/assets.rb'
98
90
99
- # Offense count: 6
100
- # Cop supports --auto-correct .
91
+ # Offense count: 5
92
+ # This cop supports safe autocorrection (--autocorrect) .
101
93
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
102
94
# SupportedStyles: slashes, percent_r, mixed
103
95
Style/RegexpLiteral :
104
96
Exclude :
105
97
- ' lib/wicked_pdf/middleware.rb'
106
98
- ' lib/wicked_pdf/wicked_pdf_helper/assets.rb'
107
- - ' test/unit/wicked_pdf_test.rb'
108
99
109
- # Offense count: 111
110
- # Cop supports --auto-correct .
111
- # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
100
+ # Offense count: 18
101
+ # This cop supports safe autocorrection (--autocorrect) .
102
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns , IgnoredPatterns.
112
103
# URISchemes: http, https
113
- Metrics /LineLength :
104
+ Layout /LineLength :
114
105
Max : 563
0 commit comments