cucumber-rails 1.7.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/CHANGELOG.md +197 -19
- data/CONTRIBUTING.md +16 -14
- data/LICENSE +1 -1
- data/README.md +27 -21
- data/lib/cucumber/rails.rb +23 -17
- data/lib/cucumber/rails/action_dispatch.rb +21 -0
- data/lib/cucumber/rails/application.rb +16 -7
- data/lib/cucumber/rails/capybara.rb +2 -0
- data/lib/cucumber/rails/capybara/javascript_emulation.rb +42 -21
- data/lib/cucumber/rails/capybara/select_dates_and_times.rb +3 -1
- data/lib/cucumber/rails/database.rb +24 -56
- data/lib/cucumber/rails/database/deletion_strategy.rb +13 -0
- data/lib/cucumber/rails/database/shared_connection_strategy.rb +27 -0
- data/lib/cucumber/rails/database/strategy.rb +33 -0
- data/lib/cucumber/rails/database/truncation_strategy.rb +13 -0
- data/lib/cucumber/rails/hooks.rb +2 -0
- data/lib/cucumber/rails/hooks/active_record.rb +8 -4
- data/lib/cucumber/rails/hooks/allow_rescue.rb +2 -0
- data/lib/cucumber/rails/hooks/database_cleaner.rb +11 -3
- data/lib/cucumber/rails/hooks/mail.rb +3 -1
- data/lib/cucumber/rails/rspec.rb +3 -1
- data/lib/cucumber/rails/world.rb +24 -7
- data/lib/generators/cucumber/{install/USAGE → USAGE} +0 -0
- data/lib/generators/cucumber/{install/install_generator.rb → install_generator.rb} +18 -9
- data/lib/generators/cucumber/{install/templates → templates}/config/cucumber.yml.erb +0 -0
- data/lib/generators/cucumber/{install/templates → templates}/script/cucumber +1 -0
- data/lib/generators/cucumber/{install/templates → templates}/support/_rails_each_run.rb.erb +0 -0
- data/lib/generators/cucumber/{install/templates → templates}/support/_rails_prefork.rb.erb +0 -0
- data/lib/generators/cucumber/{install/templates → templates}/support/capybara.rb +2 -0
- data/lib/generators/cucumber/{install/templates → templates}/support/edit_warning.txt +0 -0
- data/lib/generators/cucumber/{install/templates → templates}/support/rails.rb.erb +0 -0
- data/lib/generators/cucumber/{install/templates → templates}/support/rails_spork.rb.erb +0 -0
- data/lib/generators/cucumber/{install/templates → templates}/tasks/cucumber.rake.erb +0 -0
- metadata +100 -169
- data/.github/ISSUE_TEMPLATE.md +0 -52
- data/.github/PULL_REQUEST_TEMPLATE.md +0 -42
- data/.gitignore +0 -13
- data/.rspec +0 -1
- data/.rubocop.yml +0 -1
- data/.rubocop_todo.yml +0 -443
- data/.travis.yml +0 -45
- data/Appraisals +0 -32
- data/Gemfile +0 -7
- data/Rakefile +0 -49
- data/bin/install_geckodriver.sh +0 -19
- data/bin/install_webpacker.sh +0 -9
- data/config/.gitignore +0 -1
- data/config/cucumber.yml +0 -17
- data/cucumber-rails.gemspec +0 -44
- data/dev_tasks/cucumber.rake +0 -3
- data/dev_tasks/rspec.rake +0 -3
- data/dev_tasks/yard.rake +0 -35
- data/dev_tasks/yard/default/layout/html/bubble_32x32.png +0 -0
- data/dev_tasks/yard/default/layout/html/footer.erb +0 -5
- data/dev_tasks/yard/default/layout/html/index.erb +0 -1
- data/dev_tasks/yard/default/layout/html/layout.erb +0 -25
- data/dev_tasks/yard/default/layout/html/logo.erb +0 -1
- data/dev_tasks/yard/default/layout/html/setup.rb +0 -4
- data/features/allow_rescue.feature +0 -65
- data/features/annotations.feature +0 -22
- data/features/capybara_javascript_drivers.feature +0 -73
- data/features/choose_javascript_database_strategy.feature +0 -145
- data/features/database_cleaner.feature +0 -44
- data/features/disable_automatic_database_cleaning.feature +0 -55
- data/features/emulate_javascript.feature +0 -94
- data/features/install_cucumber_rails.feature +0 -14
- data/features/no_database.feature +0 -61
- data/features/raising_errors.feature +0 -16
- data/features/rerun_profile.feature +0 -46
- data/features/rest_api.feature +0 -47
- data/features/step_definitions/cucumber_rails_steps.rb +0 -153
- data/features/support/aruba.rb +0 -3
- data/features/support/bundler_pre_support.rb +0 -28
- data/features/support/env.rb +0 -40
- data/features/support/fixtures/bundler-1.0.21.gem +0 -0
- data/features/support/fixtures/bundler-1.1.rc.gem +0 -0
- data/features/support/legacy_web_steps_support.rb +0 -289
- data/gemfiles/rails_4_2.gemfile +0 -10
- data/gemfiles/rails_5_0.gemfile +0 -10
- data/gemfiles/rails_5_1.gemfile +0 -10
- data/gemfiles/rails_5_2.gemfile +0 -10
- data/gemfiles/rails_6_0.gemfile +0 -8
- data/lib/cucumber/rails/action_controller.rb +0 -13
- data/spec/cucumber/rails/database_spec.rb +0 -57
- data/spec/generators/cucumber/install/install_generator_spec.rb +0 -47
- data/spec/spec_helper.rb +0 -14
data/.github/ISSUE_TEMPLATE.md
DELETED
@@ -1,52 +0,0 @@
|
|
1
|
-
<!-- NAMING YOUR ISSUE: Please prefix your issue with the name of the sub-project -->
|
2
|
-
<!-- e.g. `event-protocol: Schemas out of date` -->
|
3
|
-
<!-- This makes it easier to get some context when reading the names of issues -->
|
4
|
-
|
5
|
-
<!-- These sections are meant as guidance for you, to help you give the kind of information we'll need to help with your issue. If a section doesn't seem to fit, just skip it.
|
6
|
-
|
7
|
-
In general: Please provide as much information as you can to help us solving your problem -->
|
8
|
-
|
9
|
-
## Summary
|
10
|
-
|
11
|
-
<!--- Provide a general summary description of the issue -->
|
12
|
-
|
13
|
-
## Expected Behavior
|
14
|
-
|
15
|
-
<!--- If you're describing a bug, tell us what should happen -->
|
16
|
-
<!--- If you're suggesting a change/improvement, tell us how it should work -->
|
17
|
-
<!--- Feel free to use Given / Then / Then if that helps, but please add some plain-language context too -->
|
18
|
-
|
19
|
-
## Current Behavior
|
20
|
-
|
21
|
-
<!--- If describing a bug, tell us what happens instead of the expected behavior -->
|
22
|
-
<!--- If suggesting a change/improvement, explain the difference from current behavior -->
|
23
|
-
|
24
|
-
<!--- If you have got some output place it in the code block below. Otherwise remove it. -->
|
25
|
-
~~~
|
26
|
-
~~~
|
27
|
-
|
28
|
-
## Possible Solution
|
29
|
-
|
30
|
-
<!--- Not obligatory, but suggest a fix/reason for the bug, -->
|
31
|
-
<!--- or ideas how to implement the addition or change -->
|
32
|
-
|
33
|
-
## Steps to Reproduce (for bugs)
|
34
|
-
|
35
|
-
<!--- Provide a link to a live example, or an unambiguous set of steps to -->
|
36
|
-
<!--- reproduce this bug. Include code to reproduce, if relevant -->
|
37
|
-
1.
|
38
|
-
2.
|
39
|
-
3.
|
40
|
-
4.
|
41
|
-
|
42
|
-
## Context & Motivation
|
43
|
-
|
44
|
-
<!--- How has this issue affected you? What are you trying to accomplish? -->
|
45
|
-
<!--- Providing context helps us come up with a solution that is most useful in the real world -->
|
46
|
-
|
47
|
-
## Your Environment
|
48
|
-
|
49
|
-
<!--- If you're reporting a bug, include as many relevant details about the environment you experienced the bug in -->
|
50
|
-
* Version used:
|
51
|
-
* Operating System and version:
|
52
|
-
* Link to your project:
|
@@ -1,42 +0,0 @@
|
|
1
|
-
<!-- NAMING YOUR PULL REQUEST: Please choose a concise, descriptive name for your pull request. -->
|
2
|
-
<!-- This makes it easier to get some context when reading the names of issues -->
|
3
|
-
|
4
|
-
<!-- These sections are meant as guidance for you. If something doesn't fit, you can just skip it. -->
|
5
|
-
|
6
|
-
## Summary
|
7
|
-
|
8
|
-
<!--- Provide a general summary description of your changes -->
|
9
|
-
|
10
|
-
## Details
|
11
|
-
|
12
|
-
<!--- Describe your changes in detail -->
|
13
|
-
|
14
|
-
## Motivation and Context
|
15
|
-
|
16
|
-
<!--- Why is this change required? What problem does it solve? -->
|
17
|
-
<!--- If it fixes an open issue, please link to the issue here. -->
|
18
|
-
|
19
|
-
## How Has This Been Tested?
|
20
|
-
|
21
|
-
<!--- Please add tests for changes to the code, otherwise we probably won't merge it -->
|
22
|
-
|
23
|
-
<!--- Please describe in detail how you tested your changes. -->
|
24
|
-
<!--- Include details of your testing environment, tests ran to see how -->
|
25
|
-
<!--- your change affects other areas of the code, etc. -->
|
26
|
-
|
27
|
-
## Screenshots (if appropriate):
|
28
|
-
|
29
|
-
## Types of changes
|
30
|
-
|
31
|
-
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
|
32
|
-
- [ ] Bug fix (non-breaking change which fixes an issue).
|
33
|
-
- [ ] New feature (non-breaking change which adds functionality).
|
34
|
-
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected).
|
35
|
-
|
36
|
-
## Checklist:
|
37
|
-
|
38
|
-
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
|
39
|
-
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
|
40
|
-
- [ ] I've added tests for my code.
|
41
|
-
- [ ] My change requires a change to the documentation.
|
42
|
-
- [ ] I have updated the documentation accordingly.
|
data/.gitignore
DELETED
data/.rspec
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--format progress --colour
|
data/.rubocop.yml
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
inherit_from: .rubocop_todo.yml
|
data/.rubocop_todo.yml
DELETED
@@ -1,443 +0,0 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config`
|
3
|
-
# on 2019-04-17 11:50:08 +0200 using RuboCop version 0.65.0.
|
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: 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
|
-
# 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
|
-
# Cop supports --auto-correct.
|
130
|
-
# Configuration parameters: AllowForAlignment.
|
131
|
-
Layout/SpaceAroundOperators:
|
132
|
-
Exclude:
|
133
|
-
- '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
|
-
|
179
|
-
# Offense count: 2
|
180
|
-
Lint/HandleExceptions:
|
181
|
-
Exclude:
|
182
|
-
- 'lib/cucumber/rails/hooks/database_cleaner.rb'
|
183
|
-
- 'lib/cucumber/rails/world.rb'
|
184
|
-
|
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
|
-
# 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
|
-
Metrics/AbcSize:
|
207
|
-
Max: 23
|
208
|
-
|
209
|
-
# Offense count: 4
|
210
|
-
# Configuration parameters: CountComments, ExcludedMethods.
|
211
|
-
# ExcludedMethods: refine
|
212
|
-
Metrics/BlockLength:
|
213
|
-
Max: 36
|
214
|
-
|
215
|
-
# Offense count: 4
|
216
|
-
# Configuration parameters: CountComments, ExcludedMethods.
|
217
|
-
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'
|
263
|
-
|
264
|
-
# 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'
|
279
|
-
|
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'
|
294
|
-
|
295
|
-
# Offense count: 1
|
296
|
-
Style/DoubleNegation:
|
297
|
-
Exclude:
|
298
|
-
- 'lib/cucumber/rails/action_controller.rb'
|
299
|
-
|
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
|
-
# Offense count: 1
|
340
|
-
Style/MixinUsage:
|
341
|
-
Exclude:
|
342
|
-
- 'lib/cucumber/rails/rspec.rb'
|
343
|
-
|
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
|
-
# Offense count: 1
|
361
|
-
# Cop supports --auto-correct.
|
362
|
-
# Configuration parameters: EnforcedOctalStyle.
|
363
|
-
# SupportedOctalStyles: zero_with_o, zero_only
|
364
|
-
Style/NumericLiteralPrefix:
|
365
|
-
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
|