cuke_linter 0.13.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -1
  3. data/README.md +4 -4
  4. data/cuke_linter.gemspec +3 -3
  5. data/lib/cuke_linter.rb +5 -3
  6. data/lib/cuke_linter/version.rb +1 -1
  7. metadata +2 -86
  8. data/.gitignore +0 -19
  9. data/.simplecov +0 -8
  10. data/.travis.yml +0 -33
  11. data/CONTRIBUTING.md +0 -26
  12. data/Gemfile +0 -6
  13. data/Rakefile +0 -63
  14. data/appveyor.yml +0 -43
  15. data/bin/console +0 -14
  16. data/bin/setup +0 -8
  17. data/environments/common_env.rb +0 -12
  18. data/environments/cucumber_env.rb +0 -22
  19. data/environments/rspec_env.rb +0 -50
  20. data/testing/cucumber/step_definitions/action_steps.rb +0 -84
  21. data/testing/cucumber/step_definitions/setup_steps.rb +0 -258
  22. data/testing/cucumber/step_definitions/verification_steps.rb +0 -94
  23. data/testing/file_helper.rb +0 -41
  24. data/testing/formatter_factory.rb +0 -15
  25. data/testing/gemfiles/cuke_modeler1.gemfile +0 -8
  26. data/testing/gemfiles/cuke_modeler2.gemfile +0 -8
  27. data/testing/linter_factory.rb +0 -60
  28. data/testing/model_factory.rb +0 -109
  29. data/testing/rspec/spec/integration/cli_integration_spec.rb +0 -556
  30. data/testing/rspec/spec/integration/configuration_spec.rb +0 -811
  31. data/testing/rspec/spec/integration/cuke_linter_integration_spec.rb +0 -243
  32. data/testing/rspec/spec/integration/formatters/formatter_integration_specs.rb +0 -5
  33. data/testing/rspec/spec/integration/formatters/pretty_formatter_integration_spec.rb +0 -8
  34. data/testing/rspec/spec/integration/linters/background_does_more_than_setup_linter_integration_spec.rb +0 -8
  35. data/testing/rspec/spec/integration/linters/element_with_common_tags_linter_integration_spec.rb +0 -8
  36. data/testing/rspec/spec/integration/linters/element_with_duplicate_tags_linter_integration_spec.rb +0 -8
  37. data/testing/rspec/spec/integration/linters/element_with_too_many_tags_linter_integration_spec.rb +0 -8
  38. data/testing/rspec/spec/integration/linters/example_without_name_linter_integration_spec.rb +0 -8
  39. data/testing/rspec/spec/integration/linters/feature_file_with_invalid_name_integration_spec.rb +0 -8
  40. data/testing/rspec/spec/integration/linters/feature_file_with_mismatched_name_integration_spec.rb +0 -8
  41. data/testing/rspec/spec/integration/linters/feature_with_too_many_different_tags_linter_integration_spec.rb +0 -8
  42. data/testing/rspec/spec/integration/linters/feature_without_description_linter_integration_spec.rb +0 -8
  43. data/testing/rspec/spec/integration/linters/feature_without_name_linter_integration_spec.rb +0 -8
  44. data/testing/rspec/spec/integration/linters/feature_without_scenarios_linter_integration_spec.rb +0 -8
  45. data/testing/rspec/spec/integration/linters/linter_integration_spec.rb +0 -8
  46. data/testing/rspec/spec/integration/linters/linter_integration_specs.rb +0 -7
  47. data/testing/rspec/spec/integration/linters/outline_with_single_example_row_linter_integration_spec.rb +0 -8
  48. data/testing/rspec/spec/integration/linters/single_test_background_linter_integration_spec.rb +0 -8
  49. data/testing/rspec/spec/integration/linters/step_with_end_period_linter_integration_spec.rb +0 -8
  50. data/testing/rspec/spec/integration/linters/step_with_too_many_characters_linter_integration_spec.rb +0 -8
  51. data/testing/rspec/spec/integration/linters/test_should_use_background_linter_integration_spec.rb +0 -8
  52. data/testing/rspec/spec/integration/linters/test_with_action_step_as_final_step_linter_integration_spec.rb +0 -8
  53. data/testing/rspec/spec/integration/linters/test_with_bad_name_integration_spec.rb +0 -8
  54. data/testing/rspec/spec/integration/linters/test_with_no_action_step_integration_spec.rb +0 -8
  55. data/testing/rspec/spec/integration/linters/test_with_no_name_integration_spec.rb +0 -8
  56. data/testing/rspec/spec/integration/linters/test_with_no_verification_step_integration_spec.rb +0 -8
  57. data/testing/rspec/spec/integration/linters/test_with_setup_step_after_action_step_linter_integration_spec.rb +0 -8
  58. data/testing/rspec/spec/integration/linters/test_with_setup_step_after_verification_step_linter_integration_spec.rb +0 -8
  59. data/testing/rspec/spec/integration/linters/test_with_setup_step_as_final_step_linter_integration_spec.rb +0 -8
  60. data/testing/rspec/spec/integration/linters/test_with_too_many_steps_linter_integration_spec.rb +0 -8
  61. data/testing/rspec/spec/unit/cuke_linter_unit_spec.rb +0 -114
  62. data/testing/rspec/spec/unit/formatters/formatter_unit_specs.rb +0 -11
  63. data/testing/rspec/spec/unit/formatters/pretty_formatter_unit_spec.rb +0 -115
  64. data/testing/rspec/spec/unit/linters/background_does_more_than_setup_linter_unit_spec.rb +0 -186
  65. data/testing/rspec/spec/unit/linters/configurable_linter_unit_specs.rb +0 -11
  66. data/testing/rspec/spec/unit/linters/element_with_common_tags_linter_unit_spec.rb +0 -248
  67. data/testing/rspec/spec/unit/linters/element_with_duplicate_tags_linter_unit_spec.rb +0 -203
  68. data/testing/rspec/spec/unit/linters/element_with_too_many_tags_linter_unit_spec.rb +0 -296
  69. data/testing/rspec/spec/unit/linters/example_without_name_linter_unit_spec.rb +0 -81
  70. data/testing/rspec/spec/unit/linters/feature_file_with_invalid_name_linter_unit_spec.rb +0 -106
  71. data/testing/rspec/spec/unit/linters/feature_file_with_mismatched_name_linter_unit_spec.rb +0 -124
  72. data/testing/rspec/spec/unit/linters/feature_with_too_many_different_tags_linter_unit_spec.rb +0 -293
  73. data/testing/rspec/spec/unit/linters/feature_without_description_linter_unit_spec.rb +0 -80
  74. data/testing/rspec/spec/unit/linters/feature_without_name_linter_unit_spec.rb +0 -84
  75. data/testing/rspec/spec/unit/linters/feature_without_scenarios_linter_unit_spec.rb +0 -102
  76. data/testing/rspec/spec/unit/linters/linter_unit_spec.rb +0 -197
  77. data/testing/rspec/spec/unit/linters/linter_unit_specs.rb +0 -57
  78. data/testing/rspec/spec/unit/linters/outline_with_single_example_row_linter_unit_spec.rb +0 -184
  79. data/testing/rspec/spec/unit/linters/single_test_background_linter_unit_spec.rb +0 -89
  80. data/testing/rspec/spec/unit/linters/step_with_end_period_linter_unit_spec.rb +0 -54
  81. data/testing/rspec/spec/unit/linters/step_with_too_many_characters_linter_unit_spec.rb +0 -155
  82. data/testing/rspec/spec/unit/linters/test_should_use_background_linter_unit_spec.rb +0 -464
  83. data/testing/rspec/spec/unit/linters/test_with_action_step_as_final_step_linter_unit_spec.rb +0 -165
  84. data/testing/rspec/spec/unit/linters/test_with_bad_name_linter_unit_spec.rb +0 -81
  85. data/testing/rspec/spec/unit/linters/test_with_no_action_step_linter_unit_spec.rb +0 -244
  86. data/testing/rspec/spec/unit/linters/test_with_no_name_linter_unit_spec.rb +0 -88
  87. data/testing/rspec/spec/unit/linters/test_with_no_verification_step_linter_unit_spec.rb +0 -246
  88. data/testing/rspec/spec/unit/linters/test_with_setup_step_after_action_step_linter_unit_spec.rb +0 -233
  89. data/testing/rspec/spec/unit/linters/test_with_setup_step_after_verification_step_linter_unit_spec.rb +0 -233
  90. data/testing/rspec/spec/unit/linters/test_with_setup_step_as_final_step_linter_unit_spec.rb +0 -164
  91. data/testing/rspec/spec/unit/linters/test_with_too_many_steps_linter_unit_spec.rb +0 -192
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7669fb1b66c4e9c103aedb209961dbeca8b308f74bcc1159401fa21e1ffd5b05
4
- data.tar.gz: 36ef3927bc68e7d52bde3c91f26ab0428d07b81c7163c0c31aaabf2847fa78db
3
+ metadata.gz: ae22f6f11409b8b44b14680f1b4134e2deda49a8deca6a92ac78798f33588cd1
4
+ data.tar.gz: 443760f17fa6d22ba14c5264e0a26b3f71661afbb703505e9ca257cb3d677cfe
5
5
  SHA512:
6
- metadata.gz: 449a18606c23f574ffba7b5a2d80f9cc7170839daf9187e52404d31ca93e3fb20396860476d827125b6a85968d98985ba83e2ad92d127066a69322edee40459b
7
- data.tar.gz: 407d387c3ce3c6eb3648179837757caa688b5b6bdab42b7cc684d3480054fadc0d7aa4c4ef555d241c77919ecb6e8ae7438736ba6b449e56c6ee76cfbdac07e4
6
+ metadata.gz: 72af3e32ba1ee0a0c4b7b6dd939293b708f4e726e1858d43651d14aa3da8ba0266a4d8d0e6b1b6edd213c24a291c5adc601c736134cf6d1537811276ac29a67d
7
+ data.tar.gz: 583835b3d2f300f9d960711135aef2c5039062328bb5ba218cad1d37fae71c5dcdce5cc1394f6771281e09fbe740683822b98a5aecdd46c3ce843f12bc9d48dc
@@ -8,6 +8,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
 
9
9
  Nothing yet...
10
10
 
11
+
12
+ ## [1.0.0] - 2020-03-09
13
+
14
+ ### Changed
15
+ - No longer including every file in the Git repository as part of the gem. Only the files needed for using the linter (and the informative ones like the README) will be packaged into the released gem.
16
+
17
+
11
18
  ## [0.13.0] - 2020-03-01
12
19
 
13
20
  ### Added
@@ -147,7 +154,8 @@ Nothing yet...
147
154
  - Custom linters, formatters, and command line usability
148
155
 
149
156
 
150
- [Unreleased]: https://github.com/enkessler/cuke_linter/compare/v0.13.0...HEAD
157
+ [Unreleased]: https://github.com/enkessler/cuke_linter/compare/v1.0.0...HEAD
158
+ [1.0.0]: https://github.com/enkessler/cuke_linter/compare/v0.13.0...v1.0.0
151
159
  [0.13.0]: https://github.com/enkessler/cuke_linter/compare/v0.12.1...v0.13.0
152
160
  [0.12.1]: https://github.com/enkessler/cuke_linter/compare/v0.12.0...v0.12.1
153
161
  [0.12.0]: https://github.com/enkessler/cuke_linter/compare/v0.11.1...v0.12.0
data/README.md CHANGED
@@ -8,11 +8,11 @@ User stuff:
8
8
  [![Yard Docs](http://img.shields.io/badge/Documentation-API-blue.svg)](https://www.rubydoc.info/gems/cuke_linter)
9
9
 
10
10
  Developer stuff:
11
- [![Build Status](https://travis-ci.org/enkessler/cuke_linter.svg?branch=dev)](https://travis-ci.org/enkessler/cuke_linter)
12
- [![Build Status](https://ci.appveyor.com/api/projects/status/g5o70u747x073evy/branch/dev?svg=true)](https://ci.appveyor.com/project/enkessler/cuke-linter/branch/dev)
13
- [![Coverage Status](https://coveralls.io/repos/github/enkessler/cuke_linter/badge.svg?branch=dev)](https://coveralls.io/github/enkessler/cuke_linter?branch=dev)
11
+ [![Build Status](https://travis-ci.org/enkessler/cuke_linter.svg?branch=master)](https://travis-ci.org/enkessler/cuke_linter)
12
+ [![Build Status](https://ci.appveyor.com/api/projects/status/g5o70u747x073evy/branch/master?svg=true)](https://ci.appveyor.com/project/enkessler/cuke-linter/branch/master)
13
+ [![Coverage Status](https://coveralls.io/repos/github/enkessler/cuke_linter/badge.svg?branch=master)](https://coveralls.io/github/enkessler/cuke_linter?branch=master)
14
14
  [![Maintainability](https://api.codeclimate.com/v1/badges/d1b86760e59a457c8e73/maintainability)](https://codeclimate.com/github/enkessler/cuke_linter/maintainability)
15
- [![Inline docs](http://inch-ci.org/github/enkessler/cuke_linter.svg?branch=dev)](https://inch-ci.org/github/enkessler/cuke_linter?branch=dev)
15
+ [![Inline docs](http://inch-ci.org/github/enkessler/cuke_linter.svg?branch=master)](https://inch-ci.org/github/enkessler/cuke_linter?branch=master)
16
16
 
17
17
  ---
18
18
 
@@ -14,11 +14,11 @@ Gem::Specification.new do |spec|
14
14
  spec.license = "MIT"
15
15
 
16
16
 
17
- # TODO: don't just include everything in the gem
18
17
  # Specify which files should be added to the gem when it is released.
19
18
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
20
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
21
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
19
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
20
+ source_controlled_files = `git ls-files -z`.split("\x0")
21
+ source_controlled_files.keep_if { |file| file =~ %r{^(lib|exe|testing/cucumber/features)} } + ['README.md', 'LICENSE.txt', 'CHANGELOG.md', 'cuke_linter.gemspec']
22
22
  end
23
23
  spec.bindir = "exe"
24
24
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
@@ -35,8 +35,11 @@ require 'cuke_linter/linters/test_with_too_many_steps_linter'
35
35
 
36
36
  module CukeLinter
37
37
 
38
+ # The default keyword that is considered a 'Given' keyword
38
39
  DEFAULT_GIVEN_KEYWORD = 'Given'.freeze
40
+ # The default keyword that is considered a 'When' keyword
39
41
  DEFAULT_WHEN_KEYWORD = 'When'.freeze
42
+ # The default keyword that is considered a 'Then' keyword
40
43
  DEFAULT_THEN_KEYWORD = 'Then'.freeze
41
44
 
42
45
  @original_linters = { 'BackgroundDoesMoreThanSetupLinter' => BackgroundDoesMoreThanSetupLinter.new,
@@ -132,7 +135,7 @@ module CukeLinter
132
135
 
133
136
  model_trees = [CukeModeler::Directory.new(Dir.pwd)] if model_trees.empty? && file_paths.empty?
134
137
  file_path_models = file_paths.collect do |file_path|
135
- # TODO: raise exception unless path exists
138
+ # TODO: raise exception unless path exists?
136
139
  case
137
140
  when File.directory?(file_path)
138
141
  CukeModeler::Directory.new(file_path)
@@ -150,7 +153,7 @@ module CukeLinter
150
153
  model_tree.each_model do |model|
151
154
  applicable_linters = relevant_linters_for_model(linters, model)
152
155
  applicable_linters.each do |linter|
153
- # TODO: have linters lint only certain types of models
156
+ # TODO: have linters lint only certain types of models?
154
157
  # linting_data.concat(linter.lint(model)) if relevant_model?(linter, model)
155
158
 
156
159
  result = linter.lint(model)
@@ -176,7 +179,6 @@ module CukeLinter
176
179
  end
177
180
  end
178
181
 
179
- # TODO: keep this or always format data?
180
182
  linting_data
181
183
  end
182
184
 
@@ -1,4 +1,4 @@
1
1
  module CukeLinter
2
2
  # The release version of this gem
3
- VERSION = '0.13.0'
3
+ VERSION = '1.0.0'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cuke_linter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Kessler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-02 00:00:00.000000000 Z
11
+ date: 2020-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cuke_modeler
@@ -164,22 +164,10 @@ executables:
164
164
  extensions: []
165
165
  extra_rdoc_files: []
166
166
  files:
167
- - ".gitignore"
168
- - ".simplecov"
169
- - ".travis.yml"
170
167
  - CHANGELOG.md
171
- - CONTRIBUTING.md
172
- - Gemfile
173
168
  - LICENSE.txt
174
169
  - README.md
175
- - Rakefile
176
- - appveyor.yml
177
- - bin/console
178
- - bin/setup
179
170
  - cuke_linter.gemspec
180
- - environments/common_env.rb
181
- - environments/cucumber_env.rb
182
- - environments/rspec_env.rb
183
171
  - exe/cuke_linter
184
172
  - lib/cuke_linter.rb
185
173
  - lib/cuke_linter/formatters/pretty_formatter.rb
@@ -242,78 +230,6 @@ files:
242
230
  - testing/cucumber/features/linters/test_with_setup_step_after_verification_step.feature
243
231
  - testing/cucumber/features/linters/test_with_setup_step_as_final_step.feature
244
232
  - testing/cucumber/features/linters/test_with_too_many_steps.feature
245
- - testing/cucumber/step_definitions/action_steps.rb
246
- - testing/cucumber/step_definitions/setup_steps.rb
247
- - testing/cucumber/step_definitions/verification_steps.rb
248
- - testing/file_helper.rb
249
- - testing/formatter_factory.rb
250
- - testing/gemfiles/cuke_modeler1.gemfile
251
- - testing/gemfiles/cuke_modeler2.gemfile
252
- - testing/linter_factory.rb
253
- - testing/model_factory.rb
254
- - testing/rspec/spec/integration/cli_integration_spec.rb
255
- - testing/rspec/spec/integration/configuration_spec.rb
256
- - testing/rspec/spec/integration/cuke_linter_integration_spec.rb
257
- - testing/rspec/spec/integration/formatters/formatter_integration_specs.rb
258
- - testing/rspec/spec/integration/formatters/pretty_formatter_integration_spec.rb
259
- - testing/rspec/spec/integration/linters/background_does_more_than_setup_linter_integration_spec.rb
260
- - testing/rspec/spec/integration/linters/element_with_common_tags_linter_integration_spec.rb
261
- - testing/rspec/spec/integration/linters/element_with_duplicate_tags_linter_integration_spec.rb
262
- - testing/rspec/spec/integration/linters/element_with_too_many_tags_linter_integration_spec.rb
263
- - testing/rspec/spec/integration/linters/example_without_name_linter_integration_spec.rb
264
- - testing/rspec/spec/integration/linters/feature_file_with_invalid_name_integration_spec.rb
265
- - testing/rspec/spec/integration/linters/feature_file_with_mismatched_name_integration_spec.rb
266
- - testing/rspec/spec/integration/linters/feature_with_too_many_different_tags_linter_integration_spec.rb
267
- - testing/rspec/spec/integration/linters/feature_without_description_linter_integration_spec.rb
268
- - testing/rspec/spec/integration/linters/feature_without_name_linter_integration_spec.rb
269
- - testing/rspec/spec/integration/linters/feature_without_scenarios_linter_integration_spec.rb
270
- - testing/rspec/spec/integration/linters/linter_integration_spec.rb
271
- - testing/rspec/spec/integration/linters/linter_integration_specs.rb
272
- - testing/rspec/spec/integration/linters/outline_with_single_example_row_linter_integration_spec.rb
273
- - testing/rspec/spec/integration/linters/single_test_background_linter_integration_spec.rb
274
- - testing/rspec/spec/integration/linters/step_with_end_period_linter_integration_spec.rb
275
- - testing/rspec/spec/integration/linters/step_with_too_many_characters_linter_integration_spec.rb
276
- - testing/rspec/spec/integration/linters/test_should_use_background_linter_integration_spec.rb
277
- - testing/rspec/spec/integration/linters/test_with_action_step_as_final_step_linter_integration_spec.rb
278
- - testing/rspec/spec/integration/linters/test_with_bad_name_integration_spec.rb
279
- - testing/rspec/spec/integration/linters/test_with_no_action_step_integration_spec.rb
280
- - testing/rspec/spec/integration/linters/test_with_no_name_integration_spec.rb
281
- - testing/rspec/spec/integration/linters/test_with_no_verification_step_integration_spec.rb
282
- - testing/rspec/spec/integration/linters/test_with_setup_step_after_action_step_linter_integration_spec.rb
283
- - testing/rspec/spec/integration/linters/test_with_setup_step_after_verification_step_linter_integration_spec.rb
284
- - testing/rspec/spec/integration/linters/test_with_setup_step_as_final_step_linter_integration_spec.rb
285
- - testing/rspec/spec/integration/linters/test_with_too_many_steps_linter_integration_spec.rb
286
- - testing/rspec/spec/unit/cuke_linter_unit_spec.rb
287
- - testing/rspec/spec/unit/formatters/formatter_unit_specs.rb
288
- - testing/rspec/spec/unit/formatters/pretty_formatter_unit_spec.rb
289
- - testing/rspec/spec/unit/linters/background_does_more_than_setup_linter_unit_spec.rb
290
- - testing/rspec/spec/unit/linters/configurable_linter_unit_specs.rb
291
- - testing/rspec/spec/unit/linters/element_with_common_tags_linter_unit_spec.rb
292
- - testing/rspec/spec/unit/linters/element_with_duplicate_tags_linter_unit_spec.rb
293
- - testing/rspec/spec/unit/linters/element_with_too_many_tags_linter_unit_spec.rb
294
- - testing/rspec/spec/unit/linters/example_without_name_linter_unit_spec.rb
295
- - testing/rspec/spec/unit/linters/feature_file_with_invalid_name_linter_unit_spec.rb
296
- - testing/rspec/spec/unit/linters/feature_file_with_mismatched_name_linter_unit_spec.rb
297
- - testing/rspec/spec/unit/linters/feature_with_too_many_different_tags_linter_unit_spec.rb
298
- - testing/rspec/spec/unit/linters/feature_without_description_linter_unit_spec.rb
299
- - testing/rspec/spec/unit/linters/feature_without_name_linter_unit_spec.rb
300
- - testing/rspec/spec/unit/linters/feature_without_scenarios_linter_unit_spec.rb
301
- - testing/rspec/spec/unit/linters/linter_unit_spec.rb
302
- - testing/rspec/spec/unit/linters/linter_unit_specs.rb
303
- - testing/rspec/spec/unit/linters/outline_with_single_example_row_linter_unit_spec.rb
304
- - testing/rspec/spec/unit/linters/single_test_background_linter_unit_spec.rb
305
- - testing/rspec/spec/unit/linters/step_with_end_period_linter_unit_spec.rb
306
- - testing/rspec/spec/unit/linters/step_with_too_many_characters_linter_unit_spec.rb
307
- - testing/rspec/spec/unit/linters/test_should_use_background_linter_unit_spec.rb
308
- - testing/rspec/spec/unit/linters/test_with_action_step_as_final_step_linter_unit_spec.rb
309
- - testing/rspec/spec/unit/linters/test_with_bad_name_linter_unit_spec.rb
310
- - testing/rspec/spec/unit/linters/test_with_no_action_step_linter_unit_spec.rb
311
- - testing/rspec/spec/unit/linters/test_with_no_name_linter_unit_spec.rb
312
- - testing/rspec/spec/unit/linters/test_with_no_verification_step_linter_unit_spec.rb
313
- - testing/rspec/spec/unit/linters/test_with_setup_step_after_action_step_linter_unit_spec.rb
314
- - testing/rspec/spec/unit/linters/test_with_setup_step_after_verification_step_linter_unit_spec.rb
315
- - testing/rspec/spec/unit/linters/test_with_setup_step_as_final_step_linter_unit_spec.rb
316
- - testing/rspec/spec/unit/linters/test_with_too_many_steps_linter_unit_spec.rb
317
233
  homepage: https://github.com/enkessler/cuke_linter
318
234
  licenses:
319
235
  - MIT
data/.gitignore DELETED
@@ -1,19 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
-
10
- # rspec failure tracking
11
- .rspec_status
12
-
13
- # JetBrains IDE metadata folders
14
- /.idea
15
-
16
- # Mac metadata directories
17
- .DS_Store
18
-
19
- Gemfile.lock
data/.simplecov DELETED
@@ -1,8 +0,0 @@
1
- SimpleCov.start do
2
- root __dir__
3
-
4
- add_filter '/testing/'
5
- add_filter '/environments/'
6
-
7
- merge_timeout 300
8
- end
@@ -1,33 +0,0 @@
1
- os:
2
- - linux
3
- - osx
4
- sudo: false
5
-
6
- # JRuby isn't working on the new default distribution
7
- dist: trusty
8
-
9
- language: ruby
10
- rvm:
11
- - 2.3.3
12
- - 2.4.0
13
- - 2.5.1
14
- - 2.6.0
15
- - jruby-9.1.7.0
16
-
17
- matrix:
18
- exclude:
19
- # Ruby 2.3.x is currently broken on TravisCI and is no longer a supported Ruby version, anyway.
20
- - rvm: 2.3.3
21
- os: osx
22
-
23
- gemfile:
24
- - testing/gemfiles/cuke_modeler1.gemfile
25
- - testing/gemfiles/cuke_modeler2.gemfile
26
-
27
- gemfile:
28
- - testing/gemfiles/cuke_modeler1.gemfile
29
- - testing/gemfiles/cuke_modeler2.gemfile
30
-
31
- before_install: gem install bundler -v 1.16.2
32
-
33
- script: bundle exec rake cuke_linter:ci_build
@@ -1,26 +0,0 @@
1
- # Development
2
-
3
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `bundle exec rake cuke_linter:test_everything` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
4
-
5
-
6
- ## Contributing
7
-
8
- Bug reports and pull requests are welcome on GitHub at https://github.com/enkessler/cuke_linter.
9
-
10
- 1. Fork it
11
- 2. Create your feature branch **(off of the development branch)**
12
- `git checkout -b my-new-feature dev`
13
- 3. Commit your changes
14
- `git commit -am 'Add some feature'`
15
- 4. Push to the branch
16
- `git push origin my-new-feature`
17
- 5. Create new Pull Request
18
-
19
-
20
- ### Adding a new linter
21
-
22
- Some guidelines when adding a new linter
23
- * Inherit from the base linter class. It will handle almost all of the functional requirements of a linter.
24
- * Existing linters should provide decent examples of how to create new linters and how to test them. A copy/paste/tweak approach is perfectly valid.
25
- * Keep linters simple. Rather than have one linter that has different behaviors depending on context, create a different linter class for each context.
26
- * Keep things alphabetical. There are going to be lots of linters and things will be easier to find if lists of them in the code base (e.g. `require` statments, documentation, etc.) are in an intuitive order.
data/Gemfile DELETED
@@ -1,6 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
-
5
- # Specify your gem's dependencies in cuke_linter.gemspec
6
- gemspec
data/Rakefile DELETED
@@ -1,63 +0,0 @@
1
- require 'rake'
2
- require 'racatt'
3
- require 'coveralls/rake/task'
4
- require 'rainbow'
5
-
6
- Rainbow.enabled = true
7
-
8
- namespace 'racatt' do
9
- Racatt.create_tasks
10
- end
11
-
12
- namespace 'cuke_linter' do
13
-
14
- desc 'Removes the current code coverage data'
15
- task :clear_coverage do
16
- code_coverage_directory = "#{__dir__}/coverage"
17
-
18
- FileUtils.remove_dir(code_coverage_directory, true)
19
- end
20
-
21
- desc 'Check documentation with RDoc'
22
- task :check_documentation do
23
- output = `rdoc lib -C`
24
- puts output
25
-
26
- if output =~ /100.00% documented/
27
- puts Rainbow('All code documented').green
28
- else
29
- raise Rainbow('Parts of the gem are undocumented').red
30
- end
31
- end
32
-
33
- desc 'Run all of the tests'
34
- task :test_everything => [:clear_coverage] do
35
- rspec_args = '--pattern "testing/rspec/spec/**/*_spec.rb" --force-color'
36
- cucumber_args = "testing/cucumber/features -r environments/cucumber_env.rb -f progress -t 'not @wip' --color"
37
-
38
- Rake::Task['racatt:test_everything'].invoke(rspec_args, cucumber_args)
39
- end
40
-
41
- # creates coveralls:push task
42
- Coveralls::RakeTask.new
43
-
44
- desc 'The task that CI will run. Do not run locally.'
45
- task :ci_build => ['cuke_linter:test_everything', 'coveralls:push']
46
-
47
- desc 'Check that things look good before trying to release'
48
- task :prerelease_check do
49
- begin
50
- Rake::Task['cuke_linter:test_everything'].invoke
51
- Rake::Task['cuke_linter:check_documentation'].invoke
52
- rescue => e
53
- puts Rainbow("-----------------------\nSomething isn't right!").red
54
- raise e
55
- end
56
-
57
- puts Rainbow("-----------------------\nAll is well. :)").green
58
- end
59
-
60
- end
61
-
62
-
63
- task :default => 'cuke_linter:test_everything'
@@ -1,43 +0,0 @@
1
- version: '1.0.{build}'
2
-
3
- environment:
4
- matrix:
5
- - RUBY_VERSION: 23
6
- BUNDLE_GEMFILE: testing/gemfiles/cuke_modeler1.gemfile
7
- - RUBY_VERSION: 23-x64
8
- BUNDLE_GEMFILE: testing/gemfiles/cuke_modeler1.gemfile
9
- - RUBY_VERSION: 24
10
- BUNDLE_GEMFILE: testing/gemfiles/cuke_modeler1.gemfile
11
- - RUBY_VERSION: 24-x64
12
- BUNDLE_GEMFILE: testing/gemfiles/cuke_modeler1.gemfile
13
- - RUBY_VERSION: 25
14
- BUNDLE_GEMFILE: testing/gemfiles/cuke_modeler1.gemfile
15
- - RUBY_VERSION: 25-x64
16
- BUNDLE_GEMFILE: testing/gemfiles/cuke_modeler1.gemfile
17
-
18
- - RUBY_VERSION: 23
19
- BUNDLE_GEMFILE: testing/gemfiles/cuke_modeler2.gemfile
20
- - RUBY_VERSION: 23-x64
21
- BUNDLE_GEMFILE: testing/gemfiles/cuke_modeler2.gemfile
22
- - RUBY_VERSION: 24
23
- BUNDLE_GEMFILE: testing/gemfiles/cuke_modeler2.gemfile
24
- - RUBY_VERSION: 24-x64
25
- BUNDLE_GEMFILE: testing/gemfiles/cuke_modeler2.gemfile
26
- - RUBY_VERSION: 25
27
- BUNDLE_GEMFILE: testing/gemfiles/cuke_modeler2.gemfile
28
- - RUBY_VERSION: 25-x64
29
- BUNDLE_GEMFILE: testing/gemfiles/cuke_modeler2.gemfile
30
-
31
- install:
32
- - set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
33
- - bundle install
34
-
35
- build: off
36
-
37
- before_test:
38
- - ruby -v
39
- - gem -v
40
- - bundle -v
41
-
42
- test_script:
43
- - bundle exec rake cuke_linter:ci_build
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require "bundler/setup"
4
- require "cuke_linter"
5
-
6
- # You can add fixtures and/or initialization code here to make experimenting
7
- # with your gem easier. You can also use a different console, if you like.
8
-
9
- # (If you use this, don't forget to add pry to your Gemfile!)
10
- # require "pry"
11
- # Pry.start
12
-
13
- require "irb"
14
- IRB.start(__FILE__)