Fixes for Dangerfile header checks (#45)

This commit is contained in:
Garrett Moon 2017-04-19 19:50:40 -07:00 committed by GitHub
parent 72c5579bf3
commit bd85ac71f9

View File

@ -1,6 +1,3 @@
#DO NOT COMMIT
require 'pp'
source_pattern = /(\.m|\.mm|\.h)$/
# Sometimes it's a README fix, or something like that - which isn't relevant for
@ -48,7 +45,7 @@ def check_file_header(files_to_check, license)
data += io.read
}
if !data.start_with?(license_header)
fail ("Please ensure new source files begin with: \n" + license_header)
fail ("Please ensure new source files begin with: \n```\n" + license_header + "```")
end
end
end