-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support running Copywrite as a pre-commit hook via .pre-commit-hooks.…
…yaml (#24) * Add pre-commit-hooks for copywrite * Add documentation for pre-commit hooks * Add copywrite to our own pre-commit-config
- Loading branch information
1 parent
166e2ce
commit 66e5399
Showing
3 changed files
with
47 additions
and
4 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
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,27 @@ | ||
- id: add-headers | ||
name: Add copyright headers | ||
description: Adds missing copyright headers to all source code files | ||
entry: go run . | ||
language: golang | ||
args: [headers] | ||
|
||
- id: check-headers | ||
name: Validate copyright headers | ||
description: Checks if any copyright headers are missing, but does not make changes | ||
entry: go run . | ||
language: golang | ||
args: [headers --plan] | ||
|
||
- id: add-license | ||
name: Add or fix repo license | ||
description: Adds or updates a non-compliant LICENSE file | ||
entry: go run . | ||
language: golang | ||
args: [license] | ||
|
||
- id: check-license | ||
name: Validate repo license | ||
description: Checks if a LICENSE file is valid, but does not make changes | ||
entry: go run . | ||
language: golang | ||
args: [license --plan] |
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