Skip to content

Commit

Permalink
Fix license header linter config
Browse files Browse the repository at this point in the history
  • Loading branch information
henrybear327 committed Sep 4, 2024
1 parent a4bf883 commit bce932e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
21 changes: 17 additions & 4 deletions tools/.golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ issues:
max-same-issues: 0
exclude-files:
- ^zz_generated.*
- test/
- pkg/leaselocker/
- internal/controller/suite_test.go
linters:
disable-all: true
enable:
Expand Down Expand Up @@ -87,4 +84,20 @@ linters-settings:
disabled: false
# https://golangci-lint.run/usage/linters/#goheader
goheader:
template-path: ./tools/license_header.txt
values:
regexp:
AUTHOR: ^Copyright 2024 (The Kubernetes authors|Swisscom \(Schweiz\) AG)\.
template: |-
{{ AUTHOR }}
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
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
13 changes: 0 additions & 13 deletions tools/license_header.txt

This file was deleted.

0 comments on commit bce932e

Please sign in to comment.