Class: CucumberLint::FeatureEmptyLinesLinter
- Defined in:
- lib/cucumber_lint/linter/feature_empty_lines_linter.rb
Overview
A linter for a given feature’s empty lines
Instance Method Summary collapse
-
#initialize(config:, feature:, linted_file:) ⇒ FeatureEmptyLinesLinter
constructor
A new instance of FeatureEmptyLinesLinter.
- #lint ⇒ Object
Methods inherited from Linter
Constructor Details
#initialize(config:, feature:, linted_file:) ⇒ FeatureEmptyLinesLinter
Returns a new instance of FeatureEmptyLinesLinter.
5 6 7 8 9 10 |
# File 'lib/cucumber_lint/linter/feature_empty_lines_linter.rb', line 5 def initialize config:, feature:, linted_file: super config: config, linted_file: linted_file @feature = feature @description = feature.description end |
Instance Method Details
#lint ⇒ Object
13 14 15 16 |
# File 'lib/cucumber_lint/linter/feature_empty_lines_linter.rb', line 13 def lint lint_description lint_elements end |