Class: Yamlint::Rules::EmptyLines
- Defined in:
- lib/yamlint/rules/empty_lines.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
defaults, desc, inherited, #initialize, rule_id
Constructor Details
This class inherits a constructor from Yamlint::Rules::Base
Instance Method Details
#check(context) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/yamlint/rules/empty_lines.rb', line 14 def check(context) return [] if context.empty? problems = [] problems.concat(check_start_empty_lines(context)) problems.concat(check_end_empty_lines(context)) problems.concat(check_consecutive_empty_lines(context)) problems end |
#fixable? ⇒ Boolean
24 25 26 |
# File 'lib/yamlint/rules/empty_lines.rb', line 24 def fixable? true end |