lib/yamllint/linter.rb
# Check that the data is not empty
Check that the data is not empty
Check that the data is not empty
def check_not_empty?(yaml_data, errors_array)
      if yaml_data.empty?
        errors_array << 'The YAML should not be an empty string'
        false
      elsif yaml_data.strip.empty?
        errors_array << 'The YAML should not just be spaces'
        false
      else
        true
      end
    end
def check_not_empty? ( yaml_data , errors_array ) if yaml_data . empty? errors_array << 'The YAML should not be an empty string' false elsif yaml_data . strip . empty? errors_array << 'The YAML should not just be spaces' false else true end end
Check that the data is not empty
Check that the data is not empty
yaml_data
errors_array