Standardize on new two-line license header#6111
Merged
jkotas merged 1 commit intodotnet:masterfrom Sep 3, 2020
am11:feature/standardize-headers
Merged
Standardize on new two-line license header#6111jkotas merged 1 commit intodotnet:masterfrom am11:feature/standardize-headers
jkotas merged 1 commit intodotnet:masterfrom
am11:feature/standardize-headers
Conversation
Member
Author
|
Script used for this on macOS bash: $ git remote add dotnet https://github.com/dotnet/arcade
# delete entire line containing the unwanted license third line in C# code, which are part of the whole repo
$ git ls-files :/*.cs |\
xargs grep -l "See the LICENSE file in the project root for more information." |\
xargs sed -i '' '/See the LICENSE file in the project root for more information/d'
# delete part of line containing license third line in rest of the files, which are part of the whole repo
$ git ls-files |\
xargs grep -l "See the LICENSE file in the project root for more information." |\
xargs sed -i '' 's/ See the LICENSE file in the project root for more information.//g'
# middle grep is there to avoid autofixing of abnormal file-endings (and errors line `sed: RE error: illegal byte sequence`)after that it can be verified that there are no files containing the unwanted third line: $ git grep -l 'See the LICENSE file in the project root for more information'
# or without -l to see the file contents |
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Similar to dotnet/runtime#41783 for arcade.
cc @jkotas