Got pre-commit to check for correct copyright year

This commit is contained in:
Margo Crawford 2021-01-05 15:53:14 -08:00
parent 53a185083c
commit ea6ebd0226
3 changed files with 10 additions and 5 deletions

View File

@ -15,7 +15,9 @@ repos:
- id: detect-private-key
exclude: testdata
- id: mixed-line-ending
- repo: .
rev: main
- repo: local
hooks:
- id: validate-copyright-year
name: Validate copyright year
entry: hack/check-copyright-year.sh
language: script

View File

@ -1,3 +1,7 @@
#!/bin/bash
# Copyright 2021 the Pinniped contributors. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Check if copyright statements include the current year
#

View File

@ -1,4 +1,4 @@
// Copyright 2020 the Pinniped contributors. All Rights Reserved.
// Copyright 2020-2021 the Pinniped contributors. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package generator
@ -25,7 +25,6 @@ import (
"go.pinniped.dev/internal/testutil"
)
// this is a comment
var (
owner = &appsv1.Deployment{
ObjectMeta: metav1.ObjectMeta{