Skip to content

Commit

Permalink
Update dangerfile for 2018 #trivial (TextureGroup#746)
Browse files Browse the repository at this point in the history
* Update the dangerfile

* Make a trivial change to test new dangerfile

* Try out the new value with another trivial change
  • Loading branch information
Adlai-Holler authored and bernieperez committed Apr 25, 2018
1 parent 6b4e925 commit b3d25d9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Dangerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ def check_file_header(files_to_check, licenses)
correct_license = false
licenses.each do |license|
license_header = full_license(license, filename)
if data.start_with?(license_header)
# Hack for https://github.com/TextureGroup/Texture/issues/745
# If it's already a "modified-post-Texture" file, leave it with it original copyright year.
if data.include "Modifications to this file made after 4/13/2017"
correct_license = true
elsif data.start_with?(license_header)
correct_license = true
end
end
Expand Down Expand Up @@ -87,7 +91,7 @@ modified_source_license_header = <<-HEREDOC
// LICENSE file in the /ASDK-Licenses directory of this source tree. An additional
// grant of patent rights can be found in the PATENTS file in the same directory.
//
// Modifications to this file made after 4/13/2017 are: Copyright (c) 2017-present,
// Modifications to this file made after 4/13/2017 are: Copyright (c) through the present,
// Pinterest, Inc. Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
Expand Down

0 comments on commit b3d25d9

Please sign in to comment.