1
1
# This configuration was generated by
2
2
# `rubocop --auto-gen-config`
3
- # on 2020-09-18 20:20:54 UTC using RuboCop version 0.91.0 .
3
+ # on 2022-01-25 23:45:43 UTC using RuboCop version 1.22.2 .
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
+ # Cop supports --auto-correct.
11
+ # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
12
+ # Include: **/*.gemfile, **/Gemfile, **/gems.rb
13
+ Bundler/OrderedGems :
14
+ Exclude :
15
+ - ' Gemfile'
16
+
9
17
# Offense count: 1
10
18
# Configuration parameters: Include.
11
19
# Include: **/*.gemspec
12
20
Gemspec/RequiredRubyVersion :
13
21
Exclude :
14
22
- ' sendgrid-ruby.gemspec'
15
23
16
- # Offense count: 22
24
+ # Offense count: 1
25
+ # Cop supports --auto-correct.
26
+ # Configuration parameters: EnforcedStyle.
27
+ # SupportedStyles: final_newline, final_blank_line
28
+ Layout/TrailingEmptyLines :
29
+ Exclude :
30
+ - ' Gemfile'
31
+
32
+ # Offense count: 24
17
33
Lint/UselessAssignment :
18
34
Exclude :
19
35
- ' examples/scopes/scopes.rb'
20
36
- ' spec/rack/sendgrid_webhook_verification_spec.rb'
21
37
22
- # Offense count: 8
23
- # Configuration parameters: IgnoredMethods.
38
+ # Offense count: 10
39
+ # Configuration parameters: IgnoredMethods, CountRepeatedAttributes .
24
40
Metrics/AbcSize :
25
- Max : 144
26
-
27
- # Offense count: 9
28
- # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
29
- # ExcludedMethods: refine
30
- Metrics/BlockLength :
31
- Max : 96
41
+ Max : 134
32
42
33
43
# Offense count: 3
34
44
# Configuration parameters: CountComments, CountAsOne.
35
45
Metrics/ClassLength :
36
- Max : 2006
37
- Exclude :
38
- - ' test/sendgrid/test_sendgrid-ruby.rb'
46
+ Max : 2018
39
47
40
- # Offense count: 41
41
- # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
48
+ # Offense count: 45
49
+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods .
42
50
Metrics/MethodLength :
43
51
Max : 141
44
52
45
- # Offense count: 2
46
- # Configuration parameters: CountKeywordArgs.
53
+ # Offense count: 4
54
+ # Configuration parameters: CountKeywordArgs, MaxOptionalParameters .
47
55
Metrics/ParameterLists :
48
56
Max : 7
49
57
@@ -76,15 +84,15 @@ Naming/PredicateName:
76
84
- ' examples/helpers/eventwebhook/example.rb'
77
85
78
86
# Offense count: 35
87
+ # Configuration parameters: AllowedConstants.
79
88
Style/Documentation :
80
89
Enabled : false
81
90
82
- # Offense count: 4
83
- # Configuration parameters: EnforcedStyle .
91
+ # Offense count: 3
92
+ # Configuration parameters: MaxUnannotatedPlaceholdersAllowed, IgnoredMethods .
84
93
# SupportedStyles: annotated, template, unannotated
85
94
Style/FormatStringToken :
86
- Exclude :
87
- - ' examples/emailactivity/emailactivity.rb'
95
+ EnforcedStyle : unannotated
88
96
89
97
# Offense count: 97
90
98
# Cop supports --auto-correct.
@@ -93,6 +101,14 @@ Style/FormatStringToken:
93
101
Style/FrozenStringLiteralComment :
94
102
Enabled : false
95
103
104
+ # Offense count: 1
105
+ # Cop supports --auto-correct.
106
+ # Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
107
+ # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
108
+ Style/HashSyntax :
109
+ Exclude :
110
+ - ' Gemfile'
111
+
96
112
# Offense count: 6
97
113
Style/MixinUsage :
98
114
Exclude :
@@ -103,9 +119,9 @@ Style/MixinUsage:
103
119
- ' test/sendgrid/helpers/mail/test_attachment.rb'
104
120
- ' test/sendgrid/helpers/mail/test_mail.rb'
105
121
106
- # Offense count: 55
122
+ # Offense count: 54
107
123
# Cop supports --auto-correct.
108
- # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
124
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
109
125
# URISchemes: http, https
110
126
Layout/LineLength :
111
- Max : 3211
127
+ Max : 381
0 commit comments