cucumber-rails 1.7.0 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +1 -0
  3. data/.rubocop.yml +35 -0
  4. data/.rubocop_todo.yml +14 -398
  5. data/.travis.yml +23 -8
  6. data/Appraisals +26 -23
  7. data/CHANGELOG.md +70 -15
  8. data/CONTRIBUTING.md +4 -14
  9. data/Gemfile +2 -4
  10. data/README.md +4 -7
  11. data/Rakefile +17 -13
  12. data/bin/install_geckodriver.sh +1 -1
  13. data/cucumber-rails.gemspec +24 -24
  14. data/dev_tasks/cucumber.rake +2 -0
  15. data/dev_tasks/rspec.rake +2 -0
  16. data/dev_tasks/yard.rake +6 -5
  17. data/dev_tasks/yard/default/layout/html/setup.rb +6 -1
  18. data/features/allow_rescue.feature +11 -11
  19. data/features/annotations.feature +2 -2
  20. data/features/capybara_javascript_drivers.feature +11 -22
  21. data/features/choose_javascript_database_strategy.feature +36 -56
  22. data/features/database_cleaner.feature +12 -12
  23. data/features/disable_automatic_database_cleaning.feature +10 -16
  24. data/features/emulate_javascript.feature +16 -16
  25. data/features/no_database.feature +5 -6
  26. data/features/raising_errors.feature +2 -2
  27. data/features/rerun_profile.feature +4 -4
  28. data/features/rest_api.feature +10 -10
  29. data/features/step_definitions/cucumber_rails_steps.rb +20 -101
  30. data/features/support/aruba.rb +2 -0
  31. data/features/support/cucumber_rails_helper.rb +80 -0
  32. data/features/support/env.rb +4 -30
  33. data/features/support/legacy_web_steps_support.rb +1 -1
  34. data/gemfiles/rails_4_2.gemfile +4 -4
  35. data/gemfiles/rails_5_0.gemfile +4 -4
  36. data/gemfiles/rails_5_1.gemfile +3 -3
  37. data/gemfiles/rails_5_2.gemfile +4 -4
  38. data/gemfiles/rails_6_0.gemfile +3 -2
  39. data/lib/cucumber/rails.rb +14 -6
  40. data/lib/cucumber/rails/action_controller.rb +10 -6
  41. data/lib/cucumber/rails/application.rb +13 -7
  42. data/lib/cucumber/rails/capybara.rb +2 -0
  43. data/lib/cucumber/rails/capybara/javascript_emulation.rb +17 -7
  44. data/lib/cucumber/rails/capybara/select_dates_and_times.rb +3 -1
  45. data/lib/cucumber/rails/database.rb +25 -7
  46. data/lib/cucumber/rails/hooks.rb +2 -0
  47. data/lib/cucumber/rails/hooks/active_record.rb +8 -4
  48. data/lib/cucumber/rails/hooks/allow_rescue.rb +2 -0
  49. data/lib/cucumber/rails/hooks/database_cleaner.rb +4 -2
  50. data/lib/cucumber/rails/hooks/mail.rb +2 -0
  51. data/lib/cucumber/rails/rspec.rb +3 -1
  52. data/lib/cucumber/rails/world.rb +12 -6
  53. data/lib/generators/cucumber/{install/USAGE → USAGE} +0 -0
  54. data/lib/generators/cucumber/{install/install_generator.rb → install_generator.rb} +18 -9
  55. data/lib/generators/cucumber/{install/templates → templates}/config/cucumber.yml.erb +0 -0
  56. data/lib/generators/cucumber/{install/templates → templates}/script/cucumber +1 -0
  57. data/lib/generators/cucumber/{install/templates → templates}/support/_rails_each_run.rb.erb +0 -0
  58. data/lib/generators/cucumber/{install/templates → templates}/support/_rails_prefork.rb.erb +0 -0
  59. data/lib/generators/cucumber/{install/templates → templates}/support/capybara.rb +2 -0
  60. data/lib/generators/cucumber/{install/templates → templates}/support/edit_warning.txt +0 -0
  61. data/lib/generators/cucumber/{install/templates → templates}/support/rails.rb.erb +0 -0
  62. data/lib/generators/cucumber/{install/templates → templates}/support/rails_spork.rb.erb +0 -0
  63. data/lib/generators/cucumber/{install/templates → templates}/tasks/cucumber.rake.erb +0 -0
  64. data/spec/cucumber/rails/database_spec.rb +20 -16
  65. data/spec/generators/cucumber/{install/install_generator_spec.rb → install_generator_spec.rb} +16 -6
  66. data/spec/spec_helper.rb +4 -2
  67. metadata +99 -96
  68. data/features/support/bundler_pre_support.rb +0 -28
  69. data/features/support/fixtures/bundler-1.0.21.gem +0 -0
  70. data/features/support/fixtures/bundler-1.1.rc.gem +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b276ab8f9a0ebd797f290786e0afced74033c0f4
4
- data.tar.gz: 80af0b6ba3e16d29cfcd93e9f8f82c0e1e01217b
2
+ SHA256:
3
+ metadata.gz: 4583ae621b7346d537d3ab6e4e66da4f39b99c04e5403aab0d94a60fa9e20142
4
+ data.tar.gz: 832a66009f3801b9a1efb43d7a83a853076465afbbcaf2b44fbc2b25514fae75
5
5
  SHA512:
6
- metadata.gz: 493e90cf574a3785e83982e0dffcc6cc998c3e9f1ceac1ace13446bb033222a26b439376780238d3897eb34d4cfebf77fd06b5232b691d3538eeb8e7577a4338
7
- data.tar.gz: 3caca7b73bbdfeb694ac0812ff0d2a7503cfe98b09589dd056ad101addeaa0f2971cb6c4086fb4f31ea6685c92ffd2d157a1825489e487b547d569225c497148
6
+ metadata.gz: ab69574710466da0405aa96555ade3c78a5013f29181534908bdfd6fc92157fe9410fc65228920a90cdfc1862079573754aa63beaeff53229fa2574b6f3a09a8
7
+ data.tar.gz: 31f270978a478b0ca111271417f19325b60e7d1f6823abddc62598ae0fabcfc9c93dfc494775d7c8451e08b2dc9c3b4e9f296148552b766272dc99793487df6b
data/.gitignore CHANGED
@@ -11,3 +11,4 @@ gemfiles/*.lock
11
11
  Gemfile.lock
12
12
  spec/examples.txt
13
13
  .idea
14
+ .ruby-version
@@ -1 +1,36 @@
1
1
  inherit_from: .rubocop_todo.yml
2
+
3
+ require:
4
+ - rubocop-rspec
5
+ - rubocop-performance
6
+
7
+ AllCops:
8
+ TargetRubyVersion: 2.3
9
+ Exclude:
10
+ # This file is something which we aren't advising people to use
11
+ # Probably need to consider deleting this fully at some point
12
+ - 'features/support/legacy_web_steps_support.rb'
13
+ # These are auto-generated from a load of features that we
14
+ # don't have direct control over
15
+ - 'tmp/**/*'
16
+ # Generated by appraisal
17
+ - 'gemfiles/*.gemfile'
18
+
19
+ Style/Documentation:
20
+ Enabled: false
21
+
22
+ Metrics/LineLength:
23
+ Max: 200
24
+ IgnoredPatterns:
25
+ - '^Given'
26
+ - '^When'
27
+ - '^Then'
28
+
29
+ Style/RegexpLiteral:
30
+ EnforcedStyle: slashes
31
+ AllowInnerSlashes: true
32
+
33
+ BlockLength:
34
+ Exclude:
35
+ - './spec/**/*_spec.rb'
36
+ - 'cucumber-rails.gemspec'
@@ -1,443 +1,59 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2019-04-17 11:50:08 +0200 using RuboCop version 0.65.0.
3
+ # on 2019-07-31 11:34:26 +0200 using RuboCop version 0.72.0.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
7
7
  # versions of RuboCop, may require this file to be generated again.
8
8
 
9
- # Offense count: 9
10
- # Cop supports --auto-correct.
11
- # Configuration parameters: TreatCommentsAsGroupSeparators, Include.
12
- # Include: **/*.gemfile, **/Gemfile, **/gems.rb
13
- Bundler/OrderedGems:
14
- Exclude:
15
- - 'gemfiles/rails_4_2.gemfile'
16
- - 'gemfiles/rails_5_0.gemfile'
17
- - 'gemfiles/rails_5_1.gemfile'
18
- - 'gemfiles/rails_5_2.gemfile'
19
- - 'gemfiles/rails_6_0.gemfile'
20
-
21
9
  # Offense count: 1
22
- # Configuration parameters: Include.
23
- # Include: **/*.gemspec
24
- Gemspec/DuplicatedAssignment:
25
- Exclude:
26
- - 'cucumber-rails.gemspec'
27
-
28
- # Offense count: 3
29
- # Cop supports --auto-correct.
30
- # Configuration parameters: TreatCommentsAsGroupSeparators, Include.
31
- # Include: **/*.gemspec
32
- Gemspec/OrderedDependencies:
33
- Exclude:
34
- - 'cucumber-rails.gemspec'
35
-
36
- # Offense count: 1
37
- # Cop supports --auto-correct.
38
- # Configuration parameters: EnforcedStyle, IndentationWidth.
39
- # SupportedStyles: outdent, indent
40
- Layout/AccessModifierIndentation:
41
- Exclude:
42
- - 'lib/cucumber/rails/database.rb'
43
-
44
- # Offense count: 1
45
- # Cop supports --auto-correct.
46
- # Configuration parameters: EnforcedStyleAlignWith.
47
- # SupportedStylesAlignWith: either, start_of_block, start_of_line
48
- Layout/BlockAlignment:
49
- Exclude:
50
- - 'features/support/env.rb'
51
-
52
- # Offense count: 1
53
- # Cop supports --auto-correct.
54
- Layout/ClosingHeredocIndentation:
55
- Exclude:
56
- - 'features/support/legacy_web_steps_support.rb'
57
-
58
- # Offense count: 4
59
- # Cop supports --auto-correct.
60
- Layout/EmptyLineAfterGuardClause:
61
- Exclude:
62
- - 'Rakefile'
63
- - 'dev_tasks/yard.rake'
64
- - 'lib/cucumber/rails/database.rb'
65
- - 'lib/generators/cucumber/install/install_generator.rb'
66
-
67
- # Offense count: 3
68
- # Cop supports --auto-correct.
69
- Layout/EmptyLineAfterMagicComment:
70
- Exclude:
71
- - 'Rakefile'
72
- - 'cucumber-rails.gemspec'
73
- - 'spec/cucumber/rails/database_spec.rb'
74
-
75
- # Offense count: 3
76
- # Cop supports --auto-correct.
77
- # Configuration parameters: EnforcedStyle.
78
- # SupportedStyles: empty_lines, no_empty_lines
79
- Layout/EmptyLinesAroundBlockBody:
80
- Exclude:
81
- - 'spec/cucumber/rails/database_spec.rb'
82
- - 'spec/generators/cucumber/install/install_generator_spec.rb'
83
-
84
- # Offense count: 1
85
- # Cop supports --auto-correct.
86
- Layout/EmptyLinesAroundExceptionHandlingKeywords:
87
- Exclude:
88
- - 'lib/cucumber/rails/hooks/database_cleaner.rb'
89
-
90
- # Offense count: 2
91
- # Cop supports --auto-correct.
92
- # Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
93
- Layout/ExtraSpacing:
94
- Exclude:
95
- - 'lib/cucumber/rails/database.rb'
96
- - 'spec/generators/cucumber/install/install_generator_spec.rb'
97
-
98
- # Offense count: 2
99
- # Cop supports --auto-correct.
100
- # Configuration parameters: EnforcedStyle.
101
- # SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent
102
- Layout/IndentHeredoc:
103
- Exclude:
104
- - 'features/support/legacy_web_steps_support.rb'
105
-
106
- # Offense count: 1
107
- # Cop supports --auto-correct.
108
- # Configuration parameters: Width, IgnoredPatterns.
109
- Layout/IndentationWidth:
110
- Exclude:
111
- - 'features/support/env.rb'
112
-
113
- # Offense count: 2
114
- # Cop supports --auto-correct.
115
- # Configuration parameters: EnforcedStyle, IndentationWidth.
116
- # SupportedStyles: aligned, indented
117
- Layout/MultilineOperationIndentation:
118
- Exclude:
119
- - 'features/support/env.rb'
120
-
121
- # Offense count: 2
122
- # Cop supports --auto-correct.
123
- Layout/SpaceAroundKeyword:
124
- Exclude:
125
- - 'features/step_definitions/cucumber_rails_steps.rb'
126
- - 'features/support/env.rb'
127
-
128
- # Offense count: 2
129
10
  # Cop supports --auto-correct.
130
11
  # Configuration parameters: AllowForAlignment.
131
12
  Layout/SpaceAroundOperators:
132
13
  Exclude:
133
14
  - 'dev_tasks/yard.rake'
134
- - 'lib/cucumber/rails/database.rb'
135
-
136
- # Offense count: 3
137
- # Cop supports --auto-correct.
138
- # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
139
- # SupportedStyles: space, no_space
140
- # SupportedStylesForEmptyBraces: space, no_space
141
- Layout/SpaceBeforeBlockBraces:
142
- Exclude:
143
- - 'lib/cucumber/rails.rb'
144
- - 'lib/cucumber/rails/database.rb'
145
-
146
- # Offense count: 1
147
- # Cop supports --auto-correct.
148
- Layout/SpaceBeforeComma:
149
- Exclude:
150
- - 'features/step_definitions/cucumber_rails_steps.rb'
151
-
152
- # Offense count: 2
153
- # Cop supports --auto-correct.
154
- Layout/SpaceInsidePercentLiteralDelimiters:
155
- Exclude:
156
- - 'lib/cucumber/rails/database.rb'
157
-
158
- # Offense count: 1
159
- # Cop supports --auto-correct.
160
- # Configuration parameters: EnforcedStyle.
161
- # SupportedStyles: space, no_space
162
- Layout/SpaceInsideStringInterpolation:
163
- Exclude:
164
- - 'lib/cucumber/rails/database.rb'
165
-
166
- # Offense count: 2
167
- # Cop supports --auto-correct.
168
- # Configuration parameters: AllowInHeredoc.
169
- Layout/TrailingWhitespace:
170
- Exclude:
171
- - 'features/step_definitions/cucumber_rails_steps.rb'
172
- - 'features/support/env.rb'
173
-
174
- # Offense count: 10
175
- Lint/AmbiguousRegexpLiteral:
176
- Exclude:
177
- - 'features/step_definitions/cucumber_rails_steps.rb'
178
15
 
179
16
  # Offense count: 2
17
+ # Configuration parameters: AllowComments.
180
18
  Lint/HandleExceptions:
181
19
  Exclude:
182
20
  - 'lib/cucumber/rails/hooks/database_cleaner.rb'
183
21
  - 'lib/cucumber/rails/world.rb'
184
22
 
185
- # Offense count: 1
186
- # Cop supports --auto-correct.
187
- Lint/ScriptPermission:
188
- Exclude:
189
- - 'lib/generators/cucumber/install/templates/script/cucumber'
190
-
191
- # Offense count: 1
192
- # Cop supports --auto-correct.
193
- # Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
194
- Lint/UnusedBlockArgument:
195
- Exclude:
196
- - 'Rakefile'
197
-
198
23
  # Offense count: 3
199
- Lint/UselessAssignment:
200
- Exclude:
201
- - 'lib/cucumber/rails/hooks/database_cleaner.rb'
202
- - 'lib/cucumber/rails/rspec.rb'
203
- - 'lib/cucumber/rails/world.rb'
204
-
205
- # Offense count: 4
206
24
  Metrics/AbcSize:
207
- Max: 23
208
-
209
- # Offense count: 4
210
- # Configuration parameters: CountComments, ExcludedMethods.
211
- # ExcludedMethods: refine
212
- Metrics/BlockLength:
213
- Max: 36
25
+ Max: 19
214
26
 
215
- # Offense count: 4
27
+ # Offense count: 3
216
28
  # Configuration parameters: CountComments, ExcludedMethods.
217
29
  Metrics/MethodLength:
218
- Max: 188
219
-
220
- # Offense count: 1
221
- # Configuration parameters: CountComments.
222
- Metrics/ModuleLength:
223
- Max: 209
224
-
225
- # Offense count: 1
226
- Metrics/PerceivedComplexity:
227
- Max: 8
228
-
229
- # Offense count: 2
230
- # Configuration parameters: Blacklist.
231
- # Blacklist: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
232
- Naming/HeredocDelimiterNaming:
233
- Exclude:
234
- - 'features/support/legacy_web_steps_support.rb'
235
-
236
- # Offense count: 1
237
- # Configuration parameters: EnforcedStyle.
238
- # SupportedStyles: snake_case, normalcase, non_integer
239
- Naming/VariableNumber:
240
- Exclude:
241
- - 'lib/cucumber/rails/rspec.rb'
242
-
243
- # Offense count: 2
244
- # Cop supports --auto-correct.
245
- Performance/Casecmp:
246
- Exclude:
247
- - 'lib/cucumber/rails/capybara/javascript_emulation.rb'
248
-
249
- # Offense count: 1
250
- # Cop supports --auto-correct.
251
- # Configuration parameters: AutoCorrect.
252
- Performance/StartWith:
253
- Exclude:
254
- - 'features/step_definitions/cucumber_rails_steps.rb'
255
-
256
- # Offense count: 1
257
- # Cop supports --auto-correct.
258
- # Configuration parameters: EnforcedStyle.
259
- # SupportedStyles: always, conditionals
260
- Style/AndOr:
261
- Exclude:
262
- - 'lib/cucumber/rails/capybara/javascript_emulation.rb'
30
+ Max: 18
263
31
 
264
32
  # Offense count: 4
265
- # Cop supports --auto-correct.
266
- # Configuration parameters: AutoCorrect, EnforcedStyle.
267
- # SupportedStyles: nested, compact
268
- Style/ClassAndModuleChildren:
269
- Exclude:
270
- - 'lib/cucumber/rails/action_controller.rb'
271
- - 'lib/cucumber/rails/application.rb'
272
- - 'lib/cucumber/rails/capybara/javascript_emulation.rb'
273
- - 'lib/cucumber/rails/hooks/active_record.rb'
274
-
275
- # Offense count: 1
276
- Style/CommentedKeyword:
277
- Exclude:
278
- - 'lib/cucumber/rails/world.rb'
33
+ # Configuration parameters: .
34
+ # SupportedStyles: have_received, receive
35
+ RSpec/MessageSpies:
36
+ EnforcedStyle: receive
279
37
 
280
- # Offense count: 14
281
- Style/Documentation:
282
- Exclude:
283
- - 'spec/**/*'
284
- - 'test/**/*'
285
- - 'features/step_definitions/cucumber_rails_steps.rb'
286
- - 'features/support/bundler_pre_support.rb'
287
- - 'features/support/env.rb'
288
- - 'features/support/legacy_web_steps_support.rb'
289
- - 'lib/cucumber/rails/action_controller.rb'
290
- - 'lib/cucumber/rails/capybara/javascript_emulation.rb'
291
- - 'lib/cucumber/rails/database.rb'
292
- - 'lib/cucumber/rails/hooks/active_record.rb'
293
- - 'lib/generators/cucumber/install/install_generator.rb'
38
+ # Offense count: 2
39
+ # Configuration parameters: AggregateFailuresByDefault.
40
+ RSpec/MultipleExpectations:
41
+ Max: 2
294
42
 
295
43
  # Offense count: 1
296
44
  Style/DoubleNegation:
297
45
  Exclude:
298
46
  - 'lib/cucumber/rails/action_controller.rb'
299
47
 
300
- # Offense count: 3
301
- # Cop supports --auto-correct.
302
- Style/Encoding:
303
- Exclude:
304
- - 'Rakefile'
305
- - 'cucumber-rails.gemspec'
306
- - 'spec/cucumber/rails/database_spec.rb'
307
-
308
- # Offense count: 3
309
- # Cop supports --auto-correct.
310
- Style/ExpandPathArguments:
311
- Exclude:
312
- - 'cucumber-rails.gemspec'
313
- - 'lib/generators/cucumber/install/install_generator.rb'
314
- - 'spec/generators/cucumber/install/install_generator_spec.rb'
315
-
316
- # Offense count: 1
317
- # Configuration parameters: .
318
- # SupportedStyles: annotated, template, unannotated
319
- Style/FormatStringToken:
320
- EnforcedStyle: template
321
-
322
- # Offense count: 3
323
- # Configuration parameters: MinBodyLength.
324
- Style/GuardClause:
325
- Exclude:
326
- - 'features/step_definitions/cucumber_rails_steps.rb'
327
- - 'lib/cucumber/rails/database.rb'
328
- - 'lib/generators/cucumber/install/install_generator.rb'
329
-
330
- # Offense count: 4
331
- # Cop supports --auto-correct.
332
- Style/IfUnlessModifier:
333
- Exclude:
334
- - 'Rakefile'
335
- - 'dev_tasks/yard.rake'
336
- - 'features/step_definitions/cucumber_rails_steps.rb'
337
- - 'lib/cucumber/rails/database.rb'
338
-
339
48
  # Offense count: 1
340
49
  Style/MixinUsage:
341
50
  Exclude:
342
51
  - 'lib/cucumber/rails/rspec.rb'
343
52
 
344
- # Offense count: 1
345
- # Cop supports --auto-correct.
346
- # Configuration parameters: EnforcedStyle.
347
- # SupportedStyles: literals, strict
348
- Style/MutableConstant:
349
- Exclude:
350
- - 'lib/cucumber/rails/database.rb'
351
-
352
- # Offense count: 1
353
- # Cop supports --auto-correct.
354
- # Configuration parameters: Whitelist.
355
- # 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
356
- Style/NestedParenthesizedCalls:
357
- Exclude:
358
- - 'lib/cucumber/rails/capybara/select_dates_and_times.rb'
359
-
360
53
  # Offense count: 1
361
54
  # Cop supports --auto-correct.
362
55
  # Configuration parameters: EnforcedOctalStyle.
363
56
  # SupportedOctalStyles: zero_with_o, zero_only
364
57
  Style/NumericLiteralPrefix:
365
58
  Exclude:
366
- - 'lib/generators/cucumber/install/install_generator.rb'
367
-
368
- # Offense count: 1
369
- # Cop supports --auto-correct.
370
- # Configuration parameters: PreferredDelimiters.
371
- Style/PercentLiteralDelimiters:
372
- Exclude:
373
- - 'lib/cucumber/rails/database.rb'
374
-
375
- # Offense count: 3
376
- # Cop supports --auto-correct.
377
- Style/RedundantSelf:
378
- Exclude:
379
- - 'lib/cucumber/rails/capybara/javascript_emulation.rb'
380
- - 'lib/cucumber/rails/hooks/active_record.rb'
381
- - 'spec/spec_helper.rb'
382
-
383
- # Offense count: 2
384
- # Cop supports --auto-correct.
385
- # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
386
- # SupportedStyles: slashes, percent_r, mixed
387
- Style/RegexpLiteral:
388
- Exclude:
389
- - 'lib/cucumber/rails.rb'
390
-
391
- # Offense count: 1
392
- # Cop supports --auto-correct.
393
- # Configuration parameters: AllowIfMethodIsEmpty.
394
- Style/SingleLineMethods:
395
- Exclude:
396
- - 'lib/cucumber/rails/world.rb'
397
-
398
- # Offense count: 2
399
- # Cop supports --auto-correct.
400
- # Configuration parameters: EnforcedStyle.
401
- # SupportedStyles: use_perl_names, use_english_names
402
- Style/SpecialGlobalVars:
403
- Exclude:
404
- - 'Rakefile'
405
- - 'features/support/env.rb'
406
-
407
- # Offense count: 90
408
- # Cop supports --auto-correct.
409
- # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
410
- # SupportedStyles: single_quotes, double_quotes
411
- Style/StringLiterals:
412
- Exclude:
413
- - 'Appraisals'
414
- - 'Gemfile'
415
- - 'Rakefile'
416
- - 'cucumber-rails.gemspec'
417
- - 'dev_tasks/yard.rake'
418
- - 'features/step_definitions/cucumber_rails_steps.rb'
419
- - 'gemfiles/rails_4_2.gemfile'
420
- - 'gemfiles/rails_5_0.gemfile'
421
- - 'gemfiles/rails_5_1.gemfile'
422
- - 'gemfiles/rails_5_2.gemfile'
423
- - 'gemfiles/rails_6_0.gemfile'
424
- - 'spec/spec_helper.rb'
425
-
426
- # Offense count: 11
427
- # Cop supports --auto-correct.
428
- # Configuration parameters: MinSize.
429
- # SupportedStyles: percent, brackets
430
- Style/SymbolArray:
431
- EnforcedStyle: brackets
432
-
433
- # Offense count: 2
434
- # Cop supports --auto-correct.
435
- Style/UnneededInterpolation:
436
- Exclude:
437
- - 'features/step_definitions/cucumber_rails_steps.rb'
438
-
439
- # Offense count: 51
440
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
441
- # URISchemes: http, https
442
- Metrics/LineLength:
443
- Max: 254
59
+ - 'lib/generators/cucumber/install_generator.rb'