Sha256: 83b57cd2f67daee85fd092276fd59ab4d518874acf1b125883ac3371f3075ce2
Contents?: true
Size: 457 Bytes
Versions: 28
Compression:
Stored size: 457 Bytes
Contents
# frozen_string_literal: true PuppetLint.new_check(:manifest_whitespace_newline_beginning_of_file) do def check tokens.each do |token| return if token.type != :NEWLINE notify( :error, message: 'there should not be a newline at the beginning of a manifest', line: token.line, column: token.column, token: token, ) end end def fix(problem) remove_token(problem[:token]) end end
Version data entries
28 entries across 28 versions & 1 rubygems