11# This configuration was generated by
22# `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 .
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+ # Cop supports --auto-correct.
11+ # Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
12+ # Include: **/*.gemfile, **/Gemfile, **/gems.rb
13+ Bundler/OrderedGems :
14+ Exclude :
15+ - ' Gemfile'
16+
917# Offense count: 1
1018# Configuration parameters: Include.
1119# Include: **/*.gemspec
1220Gemspec/RequiredRubyVersion :
1321 Exclude :
1422 - ' sendgrid-ruby.gemspec'
1523
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
1733Lint/UselessAssignment :
1834 Exclude :
1935 - ' examples/scopes/scopes.rb'
2036 - ' spec/rack/sendgrid_webhook_verification_spec.rb'
2137
22- # Offense count: 8
23- # Configuration parameters: IgnoredMethods.
38+ # Offense count: 10
39+ # Configuration parameters: IgnoredMethods, CountRepeatedAttributes .
2440Metrics/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
3242
3343# Offense count: 3
3444# Configuration parameters: CountComments, CountAsOne.
3545Metrics/ClassLength :
36- Max : 2006
37- Exclude :
38- - ' test/sendgrid/test_sendgrid-ruby.rb'
46+ Max : 2018
3947
40- # Offense count: 41
41- # Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
48+ # Offense count: 45
49+ # Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods .
4250Metrics/MethodLength :
4351 Max : 141
4452
45- # Offense count: 2
46- # Configuration parameters: CountKeywordArgs.
53+ # Offense count: 4
54+ # Configuration parameters: CountKeywordArgs, MaxOptionalParameters .
4755Metrics/ParameterLists :
4856 Max : 7
4957
@@ -76,15 +84,15 @@ Naming/PredicateName:
7684 - ' examples/helpers/eventwebhook/example.rb'
7785
7886# Offense count: 35
87+ # Configuration parameters: AllowedConstants.
7988Style/Documentation :
8089 Enabled : false
8190
82- # Offense count: 4
83- # Configuration parameters: EnforcedStyle .
91+ # Offense count: 3
92+ # Configuration parameters: MaxUnannotatedPlaceholdersAllowed, IgnoredMethods .
8493# SupportedStyles: annotated, template, unannotated
8594Style/FormatStringToken :
86- Exclude :
87- - ' examples/emailactivity/emailactivity.rb'
95+ EnforcedStyle : unannotated
8896
8997# Offense count: 97
9098# Cop supports --auto-correct.
@@ -93,6 +101,14 @@ Style/FormatStringToken:
93101Style/FrozenStringLiteralComment :
94102 Enabled : false
95103
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+
96112# Offense count: 6
97113Style/MixinUsage :
98114 Exclude :
@@ -103,9 +119,9 @@ Style/MixinUsage:
103119 - ' test/sendgrid/helpers/mail/test_attachment.rb'
104120 - ' test/sendgrid/helpers/mail/test_mail.rb'
105121
106- # Offense count: 55
122+ # Offense count: 54
107123# Cop supports --auto-correct.
108- # Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
124+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
109125# URISchemes: http, https
110126Layout/LineLength :
111- Max : 3211
127+ Max : 381
0 commit comments