-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(copyright): Update copyright generation and notice per file (#1997)
- Update copyright notice to 2021 - Update copyright for all Go and Proto files - Install `addlicense` `v1.0.0` in `Makefile` - Update `make license` command - Only include SPDX indentifier - Set copyright holder to 'Chainsafe Systems (ON)' - Set year to current year - Ignore all files that *should* be ignored - Run with verbosity - Add copyright check CI workflow
- Loading branch information
Showing
428 changed files
with
1,022 additions
and
5,004 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
// Copyright 2021 ChainSafe Systems (ON) | ||
// SPDX-License-Identifier: LGPL-3.0-only | ||
|
||
package main | ||
|
||
import ( | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Copyright check | ||
on: | ||
pull_request: | ||
branches: | ||
- development | ||
paths: | ||
- .github/workflows/copyright.yml | ||
- "**/*.go" | ||
- "**/*.proto" | ||
|
||
jobs: | ||
copyright-check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: "^1.17" | ||
|
||
- run: go install github.com/google/[email protected] | ||
|
||
- name: copyright check with addlicense | ||
run: | | ||
addlicense -v -check \ | ||
-s=only \ | ||
-l="LGPL-3.0-only" \ | ||
-f ./copyright.txt \ | ||
-c "ChainSafe Systems (ON)" \ | ||
-ignore "**/*.md" \ | ||
-ignore "**/*.html" \ | ||
-ignore "**/*.css" \ | ||
-ignore "**/*.scss" \ | ||
-ignore "**/*.yml" \ | ||
-ignore "**/*.yaml" \ | ||
-ignore "**/*.js" \ | ||
-ignore "**/*.sh" \ | ||
-ignore "*Dockerfile" \ | ||
. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,14 +98,26 @@ start: | |
@echo " > \033[32mStarting node...\033[0m " | ||
./bin/gossamer --key alice | ||
|
||
$(ADDLICENSE): | ||
go get -u github.com/google/addlicense | ||
|
||
## license: Adds license header to missing files, go gets addLicense if missing. Runs `addlicense -c gossamer -f ./copyright.txt -y 2019 .` on project files. | ||
## license: Adds license header to missing files, go install addlicense if it's missing. | ||
.PHONY: license | ||
license: $(ADDLICENSE) | ||
license: | ||
@echo " > \033[32mAdding license headers...\033[0m " | ||
addlicense -c gossamer -f ./copyright.txt -y 2019 . | ||
go install github.com/google/[email protected] | ||
addlicense -v \ | ||
-s=only \ | ||
-l="LGPL-3.0-only" \ | ||
-f ./copyright.txt \ | ||
-c "ChainSafe Systems (ON)" \ | ||
-ignore "**/*.md" \ | ||
-ignore "**/*.html" \ | ||
-ignore "**/*.css" \ | ||
-ignore "**/*.scss" \ | ||
-ignore "**/*.yml" \ | ||
-ignore "**/*.yaml" \ | ||
-ignore "**/*.js" \ | ||
-ignore "**/*.sh" \ | ||
-ignore "*Dockerfile" \ | ||
. | ||
|
||
docker: docker-build | ||
@echo " > \033[32mStarting Gossamer Container...\033[0m " | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.