mirror of
https://github.com/TextureGroup/Texture.git
synced 2026-04-07 19:17:39 +00:00
Fixes for Dangerfile header checks (#45)
This commit is contained in:
+1
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user