forked from restforce/restforce
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop_todo.yml
164 lines (147 loc) · 5.63 KB
/
.rubocop_todo.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2019-10-09 21:39:40 +0100 using RuboCop version 0.75.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 17
# Cop supports --auto-correct.
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
# SupportedHashRocketStyles: key, separator, table
# SupportedColonStyles: key, separator, table
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
Layout/HashAlignment:
Exclude:
- 'lib/restforce/middleware/logger.rb'
- 'restforce.gemspec'
- 'spec/integration/abstract_client_spec.rb'
- 'spec/unit/config_spec.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_braces
Layout/FirstHashElementIndentation:
Exclude:
- 'lib/restforce/concerns/connection.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment.
Layout/SpaceAroundOperators:
Exclude:
- 'lib/restforce.rb'
# Offense count: 8
# Cop supports --auto-correct.
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
Lint/UnusedBlockArgument:
Exclude:
- 'lib/restforce/concerns/api.rb'
- 'lib/restforce/concerns/batch_api.rb'
- 'lib/restforce/middleware/multipart.rb'
- 'spec/unit/config_spec.rb'
# Offense count: 9
Metrics/AbcSize:
Max: 38
# Offense count: 1
Metrics/CyclomaticComplexity:
Max: 8
# Offense count: 1
Metrics/PerceivedComplexity:
Max: 9
# Offense count: 5
# Configuration parameters: EnforcedStyleForLeadingUnderscores.
# SupportedStylesForLeadingUnderscores: disallowed, required, optional
Naming/MemoizedInstanceVariableName:
Exclude:
- 'lib/restforce/concerns/picklists.rb'
- 'lib/restforce/concerns/streaming.rb'
# Offense count: 2
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
# NamePrefix: is_, has_, have_
# NamePrefixBlacklist: is_, has_, have_
# NameWhitelist: is_a?
# MethodDefinitionMacros: define_method, define_singleton_method
Naming/PredicateName:
Exclude:
- 'spec/**/*'
- 'lib/restforce/collection.rb'
- 'lib/restforce/middleware/multipart.rb'
# Offense count: 12
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods, AllowBracesOnProceduralOneLiners.
# SupportedStyles: line_count_based, semantic, braces_for_chaining, always_braces
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
# FunctionalMethods: let, let!, subject, watch
# IgnoredMethods: lambda, proc, it
Style/BlockDelimiters:
Exclude:
- 'lib/restforce/concerns/batch_api.rb'
- 'spec/support/event_machine.rb'
- 'spec/support/middleware.rb'
- 'spec/unit/concerns/base_spec.rb'
- 'spec/unit/concerns/batch_api_spec.rb'
- 'spec/unit/concerns/caching_spec.rb'
- 'spec/unit/concerns/streaming_spec.rb'
- 'spec/unit/middleware/authentication_spec.rb'
- 'spec/unit/middleware/mashify_spec.rb'
# Offense count: 12
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, EnforcedStyle.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
Exclude:
- 'lib/restforce/middleware/authentication.rb'
- 'lib/restforce/middleware/authentication/password.rb'
- 'lib/restforce/middleware/authentication/token.rb'
- 'lib/restforce/middleware/authorization.rb'
- 'lib/restforce/middleware/caching.rb'
- 'lib/restforce/middleware/custom_headers.rb'
- 'lib/restforce/middleware/gzip.rb'
- 'lib/restforce/middleware/instance_url.rb'
- 'lib/restforce/middleware/logger.rb'
- 'lib/restforce/middleware/mashify.rb'
- 'lib/restforce/middleware/multipart.rb'
- 'lib/restforce/middleware/raise_error.rb'
# Offense count: 36
Style/Documentation:
Enabled: false
# Offense count: 3
Style/DoubleNegation:
Exclude:
- 'lib/restforce/concerns/picklists.rb'
- 'lib/restforce/middleware/instance_url.rb'
# Offense count: 1
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Exclude:
- 'lib/restforce/middleware/authentication.rb'
# Offense count: 25
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: line_count_dependent, lambda, literal
Style/Lambda:
Exclude:
- 'lib/restforce/config.rb'
- 'spec/integration/abstract_client_spec.rb'
- 'spec/unit/concerns/base_spec.rb'
- 'spec/unit/concerns/streaming_spec.rb'
- 'spec/unit/middleware/authentication_spec.rb'
- 'spec/unit/middleware/authorization_spec.rb'
- 'spec/unit/middleware/custom_headers_spec.rb'
- 'spec/unit/middleware/gzip_spec.rb'
- 'spec/unit/middleware/instance_url_spec.rb'
- 'spec/unit/middleware/logger_spec.rb'
- 'spec/unit/sobject_spec.rb'
# Offense count: 5
# Cop supports --auto-correct.
Style/RedundantSelf:
Exclude:
- 'lib/restforce/mash.rb'
- 'lib/restforce/sobject.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, Whitelist.
# Whitelist: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym
Style/TrivialAccessors:
Exclude:
- 'lib/restforce/middleware.rb'