aruba 1.0.0.pre.alpha.3 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/.rspec +0 -1
  3. data/.rubocop.yml +40 -1
  4. data/.rubocop_todo.yml +106 -254
  5. data/.simplecov +7 -5
  6. data/.travis.yml +25 -38
  7. data/CHANGELOG.md +246 -46
  8. data/CONTRIBUTING.md +8 -17
  9. data/Gemfile +5 -54
  10. data/LICENSE +1 -1
  11. data/README.md +37 -30
  12. data/Rakefile +23 -50
  13. data/appveyor.yml +4 -8
  14. data/aruba.gemspec +34 -13
  15. data/bin/console +1 -1
  16. data/cucumber.yml +4 -15
  17. data/exe/aruba +1 -1
  18. data/fixtures/cli-app/bin/aruba-test-cli +1 -1
  19. data/fixtures/cli-app/cli-app.gemspec +4 -5
  20. data/fixtures/cli-app/lib/cli/app.rb +1 -1
  21. data/fixtures/cli-app/spec/spec_helper.rb +3 -2
  22. data/fixtures/empty-app/cli-app.gemspec +4 -5
  23. data/fixtures/empty-app/lib/cli/app.rb +0 -2
  24. data/fixtures/getting-started-app/Gemfile +1 -1
  25. data/lib/aruba/api.rb +6 -6
  26. data/lib/aruba/api/bundler.rb +1 -1
  27. data/lib/aruba/api/commands.rb +36 -13
  28. data/lib/aruba/api/core.rb +74 -47
  29. data/lib/aruba/api/environment.rb +16 -4
  30. data/lib/aruba/api/filesystem.rb +48 -48
  31. data/lib/aruba/api/text.rb +15 -3
  32. data/lib/aruba/aruba_path.rb +24 -95
  33. data/lib/aruba/basic_configuration.rb +5 -6
  34. data/lib/aruba/basic_configuration/option.rb +2 -2
  35. data/lib/aruba/cli.rb +4 -1
  36. data/lib/aruba/colorizer.rb +10 -99
  37. data/lib/aruba/config/jruby.rb +15 -5
  38. data/lib/aruba/config_wrapper.rb +17 -2
  39. data/lib/aruba/configuration.rb +43 -14
  40. data/lib/aruba/console.rb +0 -2
  41. data/lib/aruba/console/help.rb +5 -2
  42. data/lib/aruba/contracts/absolute_path.rb +3 -3
  43. data/lib/aruba/contracts/is_power_of_two.rb +2 -2
  44. data/lib/aruba/contracts/relative_path.rb +3 -3
  45. data/lib/aruba/cucumber.rb +0 -2
  46. data/lib/aruba/cucumber/command.rb +190 -93
  47. data/lib/aruba/cucumber/file.rb +53 -35
  48. data/lib/aruba/cucumber/hooks.rb +4 -1
  49. data/lib/aruba/cucumber/testing_frameworks.rb +76 -50
  50. data/lib/aruba/event_bus.rb +4 -2
  51. data/lib/aruba/event_bus/name_resolver.rb +9 -8
  52. data/lib/aruba/events.rb +2 -1
  53. data/lib/aruba/hooks.rb +2 -4
  54. data/lib/aruba/in_config_wrapper.rb +10 -3
  55. data/lib/aruba/initializer.rb +37 -31
  56. data/lib/aruba/matchers/base/base_matcher.rb +2 -11
  57. data/lib/aruba/matchers/base/message_indenter.rb +1 -1
  58. data/lib/aruba/matchers/base/object_formatter.rb +0 -5
  59. data/lib/aruba/matchers/collection/include_an_object.rb +4 -4
  60. data/lib/aruba/matchers/command/be_successfully_executed.rb +6 -0
  61. data/lib/aruba/matchers/command/have_exit_status.rb +15 -3
  62. data/lib/aruba/matchers/command/have_finished_in_time.rb +3 -1
  63. data/lib/aruba/matchers/command/have_output.rb +3 -1
  64. data/lib/aruba/matchers/command/have_output_on_stderr.rb +3 -1
  65. data/lib/aruba/matchers/command/have_output_on_stdout.rb +3 -1
  66. data/lib/aruba/matchers/command/have_output_size.rb +1 -1
  67. data/lib/aruba/matchers/directory/be_an_existing_directory.rb +1 -1
  68. data/lib/aruba/matchers/directory/have_sub_directory.rb +8 -3
  69. data/lib/aruba/matchers/file/be_an_existing_file.rb +1 -1
  70. data/lib/aruba/matchers/file/have_file_size.rb +4 -2
  71. data/lib/aruba/matchers/path/have_permissions.rb +4 -2
  72. data/lib/aruba/platform.rb +0 -7
  73. data/lib/aruba/platforms/announcer.rb +36 -17
  74. data/lib/aruba/platforms/aruba_file_creator.rb +3 -1
  75. data/lib/aruba/platforms/aruba_fixed_size_file_creator.rb +7 -2
  76. data/lib/aruba/platforms/command_monitor.rb +39 -3
  77. data/lib/aruba/platforms/determine_disk_usage.rb +56 -19
  78. data/lib/aruba/platforms/simple_table.rb +2 -10
  79. data/lib/aruba/platforms/unix_environment_variables.rb +10 -13
  80. data/lib/aruba/platforms/unix_platform.rb +16 -12
  81. data/lib/aruba/platforms/unix_which.rb +1 -1
  82. data/lib/aruba/platforms/windows_command_string.rb +2 -2
  83. data/lib/aruba/platforms/windows_environment_variables.rb +9 -2
  84. data/lib/aruba/platforms/windows_platform.rb +4 -0
  85. data/lib/aruba/platforms/windows_which.rb +6 -2
  86. data/lib/aruba/processes/basic_process.rb +13 -15
  87. data/lib/aruba/processes/debug_process.rb +11 -5
  88. data/lib/aruba/processes/in_process.rb +4 -2
  89. data/lib/aruba/processes/spawn_process.rb +32 -16
  90. data/lib/aruba/rspec.rb +24 -14
  91. data/lib/aruba/runtime.rb +11 -4
  92. data/lib/aruba/setup.rb +27 -14
  93. data/lib/aruba/tasks/docker_helpers.rb +3 -1
  94. data/lib/aruba/version.rb +1 -1
  95. metadata +190 -34
  96. data/bin/build +0 -3
  97. data/bin/release +0 -3
  98. data/lib/aruba/platforms/disk_usage_calculator.rb +0 -20
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: edbb16f00c301a3cb9b030dcabe626cd35e3bfebdd8e76efc47ccb78963b632c
4
- data.tar.gz: 3cfea7febab3db1a8943a6a25c6724a5fcd51db9916a9426619767b4260479d6
3
+ metadata.gz: 5f5a2c9af56d4b502edae4592455415530bd8077f5078608ac174fdd42828e84
4
+ data.tar.gz: e057fc77eb5bf2680b08978f90d3d4bf5c166e3a400a3d691124f5d624e37e67
5
5
  SHA512:
6
- metadata.gz: 31f78dc5373408128c519af63839ed5e85a0fe4d749fc475b96aa36803ec98b5d04b072c69df39ac7fc25ee47a4189e22a6e6943f3df94d9c2e2de7cd831e177
7
- data.tar.gz: e6342327449b14d5a91a96fb5df785e911a451b17d6745c4e7986ad3ea79bd4c36a7c48a10020255e8afb2855ccb1df04277ef44c266223c68b2ebf5f3af8a89
6
+ metadata.gz: 41edd733387784f50d386c5fd718610a00970c5e2d1cb60cc87dae9e79a8883d2447136782c3e7e101e208b949f7451fe99ac8ebc91ab0547b529f097da04286
7
+ data.tar.gz: f7c553b8fc220a0e1b49ddcbe92d8d1da179330c05dff80e70dbcac6ed9ef501ff27b2e663afdecaff18a471d718e249e0b3d7b704baafb80603c187045321b2
data/.rspec CHANGED
@@ -1,4 +1,3 @@
1
1
  --color
2
- --format Fuubar
3
2
  --order random
4
3
  --warnings
@@ -1,13 +1,52 @@
1
+ require:
2
+ - rubocop-performance
3
+ - rubocop-rspec
4
+
1
5
  AllCops:
2
6
  Exclude:
3
7
  - tmp/**/*
4
8
  - vendor/**/*
5
9
  DisplayCopNames: true
6
- TargetRubyVersion: 2.2
10
+ TargetRubyVersion: 2.4
7
11
 
8
12
  # Use older RuboCop default
9
13
  Style/PercentLiteralDelimiters:
10
14
  PreferredDelimiters:
11
15
  '%w': ()
12
16
 
17
+ # SupportedStyles: percent, brackets
18
+ Style/SymbolArray:
19
+ EnforcedStyle: brackets
20
+
21
+ # Code is currently broken with frozen string literal comments applied.
22
+ # TODO: Enable and fix build
23
+ Style/FrozenStringLiteralComment:
24
+ Enabled: false
25
+
26
+ # Be relatively lenient with line length
27
+ Layout/LineLength:
28
+ Max: 94
29
+
30
+ # Enable new cops from RuboCop 0.80, 0.81 and 0.84
31
+ Layout/EmptyLinesAroundAttributeAccessor:
32
+ Enabled: true
33
+ Layout/SpaceAroundMethodCallOperator:
34
+ Enabled: true
35
+ Lint/DeprecatedOpenSSLConstant:
36
+ Enabled: true
37
+ Lint/RaiseException:
38
+ Enabled: true
39
+ Lint/StructNewOverride:
40
+ Enabled: true
41
+ Style/ExponentialNotation:
42
+ Enabled: true
43
+ Style/HashEachMethods:
44
+ Enabled: true
45
+ Style/HashTransformKeys:
46
+ Enabled: true
47
+ Style/HashTransformValues:
48
+ Enabled: true
49
+ Style/SlicingWithRange:
50
+ Enabled: true
51
+
13
52
  inherit_from: .rubocop_todo.yml
@@ -1,71 +1,16 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2019-05-06 11:32:53 +0200 using RuboCop version 0.66.0.
3
+ # on 2020-05-31 23:12:24 +0200 using RuboCop version 0.84.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: 5
10
- # Configuration parameters: Include.
11
- # Include: **/*.gemfile, **/Gemfile, **/gems.rb
12
- Bundler/DuplicatedGem:
13
- Exclude:
14
- - 'Gemfile'
15
-
16
- # Offense count: 2
17
- # Cop supports --auto-correct.
18
- # Configuration parameters: EnforcedStyle, IndentationWidth.
19
- # SupportedStyles: with_first_parameter, with_fixed_indentation
20
- Layout/AlignParameters:
21
- Exclude:
22
- - 'lib/aruba/api/commands.rb'
23
- - 'lib/aruba/processes/basic_process.rb'
24
-
25
- # Offense count: 5
26
- # Cop supports --auto-correct.
27
- Layout/ClosingHeredocIndentation:
28
- Exclude:
29
- - 'lib/aruba/initializer.rb'
30
-
31
- # Offense count: 3
32
- # Cop supports --auto-correct.
33
- # Configuration parameters: EnforcedStyle.
34
- # SupportedStyles: leading, trailing
35
- Layout/DotPosition:
36
- Exclude:
37
- - 'spec/aruba/matchers/collection_spec.rb'
38
-
39
- # Offense count: 5
40
- # Cop supports --auto-correct.
41
- # Configuration parameters: EnforcedStyle.
42
- # SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent
43
- Layout/IndentHeredoc:
44
- Exclude:
45
- - 'lib/aruba/initializer.rb'
46
-
47
9
  # Offense count: 7
48
10
  Lint/AmbiguousBlockAssociation:
49
11
  Exclude:
50
12
  - 'lib/aruba/platforms/announcer.rb'
51
13
 
52
- # Offense count: 6
53
- Lint/AmbiguousRegexpLiteral:
54
- Exclude:
55
- - 'lib/aruba/cucumber/testing_frameworks.rb'
56
-
57
- # Offense count: 2
58
- # Configuration parameters: MaximumRangeSize.
59
- Lint/MissingCopEnableDirective:
60
- Exclude:
61
- - 'lib/aruba/configuration.rb'
62
- - 'lib/aruba/processes/spawn_process.rb'
63
-
64
- # Offense count: 1
65
- Lint/UselessAssignment:
66
- Exclude:
67
- - 'lib/aruba/platforms/unix_environment_variables.rb'
68
-
69
14
  # Offense count: 2
70
15
  # Configuration parameters: CheckForMethodsWithNoSideEffects.
71
16
  Lint/Void:
@@ -73,52 +18,58 @@ Lint/Void:
73
18
  - 'lib/aruba/platforms/announcer.rb'
74
19
  - 'lib/aruba/platforms/unix_environment_variables.rb'
75
20
 
76
- # Offense count: 28
21
+ # Offense count: 26
22
+ # Configuration parameters: IgnoredMethods.
77
23
  Metrics/AbcSize:
78
24
  Max: 116
79
25
 
80
- # Offense count: 69
26
+ # Offense count: 72
81
27
  # Configuration parameters: CountComments, ExcludedMethods.
82
28
  # ExcludedMethods: refine
83
29
  Metrics/BlockLength:
84
- Max: 585
30
+ Max: 594
85
31
 
86
32
  # Offense count: 2
87
33
  # Configuration parameters: CountComments.
88
34
  Metrics/ClassLength:
89
- Max: 131
35
+ Max: 158
90
36
 
91
- # Offense count: 19
37
+ # Offense count: 5
38
+ # Configuration parameters: IgnoredMethods.
39
+ Metrics/CyclomaticComplexity:
40
+ Max: 12
41
+
42
+ # Offense count: 28
92
43
  # Configuration parameters: CountComments, ExcludedMethods.
93
44
  Metrics/MethodLength:
94
- Max: 18
45
+ Max: 59
95
46
 
96
- # Offense count: 2
47
+ # Offense count: 3
97
48
  # Configuration parameters: CountComments.
98
49
  Metrics/ModuleLength:
99
- Max: 167
50
+ Max: 182
100
51
 
101
52
  # Offense count: 3
102
53
  # Configuration parameters: CountKeywordArgs.
103
54
  Metrics/ParameterLists:
104
55
  Max: 8
105
56
 
106
- # Offense count: 4
57
+ # Offense count: 5
58
+ # Configuration parameters: IgnoredMethods.
107
59
  Metrics/PerceivedComplexity:
108
- Max: 10
60
+ Max: 13
109
61
 
110
62
  # Offense count: 1
111
63
  Naming/ConstantName:
112
64
  Exclude:
113
65
  - 'lib/aruba/platform.rb'
114
66
 
115
- # Offense count: 8
116
- # Configuration parameters: Blacklist.
117
- # Blacklist: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
67
+ # Offense count: 5
68
+ # Configuration parameters: ForbiddenDelimiters.
69
+ # ForbiddenDelimiters: (?-mix:(^|\s)(EO[A-Z]{1}|END)(\s|$))
118
70
  Naming/HeredocDelimiterNaming:
119
71
  Exclude:
120
72
  - 'lib/aruba/initializer.rb'
121
- - 'spec/aruba/matchers/command_spec.rb'
122
73
 
123
74
  # Offense count: 1
124
75
  # Configuration parameters: EnforcedStyleForLeadingUnderscores.
@@ -127,15 +78,13 @@ Naming/MemoizedInstanceVariableName:
127
78
  Exclude:
128
79
  - 'lib/aruba/api/core.rb'
129
80
 
130
- # Offense count: 18
81
+ # Offense count: 14
131
82
  # Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
132
- # AllowedNames: io, id, to, by, on, in, at, ip, db
133
- Naming/UncommunicativeMethodParamName:
83
+ # AllowedNames: io, id, to, by, on, in, at, ip, db, os, pp
84
+ Naming/MethodParameterName:
134
85
  Exclude:
135
86
  - 'lib/aruba/aruba_path.rb'
136
87
  - 'lib/aruba/config_wrapper.rb'
137
- - 'lib/aruba/event_bus/name_resolver.rb'
138
- - 'lib/aruba/matchers/base/object_formatter.rb'
139
88
  - 'lib/aruba/platforms/announcer.rb'
140
89
  - 'lib/aruba/platforms/aruba_logger.rb'
141
90
  - 'lib/aruba/platforms/unix_platform.rb'
@@ -146,45 +95,102 @@ Performance/Caller:
146
95
  Exclude:
147
96
  - 'lib/aruba/platforms/unix_platform.rb'
148
97
 
98
+ # Offense count: 51
99
+ # Configuration parameters: Prefixes.
100
+ # Prefixes: when, with, without
101
+ RSpec/ContextWording:
102
+ Exclude:
103
+ - 'spec/aruba/api/filesystem_spec.rb'
104
+ - 'spec/aruba/api/runtime_spec.rb'
105
+ - 'spec/aruba/api_spec.rb'
106
+ - 'spec/aruba/matchers/command_spec.rb'
107
+ - 'spec/aruba/matchers/file_spec.rb'
108
+ - 'spec/aruba/matchers/path_spec.rb'
109
+ - 'spec/aruba/platform/windows_environment_variables_spec.rb'
110
+ - 'spec/support/shared_contexts/aruba.rb'
111
+
112
+ # Offense count: 10
113
+ RSpec/DescribeClass:
114
+ Exclude:
115
+ - 'spec/aruba/api/runtime_spec.rb'
116
+ - 'spec/aruba/jruby_spec.rb'
117
+ - 'spec/aruba/matchers/collection_spec.rb'
118
+ - 'spec/aruba/matchers/command/have_output_size_spec.rb'
119
+ - 'spec/aruba/matchers/command_spec.rb'
120
+ - 'spec/aruba/matchers/directory_spec.rb'
121
+ - 'spec/aruba/matchers/file_spec.rb'
122
+ - 'spec/aruba/matchers/path_spec.rb'
123
+ - 'spec/aruba/platform/simple_table_spec.rb'
124
+ - 'spec/aruba/rspec_spec.rb'
125
+
126
+ # Offense count: 19
127
+ # Configuration parameters: Max.
128
+ RSpec/ExampleLength:
129
+ Exclude:
130
+ - 'spec/aruba/api/core_spec.rb'
131
+ - 'spec/aruba/api/filesystem_spec.rb'
132
+ - 'spec/aruba/aruba_path_spec.rb'
133
+ - 'spec/aruba/matchers/collection_spec.rb'
134
+
135
+ # Offense count: 4
136
+ # Configuration parameters: CustomTransform, IgnoreMethods.
137
+ RSpec/FilePath:
138
+ Exclude:
139
+ - 'spec/aruba/platform/windows_environment_variables_spec.rb'
140
+ - 'spec/aruba/platforms/command_monitor_spec.rb'
141
+ - 'spec/event_bus/name_resolver_spec.rb'
142
+ - 'spec/event_bus_spec.rb'
143
+
144
+ # Offense count: 298
145
+ # Configuration parameters: AssignmentOnly.
146
+ RSpec/InstanceVariable:
147
+ Exclude:
148
+ - 'spec/aruba/api/bundler_spec.rb'
149
+ - 'spec/aruba/api/commands_spec.rb'
150
+ - 'spec/aruba/api/core_spec.rb'
151
+ - 'spec/aruba/api/filesystem_spec.rb'
152
+ - 'spec/aruba/api_spec.rb'
153
+ - 'spec/aruba/matchers/command/have_output_size_spec.rb'
154
+ - 'spec/aruba/matchers/command_spec.rb'
155
+ - 'spec/aruba/matchers/directory_spec.rb'
156
+ - 'spec/aruba/matchers/file_spec.rb'
157
+ - 'spec/aruba/matchers/path_spec.rb'
158
+ - 'spec/aruba/processes/in_process_spec.rb'
159
+ - 'spec/event_bus_spec.rb'
160
+ - 'spec/support/shared_contexts/aruba.rb'
161
+
162
+ # Offense count: 32
163
+ RSpec/MultipleExpectations:
164
+ Max: 5
165
+
166
+ # Offense count: 187
167
+ RSpec/NestedGroups:
168
+ Max: 6
169
+
170
+ # Offense count: 1
171
+ RSpec/UnspecifiedException:
172
+ Exclude:
173
+ - 'spec/aruba/runtime_spec.rb'
174
+
149
175
  # Offense count: 2
150
176
  Security/Open:
151
177
  Exclude:
152
178
  - 'lib/aruba/processes/spawn_process.rb'
153
179
 
154
- # Offense count: 3
155
- # Configuration parameters: EnforcedStyle.
180
+ # Offense count: 1
181
+ # Configuration parameters: EnforcedStyle, AllowModifiersOnSymbols.
156
182
  # SupportedStyles: inline, group
157
183
  Style/AccessModifierDeclarations:
158
184
  Exclude:
159
- - 'lib/aruba/in_config_wrapper.rb'
160
- - 'lib/aruba/matchers/base/base_matcher.rb'
161
185
  - 'lib/aruba/matchers/collection/all.rb'
162
186
 
163
187
  # Offense count: 3
188
+ # Configuration parameters: AllowOnConstant.
164
189
  Style/CaseEquality:
165
190
  Exclude:
166
191
  - 'lib/aruba/matchers/base/object_formatter.rb'
167
192
 
168
- # Offense count: 1
169
- # Cop supports --auto-correct.
170
- Style/CharacterLiteral:
171
- Exclude:
172
- - 'spec/support/shared_contexts/aruba.rb'
173
-
174
- # Offense count: 4
175
- # Cop supports --auto-correct.
176
- # Configuration parameters: EnforcedStyle.
177
- # SupportedStyles: is_a?, kind_of?
178
- Style/ClassCheck:
179
- Exclude:
180
- - 'lib/aruba/api/filesystem.rb'
181
-
182
- # Offense count: 1
183
- Style/CommentedKeyword:
184
- Exclude:
185
- - 'spec/aruba/api_spec.rb'
186
-
187
- # Offense count: 13
193
+ # Offense count: 12
188
194
  Style/Documentation:
189
195
  Exclude:
190
196
  - 'spec/**/*'
@@ -193,172 +199,18 @@ Style/Documentation:
193
199
  - 'fixtures/cli-app/lib/cli/app/suppress_simple_cov_output.rb'
194
200
  - 'fixtures/empty-app/lib/cli/app.rb'
195
201
  - 'lib/aruba/api/bundler.rb'
196
- - 'lib/aruba/colorizer.rb'
197
202
  - 'lib/aruba/matchers/collection/include_an_object.rb'
198
203
  - 'lib/aruba/platforms/command_monitor.rb'
199
204
  - 'lib/aruba/setup.rb'
200
205
  - 'lib/aruba/tasks/docker_helpers.rb'
201
206
 
202
- # Offense count: 4
203
- # Cop supports --auto-correct.
204
- Style/Encoding:
205
- Exclude:
206
- - 'aruba.gemspec'
207
- - 'fixtures/cli-app/cli-app.gemspec'
208
- - 'fixtures/empty-app/cli-app.gemspec'
209
- - 'spec/spec_helper.rb'
210
-
211
- # Offense count: 1
212
- Style/EvalWithLocation:
213
- Exclude:
214
- - 'spec/support/helpers/reporting.rb'
215
-
216
- # Offense count: 16
217
- # Cop supports --auto-correct.
218
- Style/ExpandPathArguments:
219
- Exclude:
220
- - 'Gemfile'
221
- - 'Rakefile'
222
- - 'bin/console'
223
- - 'exe/aruba'
224
- - 'features/support/env.rb'
225
- - 'features/support/simplecov_setup.rb'
226
- - 'fixtures/cli-app/bin/aruba-test-cli'
227
- - 'fixtures/cli-app/cli-app.gemspec'
228
- - 'fixtures/cli-app/lib/cli/app.rb'
229
- - 'fixtures/cli-app/spec/spec_helper.rb'
230
- - 'fixtures/empty-app/cli-app.gemspec'
231
- - 'fixtures/empty-app/lib/cli/app.rb'
232
- - 'fixtures/getting-started-app/Gemfile'
233
-
234
- # Offense count: 85
207
+ # Offense count: 83
235
208
  # Configuration parameters: EnforcedStyle.
236
209
  # SupportedStyles: annotated, template, unannotated
237
210
  Style/FormatStringToken:
238
211
  Enabled: false
239
212
 
240
213
  # Offense count: 2
241
- Style/IdenticalConditionalBranches:
242
- Exclude:
243
- - 'lib/aruba/hooks.rb'
244
-
245
- # Offense count: 10
246
- # Cop supports --auto-correct.
247
- Style/IfUnlessModifier:
248
- Exclude:
249
- - 'Gemfile'
250
- - 'features/support/env.rb'
251
- - 'lib/aruba/cucumber/command.rb'
252
- - 'lib/aruba/matchers/collection/include_an_object.rb'
253
- - 'lib/aruba/platforms/unix_environment_variables.rb'
254
- - 'lib/aruba/setup.rb'
255
- - 'spec/aruba/platform/windows_environment_variables_spec.rb'
256
-
257
- # Offense count: 2
258
- # Cop supports --auto-correct.
259
- # Configuration parameters: EnforcedStyle.
260
- # SupportedStyles: line_count_dependent, lambda, literal
261
- Style/Lambda:
262
- Exclude:
263
- - 'spec/aruba/hooks_spec.rb'
264
-
265
- # Offense count: 5
266
214
  Style/MethodMissingSuper:
267
215
  Exclude:
268
- - 'lib/aruba/config_wrapper.rb'
269
- - 'lib/aruba/in_config_wrapper.rb'
270
216
  - 'lib/aruba/platforms/command_monitor.rb'
271
- - 'lib/aruba/tasks/docker_helpers.rb'
272
-
273
- # Offense count: 3
274
- Style/MissingRespondToMissing:
275
- Exclude:
276
- - 'lib/aruba/in_config_wrapper.rb'
277
- - 'lib/aruba/platforms/command_monitor.rb'
278
-
279
- # Offense count: 1
280
- # Cop supports --auto-correct.
281
- # Configuration parameters: EnforcedStyle.
282
- # SupportedStyles: literals, strict
283
- Style/MutableConstant:
284
- Exclude:
285
- - 'lib/aruba/colorizer.rb'
286
-
287
- # Offense count: 4
288
- # Cop supports --auto-correct.
289
- # Configuration parameters: Whitelist.
290
- # 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
291
- Style/NestedParenthesizedCalls:
292
- Exclude:
293
- - 'spec/aruba/matchers/collection_spec.rb'
294
-
295
- # Offense count: 1
296
- # Cop supports --auto-correct.
297
- # Configuration parameters: AutoCorrect, EnforcedStyle, IgnoredMethods.
298
- # SupportedStyles: predicate, comparison
299
- Style/NumericPredicate:
300
- Exclude:
301
- - 'spec/**/*'
302
- - 'lib/aruba/contracts/is_power_of_two.rb'
303
-
304
- # Offense count: 3
305
- # Cop supports --auto-correct.
306
- # Configuration parameters: PreferredDelimiters.
307
- Style/PercentLiteralDelimiters:
308
- Exclude:
309
- - 'Rakefile'
310
- - 'lib/aruba/api/bundler.rb'
311
-
312
- # Offense count: 2
313
- # Cop supports --auto-correct.
314
- # Configuration parameters: EnforcedStyle, AllowInnerSlashes.
315
- # SupportedStyles: slashes, percent_r, mixed
316
- Style/RegexpLiteral:
317
- Exclude:
318
- - 'lib/aruba/cucumber/command.rb'
319
- - 'lib/aruba/cucumber/file.rb'
320
-
321
- # Offense count: 4
322
- # Cop supports --auto-correct.
323
- # Configuration parameters: EnforcedStyle.
324
- # SupportedStyles: implicit, explicit
325
- Style/RescueStandardError:
326
- Exclude:
327
- - 'lib/aruba/contracts/absolute_path.rb'
328
- - 'lib/aruba/contracts/is_power_of_two.rb'
329
- - 'lib/aruba/contracts/relative_path.rb'
330
- - 'lib/aruba/event_bus/name_resolver.rb'
331
-
332
- # Offense count: 1
333
- # Cop supports --auto-correct.
334
- # Configuration parameters: AllowAsExpressionSeparator.
335
- Style/Semicolon:
336
- Exclude:
337
- - 'lib/aruba/platforms/aruba_fixed_size_file_creator.rb'
338
-
339
- # Offense count: 44
340
- # Cop supports --auto-correct.
341
- # Configuration parameters: EnforcedStyle.
342
- # SupportedStyles: only_raise, only_fail, semantic
343
- Style/SignalException:
344
- Enabled: false
345
-
346
- # Offense count: 2
347
- # Cop supports --auto-correct.
348
- Style/StderrPuts:
349
- Exclude:
350
- - 'Rakefile'
351
- - 'lib/aruba/initializer.rb'
352
-
353
- # Offense count: 7
354
- # Cop supports --auto-correct.
355
- # Configuration parameters: MinSize.
356
- # SupportedStyles: percent, brackets
357
- Style/SymbolArray:
358
- EnforcedStyle: brackets
359
-
360
- # Offense count: 411
361
- # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
362
- # URISchemes: http, https
363
- Metrics/LineLength:
364
- Max: 174