Skip to content

Commit

Permalink
chore: add more license title (#61)
Browse files Browse the repository at this point in the history
* chore: add more license title

* refactor: rename license PHONY
  • Loading branch information
daviderli614 authored Feb 17, 2025
1 parent 66d7c5b commit da1df68
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 15 deletions.
30 changes: 22 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,18 +1,32 @@
# Copyright 2025 Greptime Team
#
# 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.

## Tool Versions
KAWKEYE_VERSION ?= v6.0.0

.PHONY: install-hawkeye
install-hawkeye: ## Install hawkeye.
.PHONY: hawkeye
hawkeye: ## Install hawkeye.
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/korandoru/hawkeye/releases/download/${KAWKEYE_VERSION}/hawkeye-installer.sh | sh

.PHONY: check-lincense-header
check-lincense-header: install-hawkeye ## Check License Header.
.PHONY: check-license
check-license: ## Check License Header.
hawkeye check --config licenserc.toml

.PHONY: format-lincense-header
format-lincense-header: install-hawkeye ## Format License Header.
.PHONY: format-license
format-license: ## Format License Header.
hawkeye format --config licenserc.toml

.PHONY: remove-lincense-header
remove-lincense-header: install-hawkeye ## Remove License Header.
.PHONY: remove-license
remove-license: ## Remove License Header.
hawkeye remove --config licenserc.toml
12 changes: 5 additions & 7 deletions licenserc.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,19 @@
# manually check and fix the license declaration
#
# make check-lincense-header
# make format-lincense-header
# make hawkeye
# make check-license
# make format-license

headerPath = "hack/license-header.txt"

baseDir = "."

includes = [
'*.go'
#'*.yaml',
#'Makefile',
#'*.toml'
'*.go',
'Makefile'
]

[properties]
inceptionYear = 2024
copyrightOwner = "Greptime Team"

[git]
Expand Down

0 comments on commit da1df68

Please sign in to comment.