Skip to content

Commit

Permalink
Merge pull request #35 from banzaicloud/license
Browse files Browse the repository at this point in the history
refactor: replace license script with licensei
  • Loading branch information
sagikazarmark authored Oct 3, 2020
2 parents 19ba764 + 7f3903c commit 5d55e0c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 39 deletions.
15 changes: 15 additions & 0 deletions .licensei.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,18 @@ ignored = [
"sigs.k8s.io/structured-merge-diff/v4",
"google.golang.org/protobuf",
]

[header]
template = """// Copyright © :YEAR: Banzai Cloud
//
// 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."""
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
LICENSEI_VERSION = 0.1.0
LICENSEI_VERSION = 0.3.1
GOLANGCI_VERSION = 1.16.0

all: license fmt vet test

.PHONY: license
license:
./scripts/check-header.sh
license: bin/licensei
bin/licensei header

# Run go fmt against code
fmt:
Expand All @@ -32,7 +32,7 @@ bin/licensei-${LICENSEI_VERSION}:
.PHONY: license-check
license-check: bin/licensei ## Run license check
bin/licensei check
./scripts/check-header.sh
bin/licensei header

.PHONY: license-cache
license-cache: bin/licensei ## Generate license cache
Expand Down
35 changes: 0 additions & 35 deletions scripts/check-header.sh

This file was deleted.

0 comments on commit 5d55e0c

Please sign in to comment.