marty 2.5.1 → 2.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 816ec7201a80e65cd98ec8ff93b08d696cf2b485979d5d216b9ee422bdf0931a
4
- data.tar.gz: 29a6bf67036d155e47bda0c7d896a478b28ad897cb5a285ac6acf1190cb182f3
3
+ metadata.gz: 0e2ef16fafc3a32c5dec5c48aa505d4276c14add9e68c29d9842e3f5dcb39b00
4
+ data.tar.gz: 3b7e63e047f6cce70265292b02b2036fd6a9475953f84a3d12a4e1a8759e876e
5
5
  SHA512:
6
- metadata.gz: f4cbea6273496204ceefade61630e56478eaa8ceced917d4b670971a735c1b6d27a038bf0fa18458c0f307bcbacc9fc081e4d762fe6f58bc555f9d397c2e636a
7
- data.tar.gz: 3fcfc562fe6299ddd905c4a9c30ffcb29c1d49a82764582263de250a0f97f083b619b3b8fe400a259ae8c2811699a8e593476da810b5fb1dc5fc85862edb91e2
6
+ metadata.gz: 9880d63476cb87bb29639f55f4dbb2af530d458defa1308122da189dfc83f1d1b43784ab662ca819b35afb493b079b3e1de8bb6f3e793ff74d007547ecf60a7c
7
+ data.tar.gz: ae50272cbdc9bde5f4217a0d7bb7ebb2d3d66e8a2df7529704e5d01bb432e8cc119f3cfaeb30b4b6faad190f1adf6819bcec018382885f46773af80c33400490
data/.gitlab-ci.yml ADDED
@@ -0,0 +1,48 @@
1
+ image: thepry/docker-ruby-ci:2.4.2-latest
2
+
3
+ services:
4
+ - "clkao/postgres-plv8:9.6-2.0"
5
+
6
+ before_script:
7
+ - bundle install --jobs $(nproc) --path vendor "${FLAGS[@]}"
8
+ - cp ./spec/dummy/config/database.ci.yml ./spec/dummy/config/database.yml
9
+ - RAILS_ENV=test bundle exec rails db:create db:migrate
10
+
11
+ rubocop:
12
+ stage: test
13
+ script:
14
+ - bundle exec rubocop
15
+
16
+ rspec-without-features:
17
+ stage: test
18
+ script:
19
+ - bundle exec rspec --exclude-pattern "spec/features/**/*_spec.rb"
20
+
21
+ rspec-features:
22
+ stage: test
23
+ script:
24
+ - |
25
+ cd spec/dummy/public && \
26
+ git clone --single-branch --branch version_6_5_3 https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.pnmac.com/cm_tech/extjs.git && \
27
+ cd -
28
+ # - bundle exec rspec --pattern "spec/features/**/*_spec.rb"
29
+ # FIXME: rule_spec is excluded, because chrome doesn't work with big window size in docker
30
+ # And test fails with 1400/1400 resolution
31
+ - bundle exec rspec --pattern "spec/features/**/*_spec.rb" --exclude-pattern "spec/features/rule_spec.rb"
32
+
33
+ cache:
34
+ key: 'marty_bundler_cache'
35
+ paths:
36
+ - vendor/ruby
37
+
38
+ variables:
39
+ GIT_SSL_NO_VERIFY: "true"
40
+ BUNDLER_VERSION: "2.0.1"
41
+ POSTGRES_USER: "runner"
42
+ POSTGRES_PASSWORD: ""
43
+ RAILS_ENV: "test"
44
+ RAILS_DUMP_SCHEMA: "false"
45
+ PGTZ: "America/Los_Angeles"
46
+ HEADLESS: "true"
47
+ HEADLESS_WINDOW_SIZE: "1400,1400"
48
+
data/.rubocop.yml ADDED
@@ -0,0 +1,11 @@
1
+ inherit_from: .rubocop_todo.yml
2
+
3
+ AllCops:
4
+ Exclude:
5
+ - 'db/**/*'
6
+ - 'spec/dummy/**/*'
7
+ - 'bin/{rails,rake}'
8
+ - 'vendor/**/*'
9
+ - 'lib/tasks/marty_tasks.rake'
10
+ - !ruby/regexp /old_and_unused\.rb$/
11
+
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,1777 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2019-01-22 15:18:37 +0300 using RuboCop version 0.63.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: 7
10
+ # Cop supports --auto-correct.
11
+ # Configuration parameters: TreatCommentsAsGroupSeparators, Include.
12
+ # Include: **/*.gemfile, **/Gemfile, **/gems.rb
13
+ Bundler/OrderedGems:
14
+ Exclude:
15
+ - 'Gemfile'
16
+
17
+ # Offense count: 2
18
+ # Cop supports --auto-correct.
19
+ # Configuration parameters: TreatCommentsAsGroupSeparators, Include.
20
+ # Include: **/*.gemspec
21
+ Gemspec/OrderedDependencies:
22
+ Exclude:
23
+ - 'marty.gemspec'
24
+
25
+ # Offense count: 4
26
+ # Cop supports --auto-correct.
27
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
28
+ # SupportedStyles: outdent, indent
29
+ Layout/AccessModifierIndentation:
30
+ Exclude:
31
+ - 'app/components/marty/mcfly_grid_panel.rb'
32
+ - 'app/models/marty/token.rb'
33
+ - 'app/models/marty/user.rb'
34
+ - 'spec/dummy/app/models/gemini/extras/settlement_import.rb'
35
+
36
+ # Offense count: 18
37
+ # Cop supports --auto-correct.
38
+ Layout/AlignArray:
39
+ Exclude:
40
+ - 'app/components/marty/user_view.rb'
41
+ - 'db/migrate/201_create_marty_events.rb'
42
+ - 'lib/marty/monkey.rb'
43
+ - 'spec/models/rule_spec.rb'
44
+
45
+ # Offense count: 526
46
+ # Cop supports --auto-correct.
47
+ # Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
48
+ # SupportedHashRocketStyles: key, separator, table
49
+ # SupportedColonStyles: key, separator, table
50
+ # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
51
+ Layout/AlignHash:
52
+ Enabled: false
53
+
54
+ # Offense count: 39
55
+ # Cop supports --auto-correct.
56
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
57
+ # SupportedStyles: with_first_parameter, with_fixed_indentation
58
+ Layout/AlignParameters:
59
+ Enabled: false
60
+
61
+ # Offense count: 9
62
+ # Cop supports --auto-correct.
63
+ # Configuration parameters: EnforcedStyleAlignWith.
64
+ # SupportedStylesAlignWith: either, start_of_block, start_of_line
65
+ Layout/BlockAlignment:
66
+ Exclude:
67
+ - 'app/components/marty/mcfly_grid_panel.rb'
68
+ - 'lib/marty/schema_helper.rb'
69
+ - 'spec/features/log_view_spec.rb'
70
+ - 'spec/features/reporting_spec.rb'
71
+ - 'spec/features/scripting_test_spec.rb'
72
+ - 'spec/lib/mcfly_model_spec.rb'
73
+
74
+ # Offense count: 32
75
+ # Cop supports --auto-correct.
76
+ Layout/BlockEndNewline:
77
+ Exclude:
78
+ - 'app/components/marty/api_log_view.rb'
79
+ - 'app/components/marty/config_view.rb'
80
+ - 'app/components/marty/log_view.rb'
81
+ - 'app/models/marty/delorean_rule.rb'
82
+ - 'lib/marty/monkey.rb'
83
+ - 'other/marty/diagnostic/connections.rb'
84
+ - 'other/marty/diagnostic/environment_variables.rb'
85
+ - 'spec/lib/mcfly_model_spec.rb'
86
+ - 'spec/models/data_grid_spec.rb'
87
+ - 'spec/models/event_spec.rb'
88
+ - 'spec/models/rule_spec.rb'
89
+ - 'spec/models/script_spec.rb'
90
+ - 'spec/support/structure_compare.rb'
91
+
92
+ # Offense count: 2
93
+ # Cop supports --auto-correct.
94
+ # Configuration parameters: EnforcedStyle, IndentOneStep, IndentationWidth.
95
+ # SupportedStyles: case, end
96
+ Layout/CaseIndentation:
97
+ Exclude:
98
+ - 'app/models/marty/data_grid.rb'
99
+
100
+ # Offense count: 35
101
+ # Cop supports --auto-correct.
102
+ Layout/ClosingHeredocIndentation:
103
+ Exclude:
104
+ - 'spec/features/rule_spec.rb'
105
+ - 'spec/support/components/netzke_combobox.rb'
106
+ - 'spec/support/components/netzke_grid.rb'
107
+
108
+ # Offense count: 38
109
+ # Cop supports --auto-correct.
110
+ Layout/ClosingParenthesisIndentation:
111
+ Exclude:
112
+ - 'app/components/marty/base_rule_view.rb'
113
+ - 'app/components/marty/report_form.rb'
114
+ - 'app/components/marty/report_select.rb'
115
+ - 'app/components/marty/script_tester.rb'
116
+ - 'app/controllers/marty/job_controller.rb'
117
+ - 'app/models/marty/data_grid.rb'
118
+ - 'lib/marty/data_change.rb'
119
+ - 'lib/marty/data_importer.rb'
120
+ - 'lib/marty/migrations.rb'
121
+ - 'lib/marty/promise_job.rb'
122
+ - 'spec/controllers/job_controller_spec.rb'
123
+ - 'spec/dummy/app/components/gemini/my_rule_view.rb'
124
+ - 'spec/lib/data_importer_spec.rb'
125
+ - 'spec/models/data_grid_spec.rb'
126
+ - 'spec/models/rule_spec.rb'
127
+
128
+ # Offense count: 7
129
+ # Cop supports --auto-correct.
130
+ Layout/CommentIndentation:
131
+ Exclude:
132
+ - 'app/components/marty/base_rule_view.rb'
133
+ - 'app/models/marty/data_grid.rb'
134
+ - 'app/models/marty/token.rb'
135
+ - 'spec/dummy/db/schema.rb'
136
+
137
+ # Offense count: 2
138
+ # Cop supports --auto-correct.
139
+ # Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
140
+ # SupportedStylesAlignWith: start_of_line, def
141
+ Layout/DefEndAlignment:
142
+ Exclude:
143
+ - 'spec/dummy/db/migrate/20171221095312_create_gemini_my_rules.rb'
144
+ - 'spec/dummy/db/migrate/20171221095359_create_gemini_xyz_rules.rb'
145
+
146
+ # Offense count: 218
147
+ # Cop supports --auto-correct.
148
+ # Configuration parameters: EnforcedStyle.
149
+ # SupportedStyles: leading, trailing
150
+ Layout/DotPosition:
151
+ Enabled: false
152
+
153
+ # Offense count: 6
154
+ # Cop supports --auto-correct.
155
+ # Configuration parameters: AllowBorderComment, AllowMarginComment.
156
+ Layout/EmptyComment:
157
+ Exclude:
158
+ - 'spec/lib/json_schema_spec.rb'
159
+
160
+ # Offense count: 64
161
+ # Cop supports --auto-correct.
162
+ Layout/EmptyLineAfterGuardClause:
163
+ Enabled: false
164
+
165
+ # Offense count: 39
166
+ # Cop supports --auto-correct.
167
+ # Configuration parameters: AllowAdjacentOneLineDefs, NumberOfEmptyLines.
168
+ Layout/EmptyLineBetweenDefs:
169
+ Exclude:
170
+ - 'app/components/marty/base_rule_view.rb'
171
+ - 'app/components/marty/import_view.rb'
172
+ - 'app/models/marty/base_rule.rb'
173
+ - 'app/models/marty/data_grid.rb'
174
+ - 'app/models/marty/delorean_rule.rb'
175
+ - 'db/migrate/411_create_vw_promises.rb'
176
+ - 'lib/marty/rule_script_set.rb'
177
+ - 'other/marty/diagnostic/node.rb'
178
+ - 'spec/dummy/app/components/gemini/my_rule_view.rb'
179
+ - 'spec/dummy/app/models/gemini/my_rule.rb'
180
+ - 'spec/dummy/app/models/gemini/xyz_rule.rb'
181
+ - 'spec/dummy/lib/gemini/xyz_rule_script_set.rb'
182
+ - 'spec/dummy/public/extjs/classic/theme-base/sass/utils.rb'
183
+ - 'spec/features/rule_spec.rb'
184
+ - 'spec/support/structure_compare.rb'
185
+
186
+ # Offense count: 17
187
+ # Cop supports --auto-correct.
188
+ Layout/EmptyLines:
189
+ Exclude:
190
+ - 'Rakefile'
191
+ - 'app/models/marty/api_auth.rb'
192
+ - 'lib/marty/monkey.rb'
193
+ - 'lib/marty/promise_job.rb'
194
+ - 'lib/marty/schema_helper.rb'
195
+ - 'other/marty/diagnostic/node.rb'
196
+ - 'spec/controllers/rpc_controller_spec.rb'
197
+ - 'spec/controllers/rpc_import_spec.rb'
198
+ - 'spec/features/enum_spec.rb'
199
+ - 'spec/features/scripting_spec.rb'
200
+ - 'spec/lib/json_schema_spec.rb'
201
+ - 'spec/lib/xl_spec.rb'
202
+ - 'spec/lib/xl_styles_spec.rb'
203
+ - 'spec/models/event_spec.rb'
204
+
205
+ # Offense count: 12
206
+ # Cop supports --auto-correct.
207
+ Layout/EmptyLinesAroundAccessModifier:
208
+ Exclude:
209
+ - 'app/components/marty/mcfly_grid_panel.rb'
210
+ - 'app/controllers/marty/rpc_controller.rb'
211
+ - 'app/models/marty/data_grid.rb'
212
+ - 'app/models/marty/token.rb'
213
+ - 'app/models/marty/user.rb'
214
+ - 'lib/marty/aws/base.rb'
215
+ - 'lib/marty/json_schema.rb'
216
+ - 'lib/marty/migrations.rb'
217
+ - 'other/marty/diagnostic/aws/ec2_instance.rb'
218
+ - 'other/marty/diagnostic/reporter.rb'
219
+ - 'spec/dummy/app/models/gemini/extras/settlement_import.rb'
220
+ - 'spec/support/netzke.rb'
221
+
222
+ # Offense count: 2
223
+ # Cop supports --auto-correct.
224
+ Layout/EmptyLinesAroundArguments:
225
+ Exclude:
226
+ - 'lib/marty/aws/base.rb'
227
+ - 'spec/dummy/app/models/gemini/enum_state.rb'
228
+
229
+ # Offense count: 42
230
+ # Cop supports --auto-correct.
231
+ # Configuration parameters: EnforcedStyle.
232
+ # SupportedStyles: empty_lines, no_empty_lines
233
+ Layout/EmptyLinesAroundBlockBody:
234
+ Enabled: false
235
+
236
+ # Offense count: 27
237
+ # Cop supports --auto-correct.
238
+ # Configuration parameters: EnforcedStyle.
239
+ # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
240
+ Layout/EmptyLinesAroundClassBody:
241
+ Enabled: false
242
+
243
+ # Offense count: 5
244
+ # Cop supports --auto-correct.
245
+ Layout/EmptyLinesAroundExceptionHandlingKeywords:
246
+ Exclude:
247
+ - 'app/components/marty/import_view.rb'
248
+ - 'app/components/marty/report_form.rb'
249
+ - 'app/components/marty/script_tester.rb'
250
+ - 'other/marty/api/base.rb'
251
+
252
+ # Offense count: 9
253
+ # Cop supports --auto-correct.
254
+ Layout/EmptyLinesAroundMethodBody:
255
+ Exclude:
256
+ - 'app/models/marty/base_rule.rb'
257
+ - 'app/models/marty/data_grid.rb'
258
+ - 'lib/marty/data_conversion.rb'
259
+ - 'lib/marty/json_schema.rb'
260
+ - 'lib/marty/mcfly_model.rb'
261
+ - 'lib/marty/promise_job.rb'
262
+ - 'lib/marty/xl.rb'
263
+ - 'spec/controllers/rpc_controller_spec.rb'
264
+ - 'spec/support/users.rb'
265
+
266
+ # Offense count: 10
267
+ # Cop supports --auto-correct.
268
+ # Configuration parameters: EnforcedStyle.
269
+ # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
270
+ Layout/EmptyLinesAroundModuleBody:
271
+ Exclude:
272
+ - 'app/models/marty/pg_enum.rb'
273
+ - 'lib/marty/json_schema.rb'
274
+ - 'spec/lib/data_exporter_spec.rb'
275
+ - 'spec/lib/data_importer_spec.rb'
276
+ - 'spec/lib/delorean_query_spec.rb'
277
+ - 'spec/lib/json_schema_spec.rb'
278
+ - 'spec/lib/mcfly_model_spec.rb'
279
+ - 'spec/support/chromedriver.rb'
280
+ - 'spec/support/setup.rb'
281
+
282
+ # Offense count: 56
283
+ # Cop supports --auto-correct.
284
+ # Configuration parameters: EnforcedStyleAlignWith, AutoCorrect, Severity.
285
+ # SupportedStylesAlignWith: keyword, variable, start_of_line
286
+ Layout/EndAlignment:
287
+ Enabled: false
288
+
289
+ # Offense count: 81
290
+ # Cop supports --auto-correct.
291
+ # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
292
+ Layout/ExtraSpacing:
293
+ Enabled: false
294
+
295
+ # Offense count: 44
296
+ # Cop supports --auto-correct.
297
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
298
+ # SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
299
+ Layout/FirstParameterIndentation:
300
+ Enabled: false
301
+
302
+ # Offense count: 42
303
+ # Cop supports --auto-correct.
304
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
305
+ # SupportedStyles: special_inside_parentheses, consistent, align_brackets
306
+ Layout/IndentArray:
307
+ Enabled: false
308
+
309
+ # Offense count: 7
310
+ # Cop supports --auto-correct.
311
+ # Configuration parameters: IndentationWidth.
312
+ Layout/IndentAssignment:
313
+ Exclude:
314
+ - 'app/controllers/marty/report_controller.rb'
315
+ - 'app/models/marty/data_grid.rb'
316
+ - 'app/models/marty/delorean_rule.rb'
317
+ - 'lib/marty/xl.rb'
318
+ - 'other/marty/api/base.rb'
319
+ - 'spec/lib/data_importer_spec.rb'
320
+
321
+ # Offense count: 136
322
+ # Cop supports --auto-correct.
323
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
324
+ # SupportedStyles: special_inside_parentheses, consistent, align_braces
325
+ Layout/IndentHash:
326
+ Exclude:
327
+ - 'app/components/marty/extras/layout.rb'
328
+ - 'lib/marty/data_change.rb'
329
+ - 'lib/marty/rpc_call.rb'
330
+ - 'spec/controllers/diagnostic/controller_spec.rb'
331
+ - 'spec/controllers/job_controller_spec.rb'
332
+ - 'spec/controllers/rpc_controller_spec.rb'
333
+ - 'spec/controllers/rpc_import_spec.rb'
334
+ - 'spec/dummy/app/models/gemini/fannie_bup.rb'
335
+ - 'spec/features/user_view_spec.rb'
336
+ - 'spec/lib/data_importer_spec.rb'
337
+ - 'spec/lib/json_schema_spec.rb'
338
+ - 'spec/models/api_auth_spec.rb'
339
+
340
+ # Offense count: 92
341
+ # Cop supports --auto-correct.
342
+ # Configuration parameters: EnforcedStyle.
343
+ # SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent
344
+ Layout/IndentHeredoc:
345
+ Enabled: false
346
+
347
+ # Offense count: 25
348
+ # Cop supports --auto-correct.
349
+ # Configuration parameters: EnforcedStyle.
350
+ # SupportedStyles: normal, rails
351
+ Layout/IndentationConsistency:
352
+ Exclude:
353
+ - 'app/components/marty/config_view.rb'
354
+ - 'app/models/marty/data_grid.rb'
355
+ - 'app/models/marty/user.rb'
356
+ - 'spec/features/log_view_spec.rb'
357
+ - 'spec/features/reporting_spec.rb'
358
+ - 'spec/features/scripting_test_spec.rb'
359
+ - 'spec/lib/data_exporter_spec.rb'
360
+ - 'spec/lib/data_importer_spec.rb'
361
+ - 'spec/lib/delorean_query_spec.rb'
362
+ - 'spec/lib/mcfly_model_spec.rb'
363
+ - 'spec/models/data_grid_spec.rb'
364
+ - 'spec/other/diagnostic/reporter_spec.rb'
365
+
366
+ # Offense count: 230
367
+ # Cop supports --auto-correct.
368
+ # Configuration parameters: Width, IgnoredPatterns.
369
+ Layout/IndentationWidth:
370
+ Enabled: false
371
+
372
+ # Offense count: 23
373
+ # Cop supports --auto-correct.
374
+ Layout/LeadingCommentSpace:
375
+ Enabled: false
376
+
377
+ # Offense count: 15
378
+ # Cop supports --auto-correct.
379
+ # Configuration parameters: EnforcedStyle.
380
+ # SupportedStyles: symmetrical, new_line, same_line
381
+ Layout/MultilineArrayBraceLayout:
382
+ Exclude:
383
+ - 'app/components/marty/api_config_view.rb'
384
+ - 'app/components/marty/report_form.rb'
385
+ - 'lib/marty/data_conversion.rb'
386
+ - 'lib/marty/monkey.rb'
387
+ - 'lib/marty/schema_helper.rb'
388
+ - 'other/marty/diagnostic/environment_variables.rb'
389
+ - 'spec/dummy/app/models/gemini/fannie_bup.rb'
390
+ - 'spec/dummy/app/models/gemini/streamline_type.rb'
391
+ - 'spec/dummy/db/migrate/20171222150100_add_rule_indices.rb'
392
+ - 'spec/features/log_view_spec.rb'
393
+ - 'spec/lib/data_importer_spec.rb'
394
+ - 'spec/models/event_spec.rb'
395
+ - 'spec/support/suite.rb'
396
+
397
+ # Offense count: 160
398
+ # Cop supports --auto-correct.
399
+ Layout/MultilineBlockLayout:
400
+ Enabled: false
401
+
402
+ # Offense count: 44
403
+ # Cop supports --auto-correct.
404
+ # Configuration parameters: EnforcedStyle.
405
+ # SupportedStyles: symmetrical, new_line, same_line
406
+ Layout/MultilineHashBraceLayout:
407
+ Enabled: false
408
+
409
+ # Offense count: 124
410
+ # Cop supports --auto-correct.
411
+ # Configuration parameters: EnforcedStyle.
412
+ # SupportedStyles: symmetrical, new_line, same_line
413
+ Layout/MultilineMethodCallBraceLayout:
414
+ Enabled: false
415
+
416
+ # Offense count: 81
417
+ # Cop supports --auto-correct.
418
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
419
+ # SupportedStyles: aligned, indented, indented_relative_to_receiver
420
+ Layout/MultilineMethodCallIndentation:
421
+ Enabled: false
422
+
423
+ # Offense count: 2
424
+ # Cop supports --auto-correct.
425
+ # Configuration parameters: EnforcedStyle.
426
+ # SupportedStyles: symmetrical, new_line, same_line
427
+ Layout/MultilineMethodDefinitionBraceLayout:
428
+ Exclude:
429
+ - 'lib/marty/data_importer.rb'
430
+
431
+ # Offense count: 20
432
+ # Cop supports --auto-correct.
433
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
434
+ # SupportedStyles: aligned, indented
435
+ Layout/MultilineOperationIndentation:
436
+ Exclude:
437
+ - 'app/components/marty/main_auth_app.rb'
438
+ - 'app/components/marty/script_tester.rb'
439
+ - 'app/controllers/marty/application_controller.rb'
440
+ - 'app/models/marty/script.rb'
441
+ - 'app/models/marty/user.rb'
442
+ - 'lib/marty/data_change.rb'
443
+ - 'other/marty/api/base.rb'
444
+ - 'spec/controllers/application_controller_spec.rb'
445
+ - 'spec/dummy/app/models/gemini/extras/settlement_import.rb'
446
+ - 'spec/models/api_auth_spec.rb'
447
+ - 'spec/models/script_spec.rb'
448
+ - 'spec/support/shared_connection.rb'
449
+
450
+ # Offense count: 4
451
+ # Cop supports --auto-correct.
452
+ Layout/SpaceAfterColon:
453
+ Exclude:
454
+ - 'app/models/marty/helper.rb'
455
+ - 'lib/marty/aws/request.rb'
456
+ - 'spec/controllers/rpc_controller_spec.rb'
457
+
458
+ # Offense count: 165
459
+ # Cop supports --auto-correct.
460
+ Layout/SpaceAfterComma:
461
+ Enabled: false
462
+
463
+ # Offense count: 13
464
+ # Cop supports --auto-correct.
465
+ # Configuration parameters: EnforcedStyleInsidePipes.
466
+ # SupportedStylesInsidePipes: space, no_space
467
+ Layout/SpaceAroundBlockParameters:
468
+ Exclude:
469
+ - 'app/components/marty/base_rule_view.rb'
470
+ - 'app/models/marty/delorean_rule.rb'
471
+ - 'lib/marty/rule_script_set.rb'
472
+ - 'spec/dummy/app/models/gemini/xyz_rule.rb'
473
+ - 'spec/dummy/lib/gemini/xyz_rule_script_set.rb'
474
+ - 'spec/features/rule_spec.rb'
475
+ - 'spec/models/rule_spec.rb'
476
+ - 'spec/support/custom_matchers.rb'
477
+
478
+ # Offense count: 108
479
+ # Cop supports --auto-correct.
480
+ # Configuration parameters: EnforcedStyle.
481
+ # SupportedStyles: space, no_space
482
+ Layout/SpaceAroundEqualsInParameterDefault:
483
+ Enabled: false
484
+
485
+ # Offense count: 4
486
+ # Cop supports --auto-correct.
487
+ Layout/SpaceAroundKeyword:
488
+ Exclude:
489
+ - 'lib/marty/json_schema.rb'
490
+ - 'spec/dummy/public/extjs/classic/theme-base/sass/overrides.rb'
491
+
492
+ # Offense count: 696
493
+ # Cop supports --auto-correct.
494
+ # Configuration parameters: AllowForAlignment.
495
+ Layout/SpaceAroundOperators:
496
+ Enabled: false
497
+
498
+ # Offense count: 116
499
+ # Cop supports --auto-correct.
500
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
501
+ # SupportedStyles: space, no_space
502
+ # SupportedStylesForEmptyBraces: space, no_space
503
+ Layout/SpaceBeforeBlockBraces:
504
+ Enabled: false
505
+
506
+ # Offense count: 3
507
+ # Cop supports --auto-correct.
508
+ Layout/SpaceBeforeComma:
509
+ Exclude:
510
+ - 'other/marty/api/base.rb'
511
+ - 'spec/models/posting_spec.rb'
512
+
513
+ # Offense count: 146
514
+ # Cop supports --auto-correct.
515
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
516
+ # SupportedStyles: space, no_space, compact
517
+ # SupportedStylesForEmptyBrackets: space, no_space
518
+ Layout/SpaceInsideArrayLiteralBrackets:
519
+ Exclude:
520
+ - 'lib/marty/data_exporter.rb'
521
+ - 'lib/marty/xl.rb'
522
+ - 'spec/dummy/db/seeds.rb'
523
+ - 'spec/features/log_view_spec.rb'
524
+ - 'spec/lib/json_schema_spec.rb'
525
+
526
+ # Offense count: 356
527
+ # Cop supports --auto-correct.
528
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
529
+ # SupportedStyles: space, no_space
530
+ # SupportedStylesForEmptyBraces: space, no_space
531
+ Layout/SpaceInsideBlockBraces:
532
+ Enabled: false
533
+
534
+ # Offense count: 1027
535
+ # Cop supports --auto-correct.
536
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
537
+ # SupportedStyles: space, no_space, compact
538
+ # SupportedStylesForEmptyBraces: space, no_space
539
+ Layout/SpaceInsideHashLiteralBraces:
540
+ Enabled: false
541
+
542
+ # Offense count: 5
543
+ # Cop supports --auto-correct.
544
+ # Configuration parameters: EnforcedStyle.
545
+ # SupportedStyles: space, no_space
546
+ Layout/SpaceInsideParens:
547
+ Exclude:
548
+ - 'app/models/marty/posting.rb'
549
+ - 'lib/marty/xl.rb'
550
+ - 'spec/models/data_grid_spec.rb'
551
+
552
+ # Offense count: 6
553
+ # Cop supports --auto-correct.
554
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
555
+ # SupportedStyles: space, no_space
556
+ # SupportedStylesForEmptyBrackets: space, no_space
557
+ Layout/SpaceInsideReferenceBrackets:
558
+ Exclude:
559
+ - 'lib/marty/data_conversion.rb'
560
+ - 'lib/marty/data_exporter.rb'
561
+ - 'lib/marty/permissions.rb'
562
+
563
+ # Offense count: 1
564
+ # Cop supports --auto-correct.
565
+ # Configuration parameters: EnforcedStyle.
566
+ # SupportedStyles: space, no_space
567
+ Layout/SpaceInsideStringInterpolation:
568
+ Exclude:
569
+ - 'spec/dummy/app/models/gemini/extras/settlement_import.rb'
570
+
571
+ # Offense count: 11
572
+ # Cop supports --auto-correct.
573
+ # Configuration parameters: IndentationWidth.
574
+ Layout/Tab:
575
+ Exclude:
576
+ - 'app/components/marty/posting_window.rb'
577
+
578
+ # Offense count: 9
579
+ # Cop supports --auto-correct.
580
+ # Configuration parameters: EnforcedStyle.
581
+ # SupportedStyles: final_newline, final_blank_line
582
+ Layout/TrailingBlankLines:
583
+ Exclude:
584
+ - 'spec/dummy/app/controllers/components_controller.rb'
585
+ - 'spec/dummy/config/boot.rb'
586
+ - 'spec/dummy/public/extjs/build/examples/classic/app/nested-loading/resources/sass/config.rb'
587
+ - 'spec/dummy/public/extjs/build/examples/classic/panel/bubble-panel/resources/sass/config.rb'
588
+ - 'spec/dummy/public/extjs/classic/theme-base/sass/overrides.rb'
589
+ - 'spec/dummy/public/extjs/classic/theme-base/sass/utils.rb'
590
+ - 'spec/dummy/public/extjs/examples/classic/app/nested-loading/resources/sass/config.rb'
591
+ - 'spec/dummy/public/extjs/examples/classic/panel/bubble-panel/resources/sass/config.rb'
592
+ - 'spec/dummy/public/extjs/modern/theme-base/sass/utils.rb'
593
+
594
+ # Offense count: 28
595
+ # Cop supports --auto-correct.
596
+ # Configuration parameters: AllowInHeredoc.
597
+ Layout/TrailingWhitespace:
598
+ Exclude:
599
+ - 'spec/dummy/public/extjs/classic/theme-base/sass/overrides.rb'
600
+ - 'spec/dummy/public/extjs/classic/theme-base/sass/utils.rb'
601
+ - 'spec/lib/xl_spec.rb'
602
+
603
+ # Offense count: 1
604
+ Lint/AmbiguousBlockAssociation:
605
+ Exclude:
606
+ - 'spec/features/data_import_spec.rb'
607
+
608
+ # Offense count: 2
609
+ Lint/AmbiguousOperator:
610
+ Exclude:
611
+ - 'app/components/marty/script_form.rb'
612
+ - 'other/marty/diagnostic/aws/ec2_instance.rb'
613
+
614
+ # Offense count: 6
615
+ Lint/AmbiguousRegexpLiteral:
616
+ Exclude:
617
+ - 'spec/controllers/job_controller_spec.rb'
618
+ - 'spec/dummy/app/models/gemini/fannie_bup.rb'
619
+ - 'spec/models/posting_spec.rb'
620
+
621
+ # Offense count: 2
622
+ # Configuration parameters: AllowSafeAssignment.
623
+ Lint/AssignmentInCondition:
624
+ Exclude:
625
+ - 'app/components/marty/event_view.rb'
626
+ - 'spec/dummy/public/extjs/classic/theme-base/sass/overrides.rb'
627
+
628
+ # Offense count: 2
629
+ Lint/Debugger:
630
+ Exclude:
631
+ - 'spec/controllers/rpc_controller_spec.rb'
632
+ - 'spec/lib/struct_compare_spec.rb'
633
+
634
+ # Offense count: 3
635
+ Lint/DuplicateMethods:
636
+ Exclude:
637
+ - 'spec/support/components/netzke_grid.rb'
638
+ - 'spec/support/shared_connection_db_helpers.rb'
639
+
640
+ # Offense count: 2
641
+ Lint/HandleExceptions:
642
+ Exclude:
643
+ - 'spec/support/netzke.rb'
644
+
645
+ # Offense count: 23
646
+ Lint/IneffectiveAccessModifier:
647
+ Exclude:
648
+ - 'app/components/marty/mcfly_grid_panel.rb'
649
+ - 'app/models/marty/data_grid.rb'
650
+ - 'app/models/marty/token.rb'
651
+ - 'lib/marty/content_handler.rb'
652
+ - 'lib/marty/migrations.rb'
653
+ - 'other/marty/diagnostic/reporter.rb'
654
+
655
+ # Offense count: 1
656
+ Lint/InterpolationCheck:
657
+ Exclude:
658
+ - 'other/marty/diagnostic/request.rb'
659
+
660
+ # Offense count: 1
661
+ Lint/LiteralAsCondition:
662
+ Exclude:
663
+ - 'app/models/marty/promise.rb'
664
+
665
+ # Offense count: 10
666
+ Lint/ParenthesesAsGroupedExpression:
667
+ Exclude:
668
+ - 'lib/marty/permissions.rb'
669
+ - 'spec/lib/logger_spec.rb'
670
+ - 'spec/models/data_grid_spec.rb'
671
+ - 'spec/models/user_spec.rb'
672
+ - 'spec/support/suite.rb'
673
+
674
+ # Offense count: 1
675
+ Lint/RescueException:
676
+ Exclude:
677
+ - 'lib/marty/promise_proxy.rb'
678
+
679
+ # Offense count: 2
680
+ # Cop supports --auto-correct.
681
+ Lint/ScriptPermission:
682
+ Exclude:
683
+ - 'Rakefile'
684
+ - 'spec/dummy/Rakefile'
685
+
686
+ # Offense count: 1
687
+ # Configuration parameters: IgnoreImplicitReferences.
688
+ Lint/ShadowedArgument:
689
+ Exclude:
690
+ - 'app/components/marty/main_auth_app.rb'
691
+
692
+ # Offense count: 7
693
+ Lint/ShadowingOuterLocalVariable:
694
+ Exclude:
695
+ - 'app/models/marty/data_grid.rb'
696
+ - 'lib/marty/data_change.rb'
697
+ - 'lib/marty/data_conversion.rb'
698
+ - 'lib/marty/json_schema.rb'
699
+ - 'other/marty/api/base.rb'
700
+ - 'other/marty/diagnostic/base.rb'
701
+ - 'other/marty/diagnostic/database.rb'
702
+
703
+ # Offense count: 8
704
+ # Cop supports --auto-correct.
705
+ Lint/StringConversionInInterpolation:
706
+ Exclude:
707
+ - 'app/components/marty/api_log_view.rb'
708
+ - 'app/components/marty/extras/layout.rb'
709
+ - 'app/components/marty/import_view.rb'
710
+ - 'spec/support/netzke.rb'
711
+
712
+ # Offense count: 2
713
+ Lint/UnderscorePrefixedVariableName:
714
+ Exclude:
715
+ - 'lib/marty/monkey.rb'
716
+ - 'lib/marty/promise_job.rb'
717
+
718
+ # Offense count: 36
719
+ # Cop supports --auto-correct.
720
+ # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
721
+ Lint/UnusedBlockArgument:
722
+ Enabled: false
723
+
724
+ # Offense count: 21
725
+ # Cop supports --auto-correct.
726
+ # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
727
+ Lint/UnusedMethodArgument:
728
+ Exclude:
729
+ - 'app/models/marty/base_rule.rb'
730
+ - 'app/models/marty/pg_enum.rb'
731
+ - 'app/models/marty/posting.rb'
732
+ - 'db/migrate/091_create_marty_promises.rb'
733
+ - 'db/migrate/201_create_marty_events.rb'
734
+ - 'lib/marty/cache_adapters/mcfly_ruby_cache.rb'
735
+ - 'lib/marty/json_schema.rb'
736
+ - 'lib/marty/monkey.rb'
737
+ - 'lib/marty/promise_proxy.rb'
738
+ - 'lib/marty/rule_script_set.rb'
739
+ - 'other/marty/api/base.rb'
740
+ - 'spec/lib/json_schema_spec.rb'
741
+ - 'spec/lib/xl_spec.rb'
742
+ - 'spec/support/components/netzke_grid.rb'
743
+ - 'spec/support/netzke.rb'
744
+
745
+ # Offense count: 4
746
+ Lint/UriEscapeUnescape:
747
+ Exclude:
748
+ - 'lib/marty/rpc_call.rb'
749
+ - 'lib/marty/util.rb'
750
+ - 'spec/features/reporting_spec.rb'
751
+
752
+ # Offense count: 5
753
+ # Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
754
+ Lint/UselessAccessModifier:
755
+ Exclude:
756
+ - 'app/components/marty/mcfly_grid_panel.rb'
757
+ - 'app/models/marty/data_grid.rb'
758
+ - 'lib/marty/content_handler.rb'
759
+ - 'lib/marty/json_schema.rb'
760
+ - 'other/marty/diagnostic/reporter.rb'
761
+
762
+ # Offense count: 159
763
+ Lint/UselessAssignment:
764
+ Enabled: false
765
+
766
+ # Offense count: 56
767
+ # Configuration parameters: CheckForMethodsWithNoSideEffects.
768
+ Lint/Void:
769
+ Exclude:
770
+ - 'spec/lib/data_exporter_spec.rb'
771
+ - 'spec/lib/data_importer_spec.rb'
772
+ - 'spec/lib/xl_spec.rb'
773
+ - 'spec/lib/xl_styles_spec.rb'
774
+ - 'spec/models/posting_spec.rb'
775
+
776
+ # Offense count: 101
777
+ Metrics/AbcSize:
778
+ Max: 134
779
+
780
+ # Offense count: 138
781
+ # Configuration parameters: CountComments, ExcludedMethods.
782
+ # ExcludedMethods: refine
783
+ Metrics/BlockLength:
784
+ Max: 842
785
+
786
+ # Offense count: 21
787
+ # Configuration parameters: CountComments.
788
+ Metrics/ClassLength:
789
+ Max: 539
790
+
791
+ # Offense count: 68
792
+ Metrics/CyclomaticComplexity:
793
+ Max: 40
794
+
795
+ # Offense count: 171
796
+ # Configuration parameters: CountComments, ExcludedMethods.
797
+ Metrics/MethodLength:
798
+ Max: 98
799
+
800
+ # Offense count: 12
801
+ # Configuration parameters: CountComments.
802
+ Metrics/ModuleLength:
803
+ Max: 675
804
+
805
+ # Offense count: 13
806
+ # Configuration parameters: CountKeywordArgs.
807
+ Metrics/ParameterLists:
808
+ Max: 9
809
+
810
+ # Offense count: 47
811
+ Metrics/PerceivedComplexity:
812
+ Max: 35
813
+
814
+ # Offense count: 27
815
+ Naming/AccessorMethodName:
816
+ Enabled: false
817
+
818
+ # Offense count: 3
819
+ Naming/BinaryOperatorParameterName:
820
+ Exclude:
821
+ - 'lib/marty/monkey.rb'
822
+ - 'lib/marty/promise_job.rb'
823
+
824
+ # Offense count: 11
825
+ Naming/ConstantName:
826
+ Exclude:
827
+ - 'spec/models/data_grid_spec.rb'
828
+
829
+ # Offense count: 22
830
+ # Configuration parameters: EnforcedStyle.
831
+ # SupportedStyles: lowercase, uppercase
832
+ Naming/HeredocDelimiterCase:
833
+ Exclude:
834
+ - 'spec/controllers/rpc_controller_spec.rb'
835
+ - 'spec/models/script_spec.rb'
836
+
837
+ # Offense count: 62
838
+ # Configuration parameters: Blacklist.
839
+ # Blacklist: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
840
+ Naming/HeredocDelimiterNaming:
841
+ Exclude:
842
+ - 'lib/marty/migrations.rb'
843
+ - 'spec/features/rule_spec.rb'
844
+ - 'spec/job_helper.rb'
845
+ - 'spec/lib/data_exporter_spec.rb'
846
+ - 'spec/lib/data_importer_spec.rb'
847
+ - 'spec/lib/delorean_query_spec.rb'
848
+ - 'spec/lib/mcfly_model_spec.rb'
849
+ - 'spec/lib/xl_spec.rb'
850
+ - 'spec/lib/xl_styles_spec.rb'
851
+ - 'spec/models/data_grid_spec.rb'
852
+
853
+ # Offense count: 1
854
+ # Configuration parameters: .
855
+ # SupportedStyles: snake_case, camelCase
856
+ Naming/MethodName:
857
+ EnforcedStyle: snake_case
858
+
859
+ # Offense count: 9
860
+ # Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist, MethodDefinitionMacros.
861
+ # NamePrefix: is_, has_, have_
862
+ # NamePrefixBlacklist: is_, has_, have_
863
+ # NameWhitelist: is_a?
864
+ # MethodDefinitionMacros: define_method, define_singleton_method
865
+ Naming/PredicateName:
866
+ Exclude:
867
+ - 'spec/**/*'
868
+ - 'app/components/marty/grid.rb'
869
+ - 'app/components/marty/main_auth_app.rb'
870
+ - 'app/models/marty/user.rb'
871
+ - 'lib/marty/aws/base.rb'
872
+ - 'lib/marty/permissions.rb'
873
+ - 'other/marty/api/base.rb'
874
+ - 'other/marty/diagnostic/packer.rb'
875
+
876
+ # Offense count: 146
877
+ # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
878
+ # AllowedNames: io, id, to, by, on, in, at, ip, db
879
+ Naming/UncommunicativeMethodParamName:
880
+ Enabled: false
881
+
882
+ # Offense count: 5
883
+ # Configuration parameters: EnforcedStyle.
884
+ # SupportedStyles: snake_case, camelCase
885
+ Naming/VariableName:
886
+ Exclude:
887
+ - 'app/models/marty/enum.rb'
888
+ - 'app/models/marty/tag.rb'
889
+ - 'spec/dummy/public/extjs/classic/theme-base/sass/utils.rb'
890
+ - 'spec/features/enum_spec.rb'
891
+
892
+ # Offense count: 1
893
+ # Cop supports --auto-correct.
894
+ Performance/Casecmp:
895
+ Exclude:
896
+ - 'app/components/marty/base_rule_view.rb'
897
+
898
+ # Offense count: 2
899
+ # Cop supports --auto-correct.
900
+ Performance/CompareWithBlock:
901
+ Exclude:
902
+ - 'app/components/marty/report_select.rb'
903
+ - 'app/models/marty/event.rb'
904
+
905
+ # Offense count: 1
906
+ # Cop supports --auto-correct.
907
+ # Configuration parameters: IncludeActiveSupportAliases.
908
+ Performance/DoubleStartEndWith:
909
+ Exclude:
910
+ - 'lib/marty/migrations.rb'
911
+
912
+ # Offense count: 2
913
+ # Cop supports --auto-correct.
914
+ # Configuration parameters: EnabledForFlattenWithoutParams.
915
+ Performance/FlatMap:
916
+ Exclude:
917
+ - 'lib/marty/aws/request.rb'
918
+ - 'other/marty/diagnostic/aws/ec2_instance.rb'
919
+
920
+ # Offense count: 2
921
+ # Cop supports --auto-correct.
922
+ Performance/InefficientHashSearch:
923
+ Exclude:
924
+ - 'app/components/marty/base_rule_view.rb'
925
+ - 'other/marty/diagnostic/reporter.rb'
926
+
927
+ # Offense count: 5
928
+ # Cop supports --auto-correct.
929
+ Performance/RedundantBlockCall:
930
+ Exclude:
931
+ - 'lib/marty/mcfly_model.rb'
932
+ - 'spec/features/reporting_spec.rb'
933
+ - 'spec/features/scripting_spec.rb'
934
+ - 'spec/features/scripting_test_spec.rb'
935
+ - 'spec/support/setup.rb'
936
+
937
+ # Offense count: 5
938
+ # Cop supports --auto-correct.
939
+ Performance/RedundantMatch:
940
+ Exclude:
941
+ - 'app/components/marty/base_rule_view.rb'
942
+ - 'lib/marty/migrations.rb'
943
+ - 'spec/support/components/netzke_combobox.rb'
944
+ - 'spec/support/components/netzke_grid.rb'
945
+
946
+ # Offense count: 5
947
+ # Cop supports --auto-correct.
948
+ # Configuration parameters: MaxKeyValuePairs.
949
+ Performance/RedundantMerge:
950
+ Exclude:
951
+ - 'app/components/marty/api_config_view.rb'
952
+ - 'app/components/marty/base_rule_view.rb'
953
+ - 'app/components/marty/data_grid_view.rb'
954
+ - 'app/components/marty/event_view.rb'
955
+ - 'app/components/marty/user_view.rb'
956
+
957
+ # Offense count: 16
958
+ # Cop supports --auto-correct.
959
+ Performance/Size:
960
+ Exclude:
961
+ - 'spec/features/rule_spec.rb'
962
+ - 'spec/lib/mcfly_model_spec.rb'
963
+ - 'spec/models/rule_spec.rb'
964
+
965
+ # Offense count: 4
966
+ # Cop supports --auto-correct.
967
+ Performance/StringReplacement:
968
+ Exclude:
969
+ - 'spec/dummy/app/models/gemini/fannie_bup.rb'
970
+ - 'spec/lib/data_importer_spec.rb'
971
+
972
+ # Offense count: 2
973
+ # Cop supports --auto-correct.
974
+ # Configuration parameters: AutoCorrect.
975
+ Performance/TimesMap:
976
+ Exclude:
977
+ - 'spec/models/data_grid_spec.rb'
978
+
979
+ # Offense count: 1
980
+ # Cop supports --auto-correct.
981
+ Performance/UnneededSort:
982
+ Exclude:
983
+ - 'app/models/marty/event.rb'
984
+
985
+ # Offense count: 9
986
+ # Cop supports --auto-correct.
987
+ # Configuration parameters: EnforcedStyle.
988
+ # SupportedStyles: prefer_alias, prefer_alias_method
989
+ Style/Alias:
990
+ Exclude:
991
+ - 'app/models/marty/pg_enum.rb'
992
+ - 'app/models/marty/vw_promise.rb'
993
+ - 'lib/marty/monkey.rb'
994
+ - 'lib/marty/promise_proxy.rb'
995
+ - 'spec/support/components/netzke_grid.rb'
996
+ - 'spec/support/shared_connection.rb'
997
+
998
+ # Offense count: 3
999
+ # Cop supports --auto-correct.
1000
+ # Configuration parameters: EnforcedStyle.
1001
+ # SupportedStyles: always, conditionals
1002
+ Style/AndOr:
1003
+ Exclude:
1004
+ - 'app/components/marty/import_view.rb'
1005
+ - 'app/models/marty/config.rb'
1006
+
1007
+ # Offense count: 23
1008
+ # Cop supports --auto-correct.
1009
+ # Configuration parameters: EnforcedStyle.
1010
+ # SupportedStyles: percent_q, bare_percent
1011
+ Style/BarePercentLiterals:
1012
+ Exclude:
1013
+ - 'app/components/marty/simple_app.rb'
1014
+ - 'app/models/marty/base_rule.rb'
1015
+ - 'app/models/marty/delorean_rule.rb'
1016
+ - 'lib/marty/rule_script_set.rb'
1017
+ - 'spec/features/rule_spec.rb'
1018
+ - 'spec/models/config_spec.rb'
1019
+ - 'spec/support/netzke.rb'
1020
+
1021
+ # Offense count: 155
1022
+ # Cop supports --auto-correct.
1023
+ # Configuration parameters: EnforcedStyle, ProceduralMethods, FunctionalMethods, IgnoredMethods.
1024
+ # SupportedStyles: line_count_based, semantic, braces_for_chaining
1025
+ # ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
1026
+ # FunctionalMethods: let, let!, subject, watch
1027
+ # IgnoredMethods: lambda, proc, it
1028
+ Style/BlockDelimiters:
1029
+ Enabled: false
1030
+
1031
+ # Offense count: 126
1032
+ # Cop supports --auto-correct.
1033
+ # Configuration parameters: EnforcedStyle.
1034
+ # SupportedStyles: braces, no_braces, context_dependent
1035
+ Style/BracesAroundHashParameters:
1036
+ Enabled: false
1037
+
1038
+ # Offense count: 21
1039
+ Style/CaseEquality:
1040
+ Exclude:
1041
+ - 'app/components/marty/report_form.rb'
1042
+ - 'app/models/marty/data_grid.rb'
1043
+ - 'lib/marty/data_change.rb'
1044
+ - 'lib/marty/data_conversion.rb'
1045
+ - 'lib/marty/mcfly_model.rb'
1046
+ - 'lib/marty/monkey.rb'
1047
+ - 'other/marty/api/base.rb'
1048
+ - 'spec/lib/mcfly_model_spec.rb'
1049
+
1050
+ # Offense count: 157
1051
+ # Cop supports --auto-correct.
1052
+ # Configuration parameters: AutoCorrect, EnforcedStyle.
1053
+ # SupportedStyles: nested, compact
1054
+ Style/ClassAndModuleChildren:
1055
+ Enabled: false
1056
+
1057
+ # Offense count: 12
1058
+ # Cop supports --auto-correct.
1059
+ # Configuration parameters: EnforcedStyle.
1060
+ # SupportedStyles: is_a?, kind_of?
1061
+ Style/ClassCheck:
1062
+ Exclude:
1063
+ - 'lib/marty/xl.rb'
1064
+
1065
+ # Offense count: 34
1066
+ Style/ClassVars:
1067
+ Exclude:
1068
+ - 'app/components/marty/api_log_view.rb'
1069
+ - 'app/components/marty/report_form.rb'
1070
+ - 'app/helpers/marty/script_set.rb'
1071
+ - 'app/models/marty/data_grid.rb'
1072
+ - 'app/models/marty/tag.rb'
1073
+ - 'lib/marty/data_conversion.rb'
1074
+ - 'lib/marty/rule_script_set.rb'
1075
+ - 'lib/marty/util.rb'
1076
+ - 'other/marty/api/base.rb'
1077
+ - 'other/marty/diagnostic/base.rb'
1078
+ - 'other/marty/diagnostic/request.rb'
1079
+ - 'spec/support/helper.rb'
1080
+ - 'spec/support/post_run_logger.rb'
1081
+ - 'spec/support/shared_connection.rb'
1082
+
1083
+ # Offense count: 6
1084
+ # Cop supports --auto-correct.
1085
+ Style/ColonMethodCall:
1086
+ Exclude:
1087
+ - 'app/components/marty/data_grid_view.rb'
1088
+ - 'app/components/marty/script_tester.rb'
1089
+ - 'other/marty/api/base.rb'
1090
+
1091
+ # Offense count: 5
1092
+ # Cop supports --auto-correct.
1093
+ # Configuration parameters: Keywords.
1094
+ # Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW
1095
+ Style/CommentAnnotation:
1096
+ Exclude:
1097
+ - 'app/controllers/marty/report_controller.rb'
1098
+ - 'app/models/marty/delorean_rule.rb'
1099
+ - 'app/models/marty/promise.rb'
1100
+ - 'lib/marty/xl.rb'
1101
+
1102
+ # Offense count: 1
1103
+ Style/CommentedKeyword:
1104
+ Exclude:
1105
+ - 'app/models/marty/data_grid.rb'
1106
+
1107
+ # Offense count: 6
1108
+ # Cop supports --auto-correct.
1109
+ # Configuration parameters: EnforcedStyle, SingleLineConditionsOnly, IncludeTernaryExpressions.
1110
+ # SupportedStyles: assign_to_condition, assign_inside_condition
1111
+ Style/ConditionalAssignment:
1112
+ Exclude:
1113
+ - 'app/components/marty/auth_app.rb'
1114
+ - 'app/controllers/marty/application_controller.rb'
1115
+ - 'app/models/marty/script.rb'
1116
+ - 'spec/other/diagnostic/reporter_spec.rb'
1117
+ - 'spec/support/components/netzke_combobox.rb'
1118
+ - 'spec/support/components/netzke_grid.rb'
1119
+
1120
+ # Offense count: 3
1121
+ # Cop supports --auto-correct.
1122
+ Style/DefWithParentheses:
1123
+ Exclude:
1124
+ - 'spec/dummy/db/migrate/20171221095312_create_gemini_my_rules.rb'
1125
+ - 'spec/dummy/db/migrate/20171221095359_create_gemini_xyz_rules.rb'
1126
+ - 'spec/dummy/public/extjs/classic/theme-base/sass/utils.rb'
1127
+
1128
+ # Offense count: 181
1129
+ Style/Documentation:
1130
+ Enabled: false
1131
+
1132
+ # Offense count: 5
1133
+ Style/DoubleNegation:
1134
+ Exclude:
1135
+ - 'app/components/marty/auth_app.rb'
1136
+ - 'app/components/marty/report_form.rb'
1137
+ - 'app/models/marty/data_grid.rb'
1138
+ - 'app/models/marty/event.rb'
1139
+
1140
+ # Offense count: 1
1141
+ # Cop supports --auto-correct.
1142
+ Style/EachForSimpleLoop:
1143
+ Exclude:
1144
+ - 'spec/controllers/rpc_import_spec.rb'
1145
+
1146
+ # Offense count: 2
1147
+ # Cop supports --auto-correct.
1148
+ Style/EachWithObject:
1149
+ Exclude:
1150
+ - 'lib/marty/util.rb'
1151
+ - 'lib/marty/xl.rb'
1152
+
1153
+ # Offense count: 2
1154
+ # Cop supports --auto-correct.
1155
+ Style/EmptyCaseCondition:
1156
+ Exclude:
1157
+ - 'app/components/marty/base_rule_view.rb'
1158
+ - 'app/models/marty/data_grid.rb'
1159
+
1160
+ # Offense count: 2
1161
+ # Cop supports --auto-correct.
1162
+ Style/EmptyLiteral:
1163
+ Exclude:
1164
+ - 'spec/dummy/public/extjs/classic/theme-base/sass/utils.rb'
1165
+
1166
+ # Offense count: 8
1167
+ # Cop supports --auto-correct.
1168
+ # Configuration parameters: EnforcedStyle.
1169
+ # SupportedStyles: compact, expanded
1170
+ Style/EmptyMethod:
1171
+ Exclude:
1172
+ - 'app/models/marty/data_grid.rb'
1173
+ - 'app/models/marty/pg_enum.rb'
1174
+ - 'other/marty/api/base.rb'
1175
+ - 'spec/job_helper.rb'
1176
+ - 'spec/models/import_type_spec.rb'
1177
+ - 'spec/support/empty_job.rb'
1178
+
1179
+ # Offense count: 22
1180
+ # Cop supports --auto-correct.
1181
+ Style/ExpandPathArguments:
1182
+ Enabled: false
1183
+
1184
+ # Offense count: 9
1185
+ # Cop supports --auto-correct.
1186
+ # Configuration parameters: EnforcedStyle.
1187
+ # SupportedStyles: format, sprintf, percent
1188
+ Style/FormatString:
1189
+ Exclude:
1190
+ - 'app/components/marty/base_rule_view.rb'
1191
+ - 'app/components/marty/extras/misc.rb'
1192
+ - 'app/models/marty/base_rule.rb'
1193
+ - 'spec/controllers/rpc_controller_spec.rb'
1194
+ - 'spec/dummy/app/models/gemini/helper.rb'
1195
+ - 'spec/features/rule_spec.rb'
1196
+ - 'spec/lib/struct_compare_spec.rb'
1197
+ - 'spec/models/rule_spec.rb'
1198
+ - 'spec/support/performance_helper.rb'
1199
+
1200
+ # Offense count: 9
1201
+ # Configuration parameters: EnforcedStyle.
1202
+ # SupportedStyles: annotated, template, unannotated
1203
+ Style/FormatStringToken:
1204
+ Exclude:
1205
+ - 'app/models/marty/base_rule.rb'
1206
+ - 'spec/controllers/rpc_controller_spec.rb'
1207
+ - 'spec/features/rule_spec.rb'
1208
+ - 'spec/lib/struct_compare_spec.rb'
1209
+ - 'spec/models/rule_spec.rb'
1210
+
1211
+ # Offense count: 8
1212
+ # Configuration parameters: AllowedVariables.
1213
+ Style/GlobalVars:
1214
+ Exclude:
1215
+ - 'spec/dummy/public/extjs/build/examples/classic/app/nested-loading/resources/sass/config.rb'
1216
+ - 'spec/dummy/public/extjs/build/examples/classic/panel/bubble-panel/resources/sass/config.rb'
1217
+ - 'spec/dummy/public/extjs/examples/classic/app/nested-loading/resources/sass/config.rb'
1218
+ - 'spec/dummy/public/extjs/examples/classic/panel/bubble-panel/resources/sass/config.rb'
1219
+
1220
+ # Offense count: 16
1221
+ # Configuration parameters: MinBodyLength.
1222
+ Style/GuardClause:
1223
+ Exclude:
1224
+ - 'app/components/marty/mcfly_grid_panel.rb'
1225
+ - 'app/controllers/marty/application_controller.rb'
1226
+ - 'app/models/marty/config.rb'
1227
+ - 'app/models/marty/data_grid.rb'
1228
+ - 'app/models/marty/delorean_rule.rb'
1229
+ - 'app/models/marty/name_validator.rb'
1230
+ - 'app/models/marty/token.rb'
1231
+ - 'app/models/marty/user.rb'
1232
+ - 'lib/marty/json_schema.rb'
1233
+ - 'lib/marty/util.rb'
1234
+ - 'spec/dummy/public/extjs/classic/theme-base/sass/utils.rb'
1235
+ - 'spec/lib/json_schema_spec.rb'
1236
+ - 'spec/support/post_run_logger.rb'
1237
+
1238
+ # Offense count: 43
1239
+ # Cop supports --auto-correct.
1240
+ # Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
1241
+ # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
1242
+ Style/HashSyntax:
1243
+ Exclude:
1244
+ - 'app/components/marty/simple_app.rb'
1245
+ - 'app/models/marty/user.rb'
1246
+ - 'app/models/marty/vw_promise.rb'
1247
+ - 'db/migrate/090_create_delayed_jobs.rb'
1248
+ - 'lib/marty/engine.rb'
1249
+ - 'lib/marty/migrations.rb'
1250
+ - 'spec/features/scripting_spec.rb'
1251
+ - 'spec/features/user_view_spec.rb'
1252
+ - 'spec/lib/json_schema_spec.rb'
1253
+ - 'spec/spec_helper.rb'
1254
+ - 'spec/support/netzke.rb'
1255
+ - 'spec/support/shared_connection.rb'
1256
+
1257
+ # Offense count: 2
1258
+ Style/IdenticalConditionalBranches:
1259
+ Exclude:
1260
+ - 'app/components/marty/mcfly_grid_panel.rb'
1261
+
1262
+ # Offense count: 1
1263
+ Style/IfInsideElse:
1264
+ Exclude:
1265
+ - 'lib/marty/data_change.rb'
1266
+
1267
+ # Offense count: 7
1268
+ # Cop supports --auto-correct.
1269
+ Style/IfUnlessModifier:
1270
+ Exclude:
1271
+ - 'app/components/marty/promise_view.rb'
1272
+ - 'app/models/marty/promise.rb'
1273
+ - 'app/models/marty/token.rb'
1274
+ - 'spec/dummy/public/extjs/classic/theme-base/sass/utils.rb'
1275
+ - 'spec/dummy/public/extjs/modern/theme-base/sass/utils.rb'
1276
+
1277
+ # Offense count: 1
1278
+ # Cop supports --auto-correct.
1279
+ Style/InfiniteLoop:
1280
+ Exclude:
1281
+ - 'app/models/marty/promise.rb'
1282
+
1283
+ # Offense count: 7
1284
+ # Cop supports --auto-correct.
1285
+ # Configuration parameters: InverseMethods, InverseBlocks.
1286
+ Style/InverseMethods:
1287
+ Exclude:
1288
+ - 'app/components/marty/report_form.rb'
1289
+ - 'app/components/marty/report_select.rb'
1290
+ - 'app/models/marty/delorean_rule.rb'
1291
+ - 'lib/marty/data_change.rb'
1292
+ - 'lib/marty/data_conversion.rb'
1293
+ - 'lib/marty/xl.rb'
1294
+ - 'spec/support/download_helper.rb'
1295
+
1296
+ # Offense count: 30
1297
+ # Cop supports --auto-correct.
1298
+ # Configuration parameters: EnforcedStyle.
1299
+ # SupportedStyles: line_count_dependent, lambda, literal
1300
+ Style/Lambda:
1301
+ Exclude:
1302
+ - 'app/components/marty/api_config_view.rb'
1303
+ - 'app/components/marty/api_log_view.rb'
1304
+ - 'app/components/marty/base_rule_view.rb'
1305
+ - 'app/components/marty/config_view.rb'
1306
+ - 'app/components/marty/event_view.rb'
1307
+ - 'app/components/marty/extras/layout.rb'
1308
+ - 'app/components/marty/log_view.rb'
1309
+ - 'app/components/marty/promise_view.rb'
1310
+ - 'app/components/marty/script_form.rb'
1311
+ - 'app/components/marty/script_grid.rb'
1312
+ - 'spec/lib/xl_spec.rb'
1313
+ - 'spec/lib/xl_styles_spec.rb'
1314
+ - 'spec/support/shared_connection.rb'
1315
+
1316
+ # Offense count: 29
1317
+ # Cop supports --auto-correct.
1318
+ Style/LineEndConcatenation:
1319
+ Exclude:
1320
+ - 'app/components/marty/posting_grid.rb'
1321
+ - 'app/controllers/marty/application_controller.rb'
1322
+ - 'lib/marty/data_change.rb'
1323
+ - 'lib/marty/data_importer.rb'
1324
+ - 'lib/marty/mcfly_model.rb'
1325
+ - 'lib/marty/migrations.rb'
1326
+ - 'other/marty/api/base.rb'
1327
+ - 'spec/controllers/application_controller_spec.rb'
1328
+ - 'spec/dummy/app/models/gemini/extras/settlement_import.rb'
1329
+ - 'spec/features/reporting_spec.rb'
1330
+ - 'spec/features/user_view_spec.rb'
1331
+ - 'spec/models/api_auth_spec.rb'
1332
+ - 'spec/models/script_spec.rb'
1333
+
1334
+ # Offense count: 14
1335
+ # Cop supports --auto-correct.
1336
+ # Configuration parameters: IgnoredMethods.
1337
+ Style/MethodCallWithoutArgsParentheses:
1338
+ Exclude:
1339
+ - 'spec/dummy/public/extjs/classic/theme-base/sass/utils.rb'
1340
+ - 'spec/features/log_view_spec.rb'
1341
+ - 'spec/features/rule_spec.rb'
1342
+ - 'spec/lib/xl_spec.rb'
1343
+ - 'spec/lib/xl_styles_spec.rb'
1344
+ - 'spec/support/netzke.rb'
1345
+
1346
+ # Offense count: 99
1347
+ # Cop supports --auto-correct.
1348
+ # Configuration parameters: EnforcedStyle.
1349
+ # SupportedStyles: require_parentheses, require_no_parentheses, require_no_parentheses_except_multiline
1350
+ Style/MethodDefParentheses:
1351
+ Enabled: false
1352
+
1353
+ # Offense count: 1
1354
+ Style/MethodMissingSuper:
1355
+ Exclude:
1356
+ - 'lib/marty/promise_proxy.rb'
1357
+
1358
+ # Offense count: 2
1359
+ Style/MissingRespondToMissing:
1360
+ Exclude:
1361
+ - 'lib/marty/logger.rb'
1362
+ - 'lib/marty/promise_proxy.rb'
1363
+
1364
+ # Offense count: 1
1365
+ # Cop supports --auto-correct.
1366
+ # Configuration parameters: EnforcedStyle.
1367
+ # SupportedStyles: module_function, extend_self
1368
+ Style/ModuleFunction:
1369
+ Exclude:
1370
+ - 'spec/support/download_helper.rb'
1371
+
1372
+ # Offense count: 8
1373
+ Style/MultilineBlockChain:
1374
+ Exclude:
1375
+ - 'app/components/marty/report_select.rb'
1376
+ - 'app/models/marty/event.rb'
1377
+ - 'lib/marty/migrations.rb'
1378
+ - 'lib/marty/xl.rb'
1379
+ - 'other/marty/diagnostic/delayed_job_version.rb'
1380
+ - 'other/marty/diagnostic/node.rb'
1381
+
1382
+ # Offense count: 23
1383
+ # Cop supports --auto-correct.
1384
+ Style/MultilineIfModifier:
1385
+ Exclude:
1386
+ - 'app/components/marty/api_log_view.rb'
1387
+ - 'app/components/marty/script_form.rb'
1388
+ - 'app/components/marty/user_view.rb'
1389
+ - 'app/models/marty/base_rule.rb'
1390
+ - 'app/models/marty/data_grid.rb'
1391
+ - 'app/models/marty/delorean_rule.rb'
1392
+ - 'lib/marty/data_exporter.rb'
1393
+ - 'lib/marty/data_importer.rb'
1394
+ - 'lib/marty/json_schema.rb'
1395
+ - 'lib/marty/migrations.rb'
1396
+ - 'lib/marty/promise_job.rb'
1397
+ - 'lib/marty/xl.rb'
1398
+ - 'spec/support/structure_compare.rb'
1399
+
1400
+ # Offense count: 39
1401
+ Style/MultilineTernaryOperator:
1402
+ Enabled: false
1403
+
1404
+ # Offense count: 3
1405
+ Style/MultipleComparison:
1406
+ Exclude:
1407
+ - 'app/components/marty/base_rule_view.rb'
1408
+ - 'app/models/marty/data_grid.rb'
1409
+ - 'lib/marty/xl.rb'
1410
+
1411
+ # Offense count: 83
1412
+ # Cop supports --auto-correct.
1413
+ Style/MutableConstant:
1414
+ Enabled: false
1415
+
1416
+ # Offense count: 16
1417
+ # Cop supports --auto-correct.
1418
+ # Configuration parameters: EnforcedStyle.
1419
+ # SupportedStyles: both, prefix, postfix
1420
+ Style/NegatedIf:
1421
+ Exclude:
1422
+ - 'app/components/marty/data_grid_view.rb'
1423
+ - 'app/components/marty/promise_view.rb'
1424
+ - 'app/components/marty/script_grid.rb'
1425
+ - 'app/components/marty/script_tester.rb'
1426
+ - 'app/components/marty/tag_grid.rb'
1427
+ - 'app/models/marty/config.rb'
1428
+ - 'app/models/marty/delorean_rule.rb'
1429
+ - 'app/models/marty/promise.rb'
1430
+ - 'app/models/marty/tag.rb'
1431
+ - 'lib/marty/data_change.rb'
1432
+ - 'lib/marty/data_exporter.rb'
1433
+ - 'spec/dummy/public/extjs/classic/theme-base/sass/utils.rb'
1434
+
1435
+ # Offense count: 1
1436
+ # Cop supports --auto-correct.
1437
+ Style/NegatedWhile:
1438
+ Exclude:
1439
+ - 'spec/support/download_helper.rb'
1440
+
1441
+ # Offense count: 1
1442
+ # Cop supports --auto-correct.
1443
+ # Configuration parameters: Whitelist.
1444
+ # Whitelist: be, be_a, be_an, be_between, be_falsey, be_kind_of, be_instance_of, be_truthy, be_within, eq, eql, end_with, include, match, raise_error, respond_to, start_with
1445
+ Style/NestedParenthesizedCalls:
1446
+ Exclude:
1447
+ - 'spec/controllers/job_controller_spec.rb'
1448
+
1449
+ # Offense count: 6
1450
+ Style/NestedTernaryOperator:
1451
+ Exclude:
1452
+ - 'app/components/marty/base_rule_view.rb'
1453
+ - 'app/models/marty/base_rule.rb'
1454
+ - 'lib/marty/data_conversion.rb'
1455
+ - 'lib/marty/migrations.rb'
1456
+
1457
+ # Offense count: 2
1458
+ # Cop supports --auto-correct.
1459
+ # Configuration parameters: EnforcedStyle, MinBodyLength.
1460
+ # SupportedStyles: skip_modifier_ifs, always
1461
+ Style/Next:
1462
+ Exclude:
1463
+ - 'lib/marty/xl.rb'
1464
+
1465
+ # Offense count: 11
1466
+ # Cop supports --auto-correct.
1467
+ # Configuration parameters: Strict.
1468
+ Style/NumericLiterals:
1469
+ MinDigits: 15
1470
+
1471
+ # Offense count: 10
1472
+ # Cop supports --auto-correct.
1473
+ # Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
1474
+ # SupportedStyles: predicate, comparison
1475
+ Style/NumericPredicate:
1476
+ Exclude:
1477
+ - 'spec/**/*'
1478
+ - 'app/components/marty/main_auth_app.rb'
1479
+ - 'lib/marty/content_handler.rb'
1480
+ - 'lib/marty/data_change.rb'
1481
+ - 'lib/marty/data_importer.rb'
1482
+ - 'lib/marty/xl.rb'
1483
+
1484
+ # Offense count: 42
1485
+ # Cop supports --auto-correct.
1486
+ Style/ParallelAssignment:
1487
+ Enabled: false
1488
+
1489
+ # Offense count: 5
1490
+ # Cop supports --auto-correct.
1491
+ # Configuration parameters: AllowSafeAssignment, AllowInMultilineConditions.
1492
+ Style/ParenthesesAroundCondition:
1493
+ Exclude:
1494
+ - 'app/models/marty/data_grid.rb'
1495
+ - 'lib/marty/aws/request.rb'
1496
+ - 'lib/marty/data_change.rb'
1497
+ - 'lib/marty/xl.rb'
1498
+
1499
+ # Offense count: 12
1500
+ # Cop supports --auto-correct.
1501
+ # Configuration parameters: PreferredDelimiters.
1502
+ Style/PercentLiteralDelimiters:
1503
+ Exclude:
1504
+ - 'app/components/marty/simple_app.rb'
1505
+ - 'app/models/marty/data_grid.rb'
1506
+ - 'lib/marty/migrations.rb'
1507
+ - 'other/marty/api/base.rb'
1508
+ - 'spec/models/event_spec.rb'
1509
+ - 'spec/models/rule_spec.rb'
1510
+
1511
+ # Offense count: 12
1512
+ # Cop supports --auto-correct.
1513
+ # Configuration parameters: EnforcedStyle.
1514
+ # SupportedStyles: lower_case_q, upper_case_q
1515
+ Style/PercentQLiterals:
1516
+ Exclude:
1517
+ - 'app/models/marty/base_rule.rb'
1518
+ - 'spec/features/rule_spec.rb'
1519
+ - 'spec/models/config_spec.rb'
1520
+
1521
+ # Offense count: 2
1522
+ # Cop supports --auto-correct.
1523
+ Style/PerlBackrefs:
1524
+ Exclude:
1525
+ - 'lib/marty/migrations.rb'
1526
+
1527
+ # Offense count: 3
1528
+ # Cop supports --auto-correct.
1529
+ # Configuration parameters: EnforcedStyle.
1530
+ # SupportedStyles: short, verbose
1531
+ Style/PreferredHashMethods:
1532
+ Exclude:
1533
+ - 'app/models/marty/script.rb'
1534
+ - 'lib/marty/data_conversion.rb'
1535
+ - 'lib/marty/monkey.rb'
1536
+
1537
+ # Offense count: 1
1538
+ # Cop supports --auto-correct.
1539
+ Style/Proc:
1540
+ Exclude:
1541
+ - 'app/models/marty/delorean_rule.rb'
1542
+
1543
+ # Offense count: 6
1544
+ # Cop supports --auto-correct.
1545
+ # Configuration parameters: EnforcedStyle.
1546
+ # SupportedStyles: compact, exploded
1547
+ Style/RaiseArgs:
1548
+ Exclude:
1549
+ - 'other/marty/diagnostic/reporter.rb'
1550
+ - 'spec/dummy/public/extjs/classic/theme-base/sass/overrides.rb'
1551
+ - 'spec/dummy/public/extjs/classic/theme-base/sass/utils.rb'
1552
+
1553
+ # Offense count: 1
1554
+ # Cop supports --auto-correct.
1555
+ Style/RandomWithOffset:
1556
+ Exclude:
1557
+ - 'spec/models/data_grid_spec.rb'
1558
+
1559
+ # Offense count: 16
1560
+ # Cop supports --auto-correct.
1561
+ Style/RedundantBegin:
1562
+ Exclude:
1563
+ - 'app/controllers/marty/diagnostic/controller.rb'
1564
+ - 'app/controllers/marty/rpc_controller.rb'
1565
+ - 'app/models/marty/data_grid.rb'
1566
+ - 'app/models/marty/delorean_rule.rb'
1567
+ - 'app/models/marty/event.rb'
1568
+ - 'app/models/marty/promise.rb'
1569
+ - 'lib/marty/json_schema.rb'
1570
+ - 'lib/marty/logger.rb'
1571
+ - 'lib/marty/rule_script_set.rb'
1572
+ - 'other/marty/api/base.rb'
1573
+ - 'other/marty/diagnostic/node.rb'
1574
+ - 'other/marty/diagnostic/version.rb'
1575
+ - 'spec/other/diagnostic/reporter_spec.rb'
1576
+ - 'spec/support/setup.rb'
1577
+ - 'spec/support/structure_compare.rb'
1578
+
1579
+ # Offense count: 6
1580
+ # Cop supports --auto-correct.
1581
+ Style/RedundantParentheses:
1582
+ Exclude:
1583
+ - 'spec/models/data_grid_spec.rb'
1584
+
1585
+ # Offense count: 6
1586
+ # Cop supports --auto-correct.
1587
+ # Configuration parameters: AllowMultipleReturnValues.
1588
+ Style/RedundantReturn:
1589
+ Exclude:
1590
+ - 'app/controllers/marty/report_controller.rb'
1591
+ - 'lib/marty/content_handler.rb'
1592
+ - 'spec/dummy/public/extjs/classic/theme-base/sass/utils.rb'
1593
+ - 'spec/dummy/public/extjs/modern/theme-base/sass/utils.rb'
1594
+ - 'spec/support/components/netzke_grid.rb'
1595
+
1596
+ # Offense count: 79
1597
+ # Cop supports --auto-correct.
1598
+ Style/RedundantSelf:
1599
+ Enabled: false
1600
+
1601
+ # Offense count: 6
1602
+ # Cop supports --auto-correct.
1603
+ # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
1604
+ # SupportedStyles: slashes, percent_r, mixed
1605
+ Style/RegexpLiteral:
1606
+ Exclude:
1607
+ - 'app/models/marty/delorean_rule.rb'
1608
+ - 'lib/marty/content_handler.rb'
1609
+ - 'lib/marty/migrations.rb'
1610
+ - 'lib/marty/monkey.rb'
1611
+ - 'lib/marty/xl.rb'
1612
+ - 'spec/models/event_spec.rb'
1613
+
1614
+ # Offense count: 33
1615
+ # Cop supports --auto-correct.
1616
+ Style/RescueModifier:
1617
+ Enabled: false
1618
+
1619
+ # Offense count: 61
1620
+ # Cop supports --auto-correct.
1621
+ # Configuration parameters: EnforcedStyle.
1622
+ # SupportedStyles: implicit, explicit
1623
+ Style/RescueStandardError:
1624
+ Enabled: false
1625
+
1626
+ # Offense count: 6
1627
+ # Cop supports --auto-correct.
1628
+ # Configuration parameters: AllowAsExpressionSeparator.
1629
+ Style/Semicolon:
1630
+ Exclude:
1631
+ - 'app/components/marty/base_rule_view.rb'
1632
+ - 'app/components/marty/config_view.rb'
1633
+ - 'spec/controllers/rpc_controller_spec.rb'
1634
+ - 'spec/dummy/public/extjs/classic/theme-base/sass/utils.rb'
1635
+ - 'spec/support/helper.rb'
1636
+
1637
+ # Offense count: 3
1638
+ # Cop supports --auto-correct.
1639
+ # Configuration parameters: .
1640
+ # SupportedStyles: use_perl_names, use_english_names
1641
+ Style/SpecialGlobalVars:
1642
+ EnforcedStyle: use_perl_names
1643
+
1644
+ # Offense count: 4433
1645
+ # Cop supports --auto-correct.
1646
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
1647
+ # SupportedStyles: single_quotes, double_quotes
1648
+ Style/StringLiterals:
1649
+ Enabled: false
1650
+
1651
+ # Offense count: 1
1652
+ # Cop supports --auto-correct.
1653
+ # Configuration parameters: EnforcedStyle.
1654
+ # SupportedStyles: single_quotes, double_quotes
1655
+ Style/StringLiteralsInInterpolation:
1656
+ Exclude:
1657
+ - 'spec/spec_helper.rb'
1658
+
1659
+ # Offense count: 1
1660
+ Style/StructInheritance:
1661
+ Exclude:
1662
+ - 'lib/marty/promise_job.rb'
1663
+
1664
+ # Offense count: 75
1665
+ # Cop supports --auto-correct.
1666
+ # Configuration parameters: MinSize.
1667
+ # SupportedStyles: percent, brackets
1668
+ Style/SymbolArray:
1669
+ EnforcedStyle: brackets
1670
+
1671
+ # Offense count: 36
1672
+ # Cop supports --auto-correct.
1673
+ # Configuration parameters: IgnoredMethods.
1674
+ # IgnoredMethods: respond_to, define_method
1675
+ Style/SymbolProc:
1676
+ Exclude:
1677
+ - 'app/components/marty/base_rule_view.rb'
1678
+ - 'app/models/marty/posting.rb'
1679
+ - 'other/marty/diagnostic/collection.rb'
1680
+ - 'other/marty/diagnostic/node.rb'
1681
+ - 'spec/lib/xl_spec.rb'
1682
+ - 'spec/lib/xl_styles_spec.rb'
1683
+ - 'spec/models/rule_spec.rb'
1684
+ - 'spec/other/diagnostic/collection_spec.rb'
1685
+ - 'spec/support/performance_helper.rb'
1686
+
1687
+ # Offense count: 7
1688
+ # Cop supports --auto-correct.
1689
+ # Configuration parameters: EnforcedStyle, AllowSafeAssignment.
1690
+ # SupportedStyles: require_parentheses, require_no_parentheses, require_parentheses_when_complex
1691
+ Style/TernaryParentheses:
1692
+ Exclude:
1693
+ - 'app/models/marty/data_grid.rb'
1694
+ - 'lib/marty/data_change.rb'
1695
+ - 'lib/marty/xl.rb'
1696
+ - 'other/marty/api/base.rb'
1697
+
1698
+ # Offense count: 40
1699
+ # Cop supports --auto-correct.
1700
+ Style/TrailingBodyOnModule:
1701
+ Enabled: false
1702
+
1703
+ # Offense count: 67
1704
+ # Cop supports --auto-correct.
1705
+ # Configuration parameters: EnforcedStyleForMultiline.
1706
+ # SupportedStylesForMultiline: comma, consistent_comma, no_comma
1707
+ Style/TrailingCommaInArguments:
1708
+ Enabled: false
1709
+
1710
+ # Offense count: 61
1711
+ # Cop supports --auto-correct.
1712
+ # Configuration parameters: EnforcedStyleForMultiline.
1713
+ # SupportedStylesForMultiline: comma, consistent_comma, no_comma
1714
+ Style/TrailingCommaInArrayLiteral:
1715
+ Enabled: false
1716
+
1717
+ # Offense count: 169
1718
+ # Cop supports --auto-correct.
1719
+ # Configuration parameters: EnforcedStyleForMultiline.
1720
+ # SupportedStylesForMultiline: comma, consistent_comma, no_comma
1721
+ Style/TrailingCommaInHashLiteral:
1722
+ Enabled: false
1723
+
1724
+ # Offense count: 2
1725
+ # Cop supports --auto-correct.
1726
+ Style/UnlessElse:
1727
+ Exclude:
1728
+ - 'lib/marty/xl.rb'
1729
+ - 'spec/dummy/public/extjs/classic/theme-base/sass/overrides.rb'
1730
+
1731
+ # Offense count: 8
1732
+ # Cop supports --auto-correct.
1733
+ Style/UnneededInterpolation:
1734
+ Exclude:
1735
+ - 'app/components/marty/main_auth_app.rb'
1736
+ - 'lib/marty/rule_script_set.rb'
1737
+ - 'spec/controllers/job_controller_spec.rb'
1738
+ - 'spec/dummy/public/extjs/classic/theme-base/sass/utils.rb'
1739
+ - 'spec/dummy/public/extjs/modern/theme-base/sass/utils.rb'
1740
+ - 'spec/support/netzke.rb'
1741
+
1742
+ # Offense count: 12
1743
+ # Cop supports --auto-correct.
1744
+ Style/UnneededPercentQ:
1745
+ Exclude:
1746
+ - 'app/components/marty/simple_app.rb'
1747
+ - 'spec/features/rule_spec.rb'
1748
+ - 'spec/models/config_spec.rb'
1749
+
1750
+ # Offense count: 1
1751
+ # Cop supports --auto-correct.
1752
+ Style/WhileUntilDo:
1753
+ Exclude:
1754
+ - 'app/models/marty/promise.rb'
1755
+
1756
+ # Offense count: 133
1757
+ # Cop supports --auto-correct.
1758
+ # Configuration parameters: WordRegex.
1759
+ # SupportedStyles: percent, brackets
1760
+ Style/WordArray:
1761
+ EnforcedStyle: percent
1762
+ MinSize: 18
1763
+
1764
+ # Offense count: 5
1765
+ # Cop supports --auto-correct.
1766
+ Style/ZeroLengthPredicate:
1767
+ Exclude:
1768
+ - 'app/components/marty/main_auth_app.rb'
1769
+ - 'app/models/marty/data_grid.rb'
1770
+ - 'app/models/marty/vw_promise.rb'
1771
+ - 'lib/marty/permissions.rb'
1772
+
1773
+ # Offense count: 247
1774
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
1775
+ # URISchemes: http, https
1776
+ Metrics/LineLength:
1777
+ Max: 275