cuke_linter 0.12.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +41 -1
- data/README.md +12 -8
- data/cuke_linter.gemspec +25 -21
- data/exe/cuke_linter +3 -1
- data/lib/cuke_linter.rb +119 -176
- data/lib/cuke_linter/configuration.rb +45 -0
- data/lib/cuke_linter/default_linters.rb +32 -0
- data/lib/cuke_linter/formatters/pretty_formatter.rb +63 -35
- data/lib/cuke_linter/gherkin.rb +10 -0
- data/lib/cuke_linter/linter_registration.rb +32 -0
- data/lib/cuke_linter/linters/background_does_more_than_setup_linter.rb +17 -1
- data/lib/cuke_linter/linters/element_with_common_tags_linter.rb +23 -14
- data/lib/cuke_linter/linters/element_with_duplicate_tags_linter.rb +18 -13
- data/lib/cuke_linter/linters/element_with_too_many_tags_linter.rb +17 -11
- data/lib/cuke_linter/linters/feature_with_too_many_different_tags_linter.rb +1 -3
- data/lib/cuke_linter/linters/feature_without_description_linter.rb +1 -1
- data/lib/cuke_linter/linters/linter.rb +17 -13
- data/lib/cuke_linter/linters/step_with_too_many_characters_linter.rb +2 -2
- data/lib/cuke_linter/linters/test_should_use_background_linter.rb +56 -4
- data/lib/cuke_linter/linters/test_with_action_step_as_final_step_linter.rb +12 -1
- data/lib/cuke_linter/linters/test_with_bad_name_linter.rb +4 -4
- data/lib/cuke_linter/linters/test_with_no_action_step_linter.rb +12 -1
- data/lib/cuke_linter/linters/test_with_no_verification_step_linter.rb +12 -1
- data/lib/cuke_linter/linters/test_with_setup_step_after_action_step_linter.rb +18 -2
- data/lib/cuke_linter/linters/test_with_setup_step_after_verification_step_linter.rb +18 -2
- data/lib/cuke_linter/linters/test_with_setup_step_as_final_step_linter.rb +12 -1
- data/lib/cuke_linter/version.rb +1 -1
- data/testing/cucumber/features/linters/background_does_more_than_setup.feature +34 -0
- data/testing/cucumber/features/linters/test_with_action_as_final_step.feature +25 -3
- data/testing/cucumber/features/linters/test_with_no_action_step.feature +27 -1
- data/testing/cucumber/features/linters/test_with_no_verification_step.feature +28 -1
- data/testing/cucumber/features/linters/test_with_setup_step_after_action_step.feature +28 -1
- data/testing/cucumber/features/linters/test_with_setup_step_after_verification_step.feature +28 -1
- data/testing/cucumber/features/linters/test_with_setup_step_as_final_step.feature +25 -3
- metadata +88 -106
- data/.gitignore +0 -19
- data/.simplecov +0 -8
- data/.travis.yml +0 -23
- data/CONTRIBUTING.md +0 -26
- data/Gemfile +0 -6
- data/Rakefile +0 -63
- data/appveyor.yml +0 -43
- data/bin/console +0 -14
- data/bin/setup +0 -8
- data/environments/common_env.rb +0 -12
- data/environments/cucumber_env.rb +0 -22
- data/environments/rspec_env.rb +0 -50
- data/testing/cucumber/step_definitions/action_steps.rb +0 -84
- data/testing/cucumber/step_definitions/setup_steps.rb +0 -230
- data/testing/cucumber/step_definitions/verification_steps.rb +0 -94
- data/testing/file_helper.rb +0 -41
- data/testing/formatter_factory.rb +0 -15
- data/testing/gemfiles/cuke_modeler1.gemfile +0 -8
- data/testing/gemfiles/cuke_modeler2.gemfile +0 -8
- data/testing/linter_factory.rb +0 -60
- data/testing/model_factory.rb +0 -109
- data/testing/rspec/spec/integration/cli_integration_spec.rb +0 -556
- data/testing/rspec/spec/integration/configuration_spec.rb +0 -811
- data/testing/rspec/spec/integration/cuke_linter_integration_spec.rb +0 -243
- data/testing/rspec/spec/integration/formatters/formatter_integration_specs.rb +0 -5
- data/testing/rspec/spec/integration/formatters/pretty_formatter_integration_spec.rb +0 -8
- data/testing/rspec/spec/integration/linters/background_does_more_than_setup_linter_integration_spec.rb +0 -8
- data/testing/rspec/spec/integration/linters/element_with_common_tags_linter_integration_spec.rb +0 -8
- data/testing/rspec/spec/integration/linters/element_with_duplicate_tags_linter_integration_spec.rb +0 -8
- data/testing/rspec/spec/integration/linters/element_with_too_many_tags_linter_integration_spec.rb +0 -8
- data/testing/rspec/spec/integration/linters/example_without_name_linter_integration_spec.rb +0 -8
- data/testing/rspec/spec/integration/linters/feature_file_with_invalid_name_integration_spec.rb +0 -8
- data/testing/rspec/spec/integration/linters/feature_file_with_mismatched_name_integration_spec.rb +0 -8
- data/testing/rspec/spec/integration/linters/feature_with_too_many_different_tags_linter_integration_spec.rb +0 -8
- data/testing/rspec/spec/integration/linters/feature_without_description_linter_integration_spec.rb +0 -8
- data/testing/rspec/spec/integration/linters/feature_without_name_linter_integration_spec.rb +0 -8
- data/testing/rspec/spec/integration/linters/feature_without_scenarios_linter_integration_spec.rb +0 -8
- data/testing/rspec/spec/integration/linters/linter_integration_spec.rb +0 -8
- data/testing/rspec/spec/integration/linters/linter_integration_specs.rb +0 -7
- data/testing/rspec/spec/integration/linters/outline_with_single_example_row_linter_integration_spec.rb +0 -8
- data/testing/rspec/spec/integration/linters/single_test_background_linter_integration_spec.rb +0 -8
- data/testing/rspec/spec/integration/linters/step_with_end_period_linter_integration_spec.rb +0 -8
- data/testing/rspec/spec/integration/linters/step_with_too_many_characters_linter_integration_spec.rb +0 -8
- data/testing/rspec/spec/integration/linters/test_should_use_background_linter_integration_spec.rb +0 -8
- data/testing/rspec/spec/integration/linters/test_with_action_step_as_final_step_linter_integration_spec.rb +0 -8
- data/testing/rspec/spec/integration/linters/test_with_bad_name_integration_spec.rb +0 -8
- data/testing/rspec/spec/integration/linters/test_with_no_action_step_integration_spec.rb +0 -8
- data/testing/rspec/spec/integration/linters/test_with_no_name_integration_spec.rb +0 -8
- data/testing/rspec/spec/integration/linters/test_with_no_verification_step_integration_spec.rb +0 -8
- data/testing/rspec/spec/integration/linters/test_with_setup_step_after_action_step_linter_integration_spec.rb +0 -8
- data/testing/rspec/spec/integration/linters/test_with_setup_step_after_verification_step_linter_integration_spec.rb +0 -8
- data/testing/rspec/spec/integration/linters/test_with_setup_step_as_final_step_linter_integration_spec.rb +0 -8
- data/testing/rspec/spec/integration/linters/test_with_too_many_steps_linter_integration_spec.rb +0 -8
- data/testing/rspec/spec/unit/cuke_linter_unit_spec.rb +0 -102
- data/testing/rspec/spec/unit/formatters/formatter_unit_specs.rb +0 -11
- data/testing/rspec/spec/unit/formatters/pretty_formatter_unit_spec.rb +0 -115
- data/testing/rspec/spec/unit/linters/background_does_more_than_setup_linter_unit_spec.rb +0 -77
- data/testing/rspec/spec/unit/linters/configurable_linter_unit_specs.rb +0 -11
- data/testing/rspec/spec/unit/linters/element_with_common_tags_linter_unit_spec.rb +0 -248
- data/testing/rspec/spec/unit/linters/element_with_duplicate_tags_linter_unit_spec.rb +0 -203
- data/testing/rspec/spec/unit/linters/element_with_too_many_tags_linter_unit_spec.rb +0 -296
- data/testing/rspec/spec/unit/linters/example_without_name_linter_unit_spec.rb +0 -81
- data/testing/rspec/spec/unit/linters/feature_file_with_invalid_name_linter_unit_spec.rb +0 -106
- data/testing/rspec/spec/unit/linters/feature_file_with_mismatched_name_linter_unit_spec.rb +0 -124
- data/testing/rspec/spec/unit/linters/feature_with_too_many_different_tags_linter_unit_spec.rb +0 -293
- data/testing/rspec/spec/unit/linters/feature_without_description_linter_unit_spec.rb +0 -80
- data/testing/rspec/spec/unit/linters/feature_without_name_linter_unit_spec.rb +0 -84
- data/testing/rspec/spec/unit/linters/feature_without_scenarios_linter_unit_spec.rb +0 -102
- data/testing/rspec/spec/unit/linters/linter_unit_spec.rb +0 -197
- data/testing/rspec/spec/unit/linters/linter_unit_specs.rb +0 -57
- data/testing/rspec/spec/unit/linters/outline_with_single_example_row_linter_unit_spec.rb +0 -184
- data/testing/rspec/spec/unit/linters/single_test_background_linter_unit_spec.rb +0 -89
- data/testing/rspec/spec/unit/linters/step_with_end_period_linter_unit_spec.rb +0 -54
- data/testing/rspec/spec/unit/linters/step_with_too_many_characters_linter_unit_spec.rb +0 -155
- data/testing/rspec/spec/unit/linters/test_should_use_background_linter_unit_spec.rb +0 -226
- data/testing/rspec/spec/unit/linters/test_with_action_step_as_final_step_linter_unit_spec.rb +0 -98
- data/testing/rspec/spec/unit/linters/test_with_bad_name_linter_unit_spec.rb +0 -81
- data/testing/rspec/spec/unit/linters/test_with_no_action_step_linter_unit_spec.rb +0 -176
- data/testing/rspec/spec/unit/linters/test_with_no_name_linter_unit_spec.rb +0 -88
- data/testing/rspec/spec/unit/linters/test_with_no_verification_step_linter_unit_spec.rb +0 -179
- data/testing/rspec/spec/unit/linters/test_with_setup_step_after_action_step_linter_unit_spec.rb +0 -124
- data/testing/rspec/spec/unit/linters/test_with_setup_step_after_verification_step_linter_unit_spec.rb +0 -125
- data/testing/rspec/spec/unit/linters/test_with_setup_step_as_final_step_linter_unit_spec.rb +0 -98
- data/testing/rspec/spec/unit/linters/test_with_too_many_steps_linter_unit_spec.rb +0 -192
@@ -23,8 +23,34 @@ Feature: Test with no action step linter
|
|
23
23
|
| linter | problem | location |
|
24
24
|
| TestWithNoActionStepLinter | Test does not have a 'When' step. | <path_to_file>:3 |
|
25
25
|
|
26
|
+
Scenario: Configuration of keywords for different dialect
|
27
|
+
Given a linter for tests with no action step has been registered
|
28
|
+
And the following configuration file:
|
29
|
+
"""
|
30
|
+
TestWithNoActionStepLinter:
|
31
|
+
Given:
|
32
|
+
- Dado
|
33
|
+
When:
|
34
|
+
- Quando
|
35
|
+
Then:
|
36
|
+
- Então
|
37
|
+
"""
|
38
|
+
And the following feature:
|
39
|
+
"""
|
40
|
+
# language:pt
|
41
|
+
Funcionalidade: Feature name
|
42
|
+
|
43
|
+
Cenário: scenario name
|
44
|
+
Dado some setup in pt dialect
|
45
|
+
Então this is an validation in pt dialect
|
46
|
+
"""
|
47
|
+
When the configuration file is loaded
|
48
|
+
And it is linted
|
49
|
+
Then an error is reported:
|
50
|
+
| linter | problem | location |
|
51
|
+
| TestWithNoActionStepLinter | Test does not have a 'When' step. | <path_to_file>:4 |
|
52
|
+
|
26
53
|
@wip
|
27
54
|
Scenario: Configuration
|
28
55
|
|
29
56
|
Ideas: Configure whether or not the linter triggers on tests with no steps at all?
|
30
|
-
Configure the keyword(s) that count as an action step?
|
@@ -24,8 +24,35 @@ Feature: Test with no verification step linter
|
|
24
24
|
| linter | problem | location |
|
25
25
|
| TestWithNoVerificationStepLinter | Test does not have a 'Then' step. | <path_to_file>:3 |
|
26
26
|
|
27
|
+
Scenario: Configuration of keywords for different dialect
|
28
|
+
Given a linter for tests with no verification step has been registered
|
29
|
+
And the following configuration file:
|
30
|
+
"""
|
31
|
+
TestWithNoVerificationStepLinter:
|
32
|
+
Given:
|
33
|
+
- Dado
|
34
|
+
When:
|
35
|
+
- Quando
|
36
|
+
Then:
|
37
|
+
- Então
|
38
|
+
"""
|
39
|
+
And the following feature:
|
40
|
+
"""
|
41
|
+
# language:pt
|
42
|
+
Funcionalidade: Feature name
|
43
|
+
|
44
|
+
Cenário: scenario name
|
45
|
+
Dado some setup in pt dialect
|
46
|
+
Quando this is an action in pt dialect
|
47
|
+
E this is and AND in pt dialect
|
48
|
+
"""
|
49
|
+
When the configuration file is loaded
|
50
|
+
And it is linted
|
51
|
+
Then an error is reported:
|
52
|
+
| linter | problem | location |
|
53
|
+
| TestWithNoVerificationStepLinter | Test does not have a 'Then' step. | <path_to_file>:4 |
|
54
|
+
|
27
55
|
@wip
|
28
56
|
Scenario: Configuration
|
29
57
|
|
30
58
|
Ideas: Configure whether or not the linter triggers on tests with no steps at all?
|
31
|
-
Configure the keyword(s) that count as a verification step?
|
@@ -23,8 +23,35 @@ Feature: Test with setup step after action step linter
|
|
23
23
|
| linter | problem | location |
|
24
24
|
| TestWithSetupStepAfterActionStepLinter | Test has 'Given' step after 'When' step. | <path_to_file>:3 |
|
25
25
|
|
26
|
+
Scenario: Configuration of keywords for different dialect
|
27
|
+
Given a linter for tests with a setup step after an action step has been registered
|
28
|
+
And the following configuration file:
|
29
|
+
"""
|
30
|
+
TestWithSetupStepAfterActionStepLinter:
|
31
|
+
Given:
|
32
|
+
- Dado
|
33
|
+
- Dadas
|
34
|
+
When:
|
35
|
+
- Quando
|
36
|
+
Then:
|
37
|
+
- Então
|
38
|
+
"""
|
39
|
+
And the following feature:
|
40
|
+
"""
|
41
|
+
# language:pt
|
42
|
+
Funcionalidade: Feature name
|
43
|
+
|
44
|
+
Cenário: scenario name
|
45
|
+
Quando this is an action in pt dialect
|
46
|
+
Dado some setup in pt dialect
|
47
|
+
"""
|
48
|
+
When the configuration file is loaded
|
49
|
+
And it is linted
|
50
|
+
Then an error is reported:
|
51
|
+
| linter | problem | location |
|
52
|
+
| TestWithSetupStepAfterActionStepLinter | Test has 'Given' step after 'When' step. | <path_to_file>:4 |
|
53
|
+
|
26
54
|
@wip
|
27
55
|
Scenario: Configuration
|
28
56
|
|
29
|
-
Configure the keyword(s) that count as setup/action/verification steps?
|
30
57
|
Configure whether or not to include background steps?
|
@@ -23,8 +23,35 @@ Feature: Test with setup step after verification step linter
|
|
23
23
|
| linter | problem | location |
|
24
24
|
| TestWithSetupStepAfterVerificationStepLinter | Test has 'Given' step after 'Then' step. | <path_to_file>:3 |
|
25
25
|
|
26
|
+
Scenario: Configuration of keywords for different dialect
|
27
|
+
Given a linter for tests with a setup step after a verification step has been registered
|
28
|
+
And the following configuration file:
|
29
|
+
"""
|
30
|
+
TestWithSetupStepAfterVerificationStepLinter:
|
31
|
+
Given:
|
32
|
+
- Dado
|
33
|
+
- Dadas
|
34
|
+
When:
|
35
|
+
- Quando
|
36
|
+
Then:
|
37
|
+
- Então
|
38
|
+
"""
|
39
|
+
And the following feature:
|
40
|
+
"""
|
41
|
+
# language:pt
|
42
|
+
Funcionalidade: Feature name
|
43
|
+
|
44
|
+
Cenário: scenario name
|
45
|
+
Então this is an validation in pt dialect
|
46
|
+
Dado some setup in pt dialect
|
47
|
+
"""
|
48
|
+
When the configuration file is loaded
|
49
|
+
And it is linted
|
50
|
+
Then an error is reported:
|
51
|
+
| linter | problem | location |
|
52
|
+
| TestWithSetupStepAfterVerificationStepLinter | Test has 'Given' step after 'Then' step. | <path_to_file>:4 |
|
53
|
+
|
26
54
|
@wip
|
27
55
|
Scenario: Configuration
|
28
56
|
|
29
|
-
Configure the keyword(s) that count as verification steps?
|
30
57
|
Configure whether or not to include background steps?
|
@@ -22,7 +22,29 @@ Feature: Test with setup step as final step linter
|
|
22
22
|
| linter | problem | location |
|
23
23
|
| TestWithSetupStepAsFinalStepLinter | Test has 'Given' as the final step. | <path_to_file>:3 |
|
24
24
|
|
25
|
-
|
26
|
-
|
25
|
+
Scenario: Configuration of keywords for different dialect
|
26
|
+
Given a linter for tests with a setup step as the final step has been registered
|
27
|
+
And the following configuration file:
|
28
|
+
"""
|
29
|
+
TestWithSetupStepAsFinalStepLinter:
|
30
|
+
Given:
|
31
|
+
- Dado
|
32
|
+
- Dadas
|
33
|
+
When:
|
34
|
+
- Quando
|
35
|
+
Then:
|
36
|
+
- Então
|
37
|
+
"""
|
38
|
+
And the following feature:
|
39
|
+
"""
|
40
|
+
# language:pt
|
41
|
+
Funcionalidade: Feature name
|
27
42
|
|
28
|
-
|
43
|
+
Cenário: scenario name
|
44
|
+
Dado some setup in pt dialect
|
45
|
+
"""
|
46
|
+
When the configuration file is loaded
|
47
|
+
And it is linted
|
48
|
+
Then an error is reported:
|
49
|
+
| linter | problem | location |
|
50
|
+
| TestWithSetupStepAsFinalStepLinter | Test has 'Given' as the final step. | <path_to_file>:4 |
|
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:
|
4
|
+
version: 1.1.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-
|
11
|
+
date: 2020-06-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cuke_modeler
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '1.5'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '
|
22
|
+
version: '4.0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '1.5'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '
|
32
|
+
version: '4.0'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: bundler
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -45,7 +45,7 @@ dependencies:
|
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '3.0'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
48
|
+
name: childprocess
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
@@ -59,7 +59,55 @@ dependencies:
|
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '3.0'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
|
-
name:
|
62
|
+
name: coveralls
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "<"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: 1.0.0
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "<"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 1.0.0
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: cucumber
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "<"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '5.0'
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "<"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '5.0'
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: cuke_slicer
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: 2.0.2
|
96
|
+
- - "<"
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '3.0'
|
99
|
+
type: :development
|
100
|
+
prerelease: false
|
101
|
+
version_requirements: !ruby/object:Gem::Requirement
|
102
|
+
requirements:
|
103
|
+
- - ">="
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: 2.0.2
|
106
|
+
- - "<"
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '3.0'
|
109
|
+
- !ruby/object:Gem::Dependency
|
110
|
+
name: ffi
|
63
111
|
requirement: !ruby/object:Gem::Requirement
|
64
112
|
requirements:
|
65
113
|
- - "~>"
|
@@ -72,6 +120,34 @@ dependencies:
|
|
72
120
|
- - "~>"
|
73
121
|
- !ruby/object:Gem::Version
|
74
122
|
version: '1.0'
|
123
|
+
- !ruby/object:Gem::Dependency
|
124
|
+
name: parallel
|
125
|
+
requirement: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - "~>"
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '1.0'
|
130
|
+
type: :development
|
131
|
+
prerelease: false
|
132
|
+
version_requirements: !ruby/object:Gem::Requirement
|
133
|
+
requirements:
|
134
|
+
- - "~>"
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '1.0'
|
137
|
+
- !ruby/object:Gem::Dependency
|
138
|
+
name: rainbow
|
139
|
+
requirement: !ruby/object:Gem::Requirement
|
140
|
+
requirements:
|
141
|
+
- - "<"
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: 4.0.0
|
144
|
+
type: :development
|
145
|
+
prerelease: false
|
146
|
+
version_requirements: !ruby/object:Gem::Requirement
|
147
|
+
requirements:
|
148
|
+
- - "<"
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: 4.0.0
|
75
151
|
- !ruby/object:Gem::Dependency
|
76
152
|
name: rake
|
77
153
|
requirement: !ruby/object:Gem::Requirement
|
@@ -115,7 +191,7 @@ dependencies:
|
|
115
191
|
- !ruby/object:Gem::Version
|
116
192
|
version: '3.0'
|
117
193
|
- !ruby/object:Gem::Dependency
|
118
|
-
name:
|
194
|
+
name: rubocop
|
119
195
|
requirement: !ruby/object:Gem::Requirement
|
120
196
|
requirements:
|
121
197
|
- - "<"
|
@@ -129,7 +205,7 @@ dependencies:
|
|
129
205
|
- !ruby/object:Gem::Version
|
130
206
|
version: 1.0.0
|
131
207
|
- !ruby/object:Gem::Dependency
|
132
|
-
name:
|
208
|
+
name: simplecov
|
133
209
|
requirement: !ruby/object:Gem::Requirement
|
134
210
|
requirements:
|
135
211
|
- - "<"
|
@@ -142,20 +218,6 @@ dependencies:
|
|
142
218
|
- - "<"
|
143
219
|
- !ruby/object:Gem::Version
|
144
220
|
version: 1.0.0
|
145
|
-
- !ruby/object:Gem::Dependency
|
146
|
-
name: rainbow
|
147
|
-
requirement: !ruby/object:Gem::Requirement
|
148
|
-
requirements:
|
149
|
-
- - "<"
|
150
|
-
- !ruby/object:Gem::Version
|
151
|
-
version: 4.0.0
|
152
|
-
type: :development
|
153
|
-
prerelease: false
|
154
|
-
version_requirements: !ruby/object:Gem::Requirement
|
155
|
-
requirements:
|
156
|
-
- - "<"
|
157
|
-
- !ruby/object:Gem::Version
|
158
|
-
version: 4.0.0
|
159
221
|
description:
|
160
222
|
email:
|
161
223
|
- morrow748@gmail.com
|
@@ -164,25 +226,17 @@ executables:
|
|
164
226
|
extensions: []
|
165
227
|
extra_rdoc_files: []
|
166
228
|
files:
|
167
|
-
- ".gitignore"
|
168
|
-
- ".simplecov"
|
169
|
-
- ".travis.yml"
|
170
229
|
- CHANGELOG.md
|
171
|
-
- CONTRIBUTING.md
|
172
|
-
- Gemfile
|
173
230
|
- LICENSE.txt
|
174
231
|
- README.md
|
175
|
-
- Rakefile
|
176
|
-
- appveyor.yml
|
177
|
-
- bin/console
|
178
|
-
- bin/setup
|
179
232
|
- cuke_linter.gemspec
|
180
|
-
- environments/common_env.rb
|
181
|
-
- environments/cucumber_env.rb
|
182
|
-
- environments/rspec_env.rb
|
183
233
|
- exe/cuke_linter
|
184
234
|
- lib/cuke_linter.rb
|
235
|
+
- lib/cuke_linter/configuration.rb
|
236
|
+
- lib/cuke_linter/default_linters.rb
|
185
237
|
- lib/cuke_linter/formatters/pretty_formatter.rb
|
238
|
+
- lib/cuke_linter/gherkin.rb
|
239
|
+
- lib/cuke_linter/linter_registration.rb
|
186
240
|
- lib/cuke_linter/linters/background_does_more_than_setup_linter.rb
|
187
241
|
- lib/cuke_linter/linters/element_with_common_tags_linter.rb
|
188
242
|
- lib/cuke_linter/linters/element_with_duplicate_tags_linter.rb
|
@@ -242,78 +296,6 @@ files:
|
|
242
296
|
- testing/cucumber/features/linters/test_with_setup_step_after_verification_step.feature
|
243
297
|
- testing/cucumber/features/linters/test_with_setup_step_as_final_step.feature
|
244
298
|
- 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
299
|
homepage: https://github.com/enkessler/cuke_linter
|
318
300
|
licenses:
|
319
301
|
- MIT
|