Skip to content

Commit

Permalink
Fixes for Dangerfile header checks (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettmoon committed Apr 20, 2017
1 parent 72c5579 commit bd85ac7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Dangerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bd85ac7

Please sign in to comment.