Skip to content

Commit 5d55e0c

Browse files
Merge pull request #35 from banzaicloud/license
refactor: replace license script with licensei
2 parents 19ba764 + 7f3903c commit 5d55e0c

File tree

3 files changed

+19
-39
lines changed

3 files changed

+19
-39
lines changed

.licensei.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,18 @@ ignored = [
1919
"sigs.k8s.io/structured-merge-diff/v4",
2020
"google.golang.org/protobuf",
2121
]
22+
23+
[header]
24+
template = """// Copyright © :YEAR: Banzai Cloud
25+
//
26+
// Licensed under the Apache License, Version 2.0 (the "License");
27+
// you may not use this file except in compliance with the License.
28+
// You may obtain a copy of the License at
29+
//
30+
// http://www.apache.org/licenses/LICENSE-2.0
31+
//
32+
// Unless required by applicable law or agreed to in writing, software
33+
// distributed under the License is distributed on an "AS IS" BASIS,
34+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
35+
// See the License for the specific language governing permissions and
36+
// limitations under the License."""

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
LICENSEI_VERSION = 0.1.0
1+
LICENSEI_VERSION = 0.3.1
22
GOLANGCI_VERSION = 1.16.0
33

44
all: license fmt vet test
55

66
.PHONY: license
7-
license:
8-
./scripts/check-header.sh
7+
license: bin/licensei
8+
bin/licensei header
99

1010
# Run go fmt against code
1111
fmt:
@@ -32,7 +32,7 @@ bin/licensei-${LICENSEI_VERSION}:
3232
.PHONY: license-check
3333
license-check: bin/licensei ## Run license check
3434
bin/licensei check
35-
./scripts/check-header.sh
35+
bin/licensei header
3636

3737
.PHONY: license-cache
3838
license-cache: bin/licensei ## Generate license cache

scripts/check-header.sh

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
 (0)