bugsnag 6.6.3 → 6.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rdoc_options +27 -0
- data/.rubocop.yml +2 -0
- data/.rubocop_todo.yml +672 -0
- data/.travis.yml +46 -11
- data/CHANGELOG.md +12 -0
- data/Gemfile +8 -0
- data/Rakefile +5 -4
- data/VERSION +1 -1
- data/lib/bugsnag.rb +19 -4
- data/lib/bugsnag/configuration.rb +20 -2
- data/lib/bugsnag/delivery.rb +4 -0
- data/lib/bugsnag/delivery/synchronous.rb +2 -0
- data/lib/bugsnag/delivery/thread_queue.rb +2 -0
- data/lib/bugsnag/helpers.rb +10 -0
- data/lib/bugsnag/integrations/mailman.rb +4 -0
- data/lib/bugsnag/integrations/rack.rb +4 -0
- data/lib/bugsnag/integrations/rake.rb +2 -0
- data/lib/bugsnag/integrations/resque.rb +6 -0
- data/lib/bugsnag/integrations/shoryuken.rb +2 -0
- data/lib/bugsnag/integrations/sidekiq.rb +2 -0
- data/lib/bugsnag/middleware/callbacks.rb +2 -0
- data/lib/bugsnag/middleware/classify_error.rb +2 -0
- data/lib/bugsnag/middleware/clearance_user.rb +2 -0
- data/lib/bugsnag/middleware/exception_meta_data.rb +14 -14
- data/lib/bugsnag/middleware/ignore_error_class.rb +3 -0
- data/lib/bugsnag/middleware/mailman.rb +2 -0
- data/lib/bugsnag/middleware/rack_request.rb +2 -0
- data/lib/bugsnag/middleware/rails3_request.rb +2 -0
- data/lib/bugsnag/middleware/rake.rb +2 -0
- data/lib/bugsnag/middleware/session_data.rb +2 -0
- data/lib/bugsnag/middleware/sidekiq.rb +2 -0
- data/lib/bugsnag/middleware/suggestion_data.rb +2 -0
- data/lib/bugsnag/middleware/warden_user.rb +2 -0
- data/lib/bugsnag/middleware_stack.rb +20 -2
- data/lib/bugsnag/report.rb +16 -3
- data/lib/bugsnag/session_tracker.rb +13 -1
- data/lib/bugsnag/stacktrace.rb +6 -2
- data/spec/middleware/exception_meta_data_spec.rb +104 -0
- data/spec/report_spec.rb +9 -1
- metadata +7 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4833943785d255e81284063ae7e3c6f9a751613
|
4
|
+
data.tar.gz: 56e345f1855da00e3a8ea239d721810dece1bc38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2bdb0d75b43d858e57679eb456131e699785ea3af5c1173ba20948b341812a20811a251c1923038fcb66f716abc564b3c2fc39af37798e302b37b2ecf21f492
|
7
|
+
data.tar.gz: bd75ebbabe899516b47e1d8126fe12491ef998076b4479f7adc6fdfb4d1b3ee40197588c0e3c6cf951ebb0fc2d588c68278f1b389892aace502b15894cc36246
|
data/.rdoc_options
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
--- !ruby/object:RDoc::Options
|
2
|
+
encoding: UTF-8
|
3
|
+
static_path: []
|
4
|
+
rdoc_include:
|
5
|
+
- "lib/**/*.rb"
|
6
|
+
- "README.md"
|
7
|
+
- "CONTRIBUTING.md"
|
8
|
+
- "CHANGELOG.md"
|
9
|
+
charset: UTF-8
|
10
|
+
exclude:
|
11
|
+
format: hanna
|
12
|
+
hyperlink_all: false
|
13
|
+
line_numbers: false
|
14
|
+
locale:
|
15
|
+
locale_dir: locale
|
16
|
+
locale_name:
|
17
|
+
main_page:
|
18
|
+
markup: markdown
|
19
|
+
output: rdoc
|
20
|
+
output_decoration: true
|
21
|
+
page_dir:
|
22
|
+
show_hash: false
|
23
|
+
tab_width: 8
|
24
|
+
template_stylesheets: []
|
25
|
+
title: bugsnag-ruby API Documentation
|
26
|
+
visibility: :protected
|
27
|
+
webcvs:
|
data/.rubocop.yml
ADDED
data/.rubocop_todo.yml
ADDED
@@ -0,0 +1,672 @@
|
|
1
|
+
# This configuration was generated by
|
2
|
+
# `rubocop --auto-gen-config`
|
3
|
+
# on 2018-02-06 11:17:57 +0000 using RuboCop version 0.52.1.
|
4
|
+
# The point is for the user to remove these configuration records
|
5
|
+
# one by one as the offenses are removed from the code base.
|
6
|
+
# Note that changes in the inspected code, or installation of new
|
7
|
+
# versions of RuboCop, may require this file to be generated again.
|
8
|
+
|
9
|
+
# Offense count: 4
|
10
|
+
# Cop supports --auto-correct.
|
11
|
+
# Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
|
12
|
+
# SupportedStyles: case, end
|
13
|
+
Layout/CaseIndentation:
|
14
|
+
Exclude:
|
15
|
+
- 'lib/bugsnag/cleaner.rb'
|
16
|
+
|
17
|
+
# Offense count: 3
|
18
|
+
# Cop supports --auto-correct.
|
19
|
+
Layout/EmptyLines:
|
20
|
+
Exclude:
|
21
|
+
- 'lib/bugsnag/helpers.rb'
|
22
|
+
- 'lib/bugsnag/integrations/mailman.rb'
|
23
|
+
- 'lib/bugsnag/stacktrace.rb'
|
24
|
+
|
25
|
+
# Offense count: 4
|
26
|
+
# Cop supports --auto-correct.
|
27
|
+
Layout/EmptyLinesAroundAccessModifier:
|
28
|
+
Exclude:
|
29
|
+
- 'lib/bugsnag/delivery.rb'
|
30
|
+
- 'lib/bugsnag/integrations/rails/controller_methods.rb'
|
31
|
+
- 'lib/bugsnag/middleware_stack.rb'
|
32
|
+
- 'lib/bugsnag/session_tracker.rb'
|
33
|
+
|
34
|
+
# Offense count: 1
|
35
|
+
# Cop supports --auto-correct.
|
36
|
+
# Configuration parameters: EnforcedStyle.
|
37
|
+
# SupportedStyles: empty_lines, no_empty_lines
|
38
|
+
Layout/EmptyLinesAroundBlockBody:
|
39
|
+
Exclude:
|
40
|
+
- 'lib/bugsnag/middleware/classify_error.rb'
|
41
|
+
|
42
|
+
# Offense count: 11
|
43
|
+
# Cop supports --auto-correct.
|
44
|
+
# Configuration parameters: EnforcedStyle.
|
45
|
+
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
46
|
+
Layout/EmptyLinesAroundClassBody:
|
47
|
+
Exclude:
|
48
|
+
- 'lib/bugsnag/integrations/delayed_job.rb'
|
49
|
+
- 'lib/bugsnag/integrations/mailman.rb'
|
50
|
+
- 'lib/bugsnag/integrations/rack.rb'
|
51
|
+
- 'lib/bugsnag/integrations/railtie.rb'
|
52
|
+
- 'lib/bugsnag/integrations/rake.rb'
|
53
|
+
- 'lib/bugsnag/integrations/resque.rb'
|
54
|
+
- 'lib/bugsnag/integrations/shoryuken.rb'
|
55
|
+
- 'lib/bugsnag/integrations/sidekiq.rb'
|
56
|
+
- 'lib/bugsnag/middleware/suggestion_data.rb'
|
57
|
+
- 'lib/bugsnag/session_tracker.rb'
|
58
|
+
- 'lib/bugsnag/stacktrace.rb'
|
59
|
+
|
60
|
+
# Offense count: 1
|
61
|
+
# Cop supports --auto-correct.
|
62
|
+
Layout/EmptyLinesAroundExceptionHandlingKeywords:
|
63
|
+
Exclude:
|
64
|
+
- 'lib/bugsnag/integrations/rake.rb'
|
65
|
+
|
66
|
+
# Offense count: 1
|
67
|
+
# Cop supports --auto-correct.
|
68
|
+
# Configuration parameters: EnforcedStyle.
|
69
|
+
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
70
|
+
Layout/EmptyLinesAroundModuleBody:
|
71
|
+
Exclude:
|
72
|
+
- 'lib/bugsnag/integrations/rails/controller_methods.rb'
|
73
|
+
|
74
|
+
# Offense count: 1
|
75
|
+
# Cop supports --auto-correct.
|
76
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
77
|
+
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
|
78
|
+
Layout/IndentArray:
|
79
|
+
Exclude:
|
80
|
+
- 'lib/bugsnag/middleware/classify_error.rb'
|
81
|
+
|
82
|
+
# Offense count: 12
|
83
|
+
# Cop supports --auto-correct.
|
84
|
+
# Configuration parameters: IndentationWidth.
|
85
|
+
# SupportedStyles: special_inside_parentheses, consistent, align_braces
|
86
|
+
Layout/IndentHash:
|
87
|
+
EnforcedStyle: consistent
|
88
|
+
|
89
|
+
# Offense count: 1
|
90
|
+
# Cop supports --auto-correct.
|
91
|
+
# Configuration parameters: EnforcedStyle.
|
92
|
+
# SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent
|
93
|
+
Layout/IndentHeredoc:
|
94
|
+
Exclude:
|
95
|
+
- 'lib/generators/bugsnag/bugsnag_generator.rb'
|
96
|
+
|
97
|
+
# Offense count: 1
|
98
|
+
# Cop supports --auto-correct.
|
99
|
+
# Configuration parameters: Width, IgnoredPatterns.
|
100
|
+
Layout/IndentationWidth:
|
101
|
+
Exclude:
|
102
|
+
- 'lib/bugsnag/cleaner.rb'
|
103
|
+
|
104
|
+
# Offense count: 2
|
105
|
+
# Cop supports --auto-correct.
|
106
|
+
Layout/MultilineBlockLayout:
|
107
|
+
Exclude:
|
108
|
+
- 'lib/bugsnag/middleware/classify_error.rb'
|
109
|
+
|
110
|
+
# Offense count: 3
|
111
|
+
# Cop supports --auto-correct.
|
112
|
+
# Configuration parameters: EnforcedStyle, IndentationWidth.
|
113
|
+
# SupportedStyles: aligned, indented
|
114
|
+
Layout/MultilineOperationIndentation:
|
115
|
+
Exclude:
|
116
|
+
- 'lib/bugsnag/middleware/clearance_user.rb'
|
117
|
+
|
118
|
+
# Offense count: 4
|
119
|
+
# Cop supports --auto-correct.
|
120
|
+
Layout/SpaceAfterComma:
|
121
|
+
Exclude:
|
122
|
+
- 'lib/bugsnag/cleaner.rb'
|
123
|
+
- 'lib/bugsnag/integrations/rack.rb'
|
124
|
+
- 'lib/bugsnag/middleware_stack.rb'
|
125
|
+
- 'lib/bugsnag/report.rb'
|
126
|
+
|
127
|
+
# Offense count: 5
|
128
|
+
# Cop supports --auto-correct.
|
129
|
+
# Configuration parameters: EnforcedStyle.
|
130
|
+
# SupportedStyles: space, no_space
|
131
|
+
Layout/SpaceAroundEqualsInParameterDefault:
|
132
|
+
Exclude:
|
133
|
+
- 'lib/bugsnag.rb'
|
134
|
+
- 'lib/bugsnag/delivery/synchronous.rb'
|
135
|
+
- 'lib/bugsnag/delivery/thread_queue.rb'
|
136
|
+
- 'lib/bugsnag/integrations/rake.rb'
|
137
|
+
- 'lib/bugsnag/report.rb'
|
138
|
+
|
139
|
+
# Offense count: 2
|
140
|
+
# Cop supports --auto-correct.
|
141
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
142
|
+
# SupportedStyles: space, no_space
|
143
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
144
|
+
Layout/SpaceBeforeBlockBraces:
|
145
|
+
Exclude:
|
146
|
+
- 'lib/bugsnag/middleware/suggestion_data.rb'
|
147
|
+
- 'lib/bugsnag/middleware_stack.rb'
|
148
|
+
|
149
|
+
# Offense count: 23
|
150
|
+
# Cop supports --auto-correct.
|
151
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
152
|
+
# SupportedStyles: space, no_space
|
153
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
154
|
+
Layout/SpaceInsideBlockBraces:
|
155
|
+
Exclude:
|
156
|
+
- 'lib/bugsnag.rb'
|
157
|
+
- 'lib/bugsnag/cleaner.rb'
|
158
|
+
- 'lib/bugsnag/helpers.rb'
|
159
|
+
- 'lib/bugsnag/integrations/shoryuken.rb'
|
160
|
+
- 'lib/bugsnag/middleware/callbacks.rb'
|
161
|
+
- 'lib/bugsnag/middleware/rack_request.rb'
|
162
|
+
- 'lib/bugsnag/middleware/warden_user.rb'
|
163
|
+
- 'lib/bugsnag/middleware_stack.rb'
|
164
|
+
- 'lib/bugsnag/report.rb'
|
165
|
+
- 'lib/bugsnag/stacktrace.rb'
|
166
|
+
|
167
|
+
# Offense count: 22
|
168
|
+
# Cop supports --auto-correct.
|
169
|
+
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
170
|
+
# SupportedStyles: space, no_space, compact
|
171
|
+
# SupportedStylesForEmptyBraces: space, no_space
|
172
|
+
Layout/SpaceInsideHashLiteralBraces:
|
173
|
+
Exclude:
|
174
|
+
- 'lib/bugsnag.rb'
|
175
|
+
- 'lib/bugsnag/cleaner.rb'
|
176
|
+
- 'lib/bugsnag/integrations/resque.rb'
|
177
|
+
- 'lib/bugsnag/middleware/exception_meta_data.rb'
|
178
|
+
- 'lib/bugsnag/middleware/mailman.rb'
|
179
|
+
- 'lib/bugsnag/middleware/suggestion_data.rb'
|
180
|
+
- 'lib/bugsnag/middleware/warden_user.rb'
|
181
|
+
- 'lib/bugsnag/report.rb'
|
182
|
+
- 'lib/bugsnag/session_tracker.rb'
|
183
|
+
|
184
|
+
# Offense count: 2
|
185
|
+
# Cop supports --auto-correct.
|
186
|
+
Layout/SpaceInsideParens:
|
187
|
+
Exclude:
|
188
|
+
- 'lib/bugsnag/stacktrace.rb'
|
189
|
+
|
190
|
+
# Offense count: 4
|
191
|
+
# Cop supports --auto-correct.
|
192
|
+
# Configuration parameters: EnforcedStyle.
|
193
|
+
# SupportedStyles: final_newline, final_blank_line
|
194
|
+
Layout/TrailingBlankLines:
|
195
|
+
Exclude:
|
196
|
+
- 'lib/bugsnag/integrations/que.rb'
|
197
|
+
- 'lib/bugsnag/session_tracker.rb'
|
198
|
+
- 'lib/bugsnag/tasks.rb'
|
199
|
+
- 'lib/bugsnag/version.rb'
|
200
|
+
|
201
|
+
# Offense count: 2
|
202
|
+
Lint/AmbiguousBlockAssociation:
|
203
|
+
Exclude:
|
204
|
+
- 'lib/bugsnag/delivery/thread_queue.rb'
|
205
|
+
- 'lib/bugsnag/middleware/suggestion_data.rb'
|
206
|
+
|
207
|
+
# Offense count: 4
|
208
|
+
# Configuration parameters: AllowSafeAssignment.
|
209
|
+
Lint/AssignmentInCondition:
|
210
|
+
Exclude:
|
211
|
+
- 'lib/bugsnag/delivery/thread_queue.rb'
|
212
|
+
- 'lib/bugsnag/helpers.rb'
|
213
|
+
- 'lib/bugsnag/integrations/delayed_job.rb'
|
214
|
+
|
215
|
+
# Offense count: 2
|
216
|
+
Lint/DuplicateMethods:
|
217
|
+
Exclude:
|
218
|
+
- 'lib/bugsnag/configuration.rb'
|
219
|
+
|
220
|
+
# Offense count: 2
|
221
|
+
# Cop supports --auto-correct.
|
222
|
+
# Configuration parameters: EnforcedStyleAlignWith, AutoCorrect.
|
223
|
+
# SupportedStylesAlignWith: keyword, variable, start_of_line
|
224
|
+
Lint/EndAlignment:
|
225
|
+
Exclude:
|
226
|
+
- 'lib/bugsnag/cleaner.rb'
|
227
|
+
|
228
|
+
# Offense count: 2
|
229
|
+
Lint/HandleExceptions:
|
230
|
+
Exclude:
|
231
|
+
- 'lib/bugsnag.rb'
|
232
|
+
- 'lib/bugsnag/tasks/bugsnag.rake'
|
233
|
+
|
234
|
+
# Offense count: 10
|
235
|
+
Lint/IneffectiveAccessModifier:
|
236
|
+
Exclude:
|
237
|
+
- 'lib/bugsnag/helpers.rb'
|
238
|
+
|
239
|
+
# Offense count: 5
|
240
|
+
Lint/RescueException:
|
241
|
+
Exclude:
|
242
|
+
- 'lib/bugsnag/integrations/mailman.rb'
|
243
|
+
- 'lib/bugsnag/integrations/rack.rb'
|
244
|
+
- 'lib/bugsnag/integrations/rake.rb'
|
245
|
+
- 'lib/bugsnag/integrations/shoryuken.rb'
|
246
|
+
- 'lib/bugsnag/integrations/sidekiq.rb'
|
247
|
+
|
248
|
+
# Offense count: 6
|
249
|
+
# Cop supports --auto-correct.
|
250
|
+
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
|
251
|
+
Lint/UnusedBlockArgument:
|
252
|
+
Exclude:
|
253
|
+
- 'lib/bugsnag/configuration.rb'
|
254
|
+
- 'lib/bugsnag/helpers.rb'
|
255
|
+
- 'lib/bugsnag/middleware_stack.rb'
|
256
|
+
- 'lib/bugsnag/report.rb'
|
257
|
+
|
258
|
+
# Offense count: 3
|
259
|
+
# Cop supports --auto-correct.
|
260
|
+
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
|
261
|
+
Lint/UnusedMethodArgument:
|
262
|
+
Exclude:
|
263
|
+
- 'lib/bugsnag.rb'
|
264
|
+
- 'lib/bugsnag/configuration.rb'
|
265
|
+
- 'lib/bugsnag/integrations/sidekiq.rb'
|
266
|
+
|
267
|
+
# Offense count: 1
|
268
|
+
# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
|
269
|
+
Lint/UselessAccessModifier:
|
270
|
+
Exclude:
|
271
|
+
- 'lib/bugsnag/helpers.rb'
|
272
|
+
|
273
|
+
# Offense count: 25
|
274
|
+
Metrics/AbcSize:
|
275
|
+
Max: 86
|
276
|
+
|
277
|
+
# Offense count: 1
|
278
|
+
# Configuration parameters: CountComments, ExcludedMethods.
|
279
|
+
Metrics/BlockLength:
|
280
|
+
Max: 30
|
281
|
+
|
282
|
+
# Offense count: 2
|
283
|
+
# Configuration parameters: CountBlocks.
|
284
|
+
Metrics/BlockNesting:
|
285
|
+
Max: 4
|
286
|
+
|
287
|
+
# Offense count: 3
|
288
|
+
# Configuration parameters: CountComments.
|
289
|
+
Metrics/ClassLength:
|
290
|
+
Max: 149
|
291
|
+
|
292
|
+
# Offense count: 12
|
293
|
+
Metrics/CyclomaticComplexity:
|
294
|
+
Max: 19
|
295
|
+
|
296
|
+
# Offense count: 34
|
297
|
+
# Configuration parameters: CountComments.
|
298
|
+
Metrics/MethodLength:
|
299
|
+
Max: 55
|
300
|
+
|
301
|
+
# Offense count: 1
|
302
|
+
# Configuration parameters: CountComments.
|
303
|
+
Metrics/ModuleLength:
|
304
|
+
Max: 111
|
305
|
+
|
306
|
+
# Offense count: 11
|
307
|
+
Metrics/PerceivedComplexity:
|
308
|
+
Max: 21
|
309
|
+
|
310
|
+
# Offense count: 2
|
311
|
+
Naming/AccessorMethodName:
|
312
|
+
Exclude:
|
313
|
+
- 'lib/bugsnag/session_tracker.rb'
|
314
|
+
|
315
|
+
# Offense count: 1
|
316
|
+
# Configuration parameters: Blacklist.
|
317
|
+
# Blacklist: END, (?-mix:EO[A-Z]{1})
|
318
|
+
Naming/HeredocDelimiterNaming:
|
319
|
+
Exclude:
|
320
|
+
- 'lib/generators/bugsnag/bugsnag_generator.rb'
|
321
|
+
|
322
|
+
# Offense count: 1
|
323
|
+
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
|
324
|
+
# NamePrefix: is_, has_, have_
|
325
|
+
# NamePrefixBlacklist: is_, has_, have_
|
326
|
+
# NameWhitelist: is_a?
|
327
|
+
# MethodDefinitionMacros: define_method, define_singleton_method
|
328
|
+
Naming/PredicateName:
|
329
|
+
Exclude:
|
330
|
+
- 'spec/**/*'
|
331
|
+
- 'lib/bugsnag/helpers.rb'
|
332
|
+
|
333
|
+
# Offense count: 5
|
334
|
+
# Cop supports --auto-correct.
|
335
|
+
# Configuration parameters: EnforcedStyle.
|
336
|
+
# SupportedStyles: prefer_alias, prefer_alias_method
|
337
|
+
Style/Alias:
|
338
|
+
Exclude:
|
339
|
+
- 'lib/bugsnag/configuration.rb'
|
340
|
+
- 'lib/bugsnag/integrations/rake.rb'
|
341
|
+
- 'lib/bugsnag/session_tracker.rb'
|
342
|
+
|
343
|
+
# Offense count: 2
|
344
|
+
# Cop supports --auto-correct.
|
345
|
+
# Configuration parameters: EnforcedStyle.
|
346
|
+
# SupportedStyles: always, conditionals
|
347
|
+
Style/AndOr:
|
348
|
+
Exclude:
|
349
|
+
- 'lib/bugsnag.rb'
|
350
|
+
- 'lib/bugsnag/helpers.rb'
|
351
|
+
|
352
|
+
# Offense count: 2
|
353
|
+
# Cop supports --auto-correct.
|
354
|
+
# Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods.
|
355
|
+
# SupportedStyles: line_count_based, semantic, braces_for_chaining
|
356
|
+
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
357
|
+
# FunctionalMethods: let, let!, subject, watch
|
358
|
+
# IgnoredMethods: lambda, proc, it
|
359
|
+
Style/BlockDelimiters:
|
360
|
+
Exclude:
|
361
|
+
- 'lib/bugsnag/middleware/classify_error.rb'
|
362
|
+
|
363
|
+
# Offense count: 12
|
364
|
+
# Cop supports --auto-correct.
|
365
|
+
# Configuration parameters: EnforcedStyle.
|
366
|
+
# SupportedStyles: braces, no_braces, context_dependent
|
367
|
+
Style/BracesAroundHashParameters:
|
368
|
+
Exclude:
|
369
|
+
- 'lib/bugsnag/integrations/resque.rb'
|
370
|
+
- 'lib/bugsnag/integrations/shoryuken.rb'
|
371
|
+
- 'lib/bugsnag/integrations/sidekiq.rb'
|
372
|
+
- 'lib/bugsnag/middleware/mailman.rb'
|
373
|
+
- 'lib/bugsnag/middleware/rack_request.rb'
|
374
|
+
- 'lib/bugsnag/middleware/rails3_request.rb'
|
375
|
+
- 'lib/bugsnag/middleware/rake.rb'
|
376
|
+
- 'lib/bugsnag/middleware/suggestion_data.rb'
|
377
|
+
- 'lib/bugsnag/middleware/warden_user.rb'
|
378
|
+
|
379
|
+
# Offense count: 16
|
380
|
+
# Cop supports --auto-correct.
|
381
|
+
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
382
|
+
# SupportedStyles: nested, compact
|
383
|
+
Style/ClassAndModuleChildren:
|
384
|
+
Enabled: false
|
385
|
+
|
386
|
+
# Offense count: 1
|
387
|
+
# Cop supports --auto-correct.
|
388
|
+
# Configuration parameters: EnforcedStyle.
|
389
|
+
# SupportedStyles: is_a?, kind_of?
|
390
|
+
Style/ClassCheck:
|
391
|
+
Exclude:
|
392
|
+
- 'lib/bugsnag/cleaner.rb'
|
393
|
+
|
394
|
+
# Offense count: 6
|
395
|
+
# Cop supports --auto-correct.
|
396
|
+
# Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
|
397
|
+
# SupportedStyles: assign_to_condition, assign_inside_condition
|
398
|
+
Style/ConditionalAssignment:
|
399
|
+
Exclude:
|
400
|
+
- 'lib/bugsnag.rb'
|
401
|
+
- 'lib/bugsnag/cleaner.rb'
|
402
|
+
- 'lib/bugsnag/delivery/synchronous.rb'
|
403
|
+
- 'lib/bugsnag/middleware_stack.rb'
|
404
|
+
- 'lib/bugsnag/report.rb'
|
405
|
+
|
406
|
+
# Offense count: 38
|
407
|
+
Style/Documentation:
|
408
|
+
Enabled: false
|
409
|
+
|
410
|
+
# Offense count: 1
|
411
|
+
# Cop supports --auto-correct.
|
412
|
+
# Configuration parameters: EnforcedStyle.
|
413
|
+
# SupportedStyles: empty, nil, both
|
414
|
+
Style/EmptyElse:
|
415
|
+
Exclude:
|
416
|
+
- 'lib/bugsnag/stacktrace.rb'
|
417
|
+
|
418
|
+
# Offense count: 3
|
419
|
+
# Configuration parameters: MinBodyLength.
|
420
|
+
Style/GuardClause:
|
421
|
+
Exclude:
|
422
|
+
- 'lib/bugsnag.rb'
|
423
|
+
- 'lib/bugsnag/integrations/delayed_job.rb'
|
424
|
+
- 'lib/bugsnag/integrations/resque.rb'
|
425
|
+
|
426
|
+
# Offense count: 98
|
427
|
+
# Cop supports --auto-correct.
|
428
|
+
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
|
429
|
+
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
|
430
|
+
Style/HashSyntax:
|
431
|
+
Enabled: false
|
432
|
+
|
433
|
+
# Offense count: 1
|
434
|
+
Style/IfInsideElse:
|
435
|
+
Exclude:
|
436
|
+
- 'lib/bugsnag/session_tracker.rb'
|
437
|
+
|
438
|
+
# Offense count: 15
|
439
|
+
# Cop supports --auto-correct.
|
440
|
+
Style/IfUnlessModifier:
|
441
|
+
Exclude:
|
442
|
+
- 'lib/bugsnag/delivery/synchronous.rb'
|
443
|
+
- 'lib/bugsnag/integrations/delayed_job.rb'
|
444
|
+
- 'lib/bugsnag/integrations/mailman.rb'
|
445
|
+
- 'lib/bugsnag/integrations/rack.rb'
|
446
|
+
- 'lib/bugsnag/integrations/resque.rb'
|
447
|
+
- 'lib/bugsnag/middleware/callbacks.rb'
|
448
|
+
- 'lib/bugsnag/middleware/exception_meta_data.rb'
|
449
|
+
- 'lib/bugsnag/middleware/rack_request.rb'
|
450
|
+
- 'lib/bugsnag/session_tracker.rb'
|
451
|
+
- 'lib/bugsnag/stacktrace.rb'
|
452
|
+
|
453
|
+
# Offense count: 6
|
454
|
+
# Cop supports --auto-correct.
|
455
|
+
Style/MethodCallWithoutArgsParentheses:
|
456
|
+
Exclude:
|
457
|
+
- 'lib/bugsnag/delivery/synchronous.rb'
|
458
|
+
- 'lib/bugsnag/report.rb'
|
459
|
+
- 'lib/bugsnag/session_tracker.rb'
|
460
|
+
|
461
|
+
# Offense count: 1
|
462
|
+
Style/MethodMissing:
|
463
|
+
Exclude:
|
464
|
+
- 'lib/bugsnag/middleware_stack.rb'
|
465
|
+
|
466
|
+
# Offense count: 1
|
467
|
+
Style/MultilineBlockChain:
|
468
|
+
Exclude:
|
469
|
+
- 'lib/bugsnag/middleware/classify_error.rb'
|
470
|
+
|
471
|
+
# Offense count: 1
|
472
|
+
# Cop supports --auto-correct.
|
473
|
+
Style/MultilineIfModifier:
|
474
|
+
Exclude:
|
475
|
+
- 'lib/bugsnag/integrations/rails/controller_methods.rb'
|
476
|
+
|
477
|
+
# Offense count: 29
|
478
|
+
# Cop supports --auto-correct.
|
479
|
+
Style/MutableConstant:
|
480
|
+
Enabled: false
|
481
|
+
|
482
|
+
# Offense count: 4
|
483
|
+
# Cop supports --auto-correct.
|
484
|
+
# Configuration parameters: EnforcedStyle.
|
485
|
+
# SupportedStyles: both, prefix, postfix
|
486
|
+
Style/NegatedIf:
|
487
|
+
Exclude:
|
488
|
+
- 'lib/bugsnag.rb'
|
489
|
+
- 'lib/bugsnag/session_tracker.rb'
|
490
|
+
|
491
|
+
# Offense count: 2
|
492
|
+
# Cop supports --auto-correct.
|
493
|
+
# Configuration parameters: EnforcedStyle, MinBodyLength.
|
494
|
+
# SupportedStyles: skip_modifier_ifs, always
|
495
|
+
Style/Next:
|
496
|
+
Exclude:
|
497
|
+
- 'lib/bugsnag/middleware/classify_error.rb'
|
498
|
+
- 'lib/bugsnag/middleware/exception_meta_data.rb'
|
499
|
+
|
500
|
+
# Offense count: 1
|
501
|
+
# Cop supports --auto-correct.
|
502
|
+
# Configuration parameters: IncludeSemanticChanges.
|
503
|
+
Style/NonNilCheck:
|
504
|
+
Exclude:
|
505
|
+
- 'lib/bugsnag/report.rb'
|
506
|
+
|
507
|
+
# Offense count: 1
|
508
|
+
# Cop supports --auto-correct.
|
509
|
+
# Configuration parameters: Strict.
|
510
|
+
Style/NumericLiterals:
|
511
|
+
MinDigits: 7
|
512
|
+
|
513
|
+
# Offense count: 1
|
514
|
+
# Cop supports --auto-correct.
|
515
|
+
# Configuration parameters: AutoCorrect, EnforcedStyle.
|
516
|
+
# SupportedStyles: predicate, comparison
|
517
|
+
Style/NumericPredicate:
|
518
|
+
Exclude:
|
519
|
+
- 'spec/**/*'
|
520
|
+
- 'lib/bugsnag/session_tracker.rb'
|
521
|
+
|
522
|
+
# Offense count: 2
|
523
|
+
# Cop supports --auto-correct.
|
524
|
+
Style/ParallelAssignment:
|
525
|
+
Exclude:
|
526
|
+
- 'lib/bugsnag/stacktrace.rb'
|
527
|
+
|
528
|
+
# Offense count: 6
|
529
|
+
# Cop supports --auto-correct.
|
530
|
+
Style/PerlBackrefs:
|
531
|
+
Exclude:
|
532
|
+
- 'lib/bugsnag/stacktrace.rb'
|
533
|
+
|
534
|
+
# Offense count: 1
|
535
|
+
# Cop supports --auto-correct.
|
536
|
+
# Configuration parameters: EnforcedStyle.
|
537
|
+
# SupportedStyles: compact, exploded
|
538
|
+
Style/RaiseArgs:
|
539
|
+
Exclude:
|
540
|
+
- 'lib/bugsnag/tasks/bugsnag.rake'
|
541
|
+
|
542
|
+
# Offense count: 4
|
543
|
+
# Cop supports --auto-correct.
|
544
|
+
Style/RedundantBegin:
|
545
|
+
Exclude:
|
546
|
+
- 'lib/bugsnag/delivery/synchronous.rb'
|
547
|
+
- 'lib/bugsnag/integrations/mailman.rb'
|
548
|
+
- 'lib/bugsnag/integrations/shoryuken.rb'
|
549
|
+
- 'lib/bugsnag/integrations/sidekiq.rb'
|
550
|
+
|
551
|
+
# Offense count: 1
|
552
|
+
# Cop supports --auto-correct.
|
553
|
+
Style/RedundantException:
|
554
|
+
Exclude:
|
555
|
+
- 'lib/bugsnag/tasks/bugsnag.rake'
|
556
|
+
|
557
|
+
# Offense count: 11
|
558
|
+
# Cop supports --auto-correct.
|
559
|
+
Style/RedundantSelf:
|
560
|
+
Exclude:
|
561
|
+
- 'lib/bugsnag/configuration.rb'
|
562
|
+
- 'lib/bugsnag/integrations/railtie.rb'
|
563
|
+
|
564
|
+
# Offense count: 3
|
565
|
+
# Cop supports --auto-correct.
|
566
|
+
# Configuration parameters: EnforcedStyle, AllowInnerSlashes.
|
567
|
+
# SupportedStyles: slashes, percent_r, mixed
|
568
|
+
Style/RegexpLiteral:
|
569
|
+
Exclude:
|
570
|
+
- 'lib/bugsnag/stacktrace.rb'
|
571
|
+
|
572
|
+
# Offense count: 6
|
573
|
+
# Cop supports --auto-correct.
|
574
|
+
Style/RescueModifier:
|
575
|
+
Exclude:
|
576
|
+
- 'lib/bugsnag/cleaner.rb'
|
577
|
+
- 'lib/bugsnag/middleware/rack_request.rb'
|
578
|
+
- 'lib/bugsnag/middleware/rails3_request.rb'
|
579
|
+
- 'lib/bugsnag/middleware/warden_user.rb'
|
580
|
+
- 'lib/bugsnag/stacktrace.rb'
|
581
|
+
|
582
|
+
# Offense count: 5
|
583
|
+
# Cop supports --auto-correct.
|
584
|
+
# Configuration parameters: EnforcedStyle.
|
585
|
+
# SupportedStyles: implicit, explicit
|
586
|
+
Style/RescueStandardError:
|
587
|
+
Exclude:
|
588
|
+
- 'lib/bugsnag/integrations/que.rb'
|
589
|
+
- 'lib/bugsnag/integrations/railtie.rb'
|
590
|
+
- 'lib/bugsnag/stacktrace.rb'
|
591
|
+
- 'lib/bugsnag/tasks/bugsnag.rake'
|
592
|
+
|
593
|
+
# Offense count: 1
|
594
|
+
# Cop supports --auto-correct.
|
595
|
+
# Configuration parameters: AllowAsExpressionSeparator.
|
596
|
+
Style/Semicolon:
|
597
|
+
Exclude:
|
598
|
+
- 'lib/bugsnag/configuration.rb'
|
599
|
+
|
600
|
+
# Offense count: 3
|
601
|
+
# Cop supports --auto-correct.
|
602
|
+
# Configuration parameters: .
|
603
|
+
# SupportedStyles: use_perl_names, use_english_names
|
604
|
+
Style/SpecialGlobalVars:
|
605
|
+
EnforcedStyle: use_perl_names
|
606
|
+
|
607
|
+
# Offense count: 176
|
608
|
+
# Cop supports --auto-correct.
|
609
|
+
# Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
|
610
|
+
# SupportedStyles: single_quotes, double_quotes
|
611
|
+
Style/StringLiterals:
|
612
|
+
Enabled: false
|
613
|
+
|
614
|
+
# Offense count: 5
|
615
|
+
# Cop supports --auto-correct.
|
616
|
+
# Configuration parameters: MinSize.
|
617
|
+
# SupportedStyles: percent, brackets
|
618
|
+
Style/SymbolArray:
|
619
|
+
EnforcedStyle: brackets
|
620
|
+
|
621
|
+
# Offense count: 3
|
622
|
+
# Cop supports --auto-correct.
|
623
|
+
# Configuration parameters: IgnoredMethods.
|
624
|
+
# IgnoredMethods: respond_to, define_method
|
625
|
+
Style/SymbolProc:
|
626
|
+
Exclude:
|
627
|
+
- 'lib/bugsnag/middleware/classify_error.rb'
|
628
|
+
- 'lib/bugsnag/middleware/rack_request.rb'
|
629
|
+
- 'lib/bugsnag/middleware/suggestion_data.rb'
|
630
|
+
|
631
|
+
# Offense count: 1
|
632
|
+
# Cop supports --auto-correct.
|
633
|
+
# Configuration parameters: EnforcedStyle, AllowSafeAssignment.
|
634
|
+
# SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
|
635
|
+
Style/TernaryParentheses:
|
636
|
+
Exclude:
|
637
|
+
- 'lib/bugsnag/report.rb'
|
638
|
+
|
639
|
+
# Offense count: 5
|
640
|
+
# Cop supports --auto-correct.
|
641
|
+
# Configuration parameters: EnforcedStyleForMultiline.
|
642
|
+
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
643
|
+
Style/TrailingCommaInLiteral:
|
644
|
+
Exclude:
|
645
|
+
- 'lib/bugsnag/integrations/delayed_job.rb'
|
646
|
+
|
647
|
+
# Offense count: 2
|
648
|
+
# Cop supports --auto-correct.
|
649
|
+
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, Whitelist.
|
650
|
+
# 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
|
651
|
+
Style/TrivialAccessors:
|
652
|
+
Exclude:
|
653
|
+
- 'lib/bugsnag/configuration.rb'
|
654
|
+
|
655
|
+
# Offense count: 1
|
656
|
+
# Cop supports --auto-correct.
|
657
|
+
# Configuration parameters: MinSize, WordRegex.
|
658
|
+
# SupportedStyles: percent, brackets
|
659
|
+
Style/WordArray:
|
660
|
+
EnforcedStyle: brackets
|
661
|
+
|
662
|
+
# Offense count: 3
|
663
|
+
# Cop supports --auto-correct.
|
664
|
+
Style/ZeroLengthPredicate:
|
665
|
+
Exclude:
|
666
|
+
- 'lib/bugsnag/session_tracker.rb'
|
667
|
+
|
668
|
+
# Offense count: 92
|
669
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
670
|
+
# URISchemes: http, https
|
671
|
+
Metrics/LineLength:
|
672
|
+
Max: 162
|