Skip to content

Commit da1df68

Browse files
authored
chore: add more license title (#61)
* chore: add more license title * refactor: rename license PHONY
1 parent 66d7c5b commit da1df68

2 files changed

Lines changed: 27 additions & 15 deletions

File tree

Makefile

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,32 @@
1+
# Copyright 2025 Greptime Team
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
## Tool Versions
216
KAWKEYE_VERSION ?= v6.0.0
317

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

8-
.PHONY: check-lincense-header
9-
check-lincense-header: install-hawkeye ## Check License Header.
22+
.PHONY: check-license
23+
check-license: ## Check License Header.
1024
hawkeye check --config licenserc.toml
1125

12-
.PHONY: format-lincense-header
13-
format-lincense-header: install-hawkeye ## Format License Header.
26+
.PHONY: format-license
27+
format-license: ## Format License Header.
1428
hawkeye format --config licenserc.toml
1529

16-
.PHONY: remove-lincense-header
17-
remove-lincense-header: install-hawkeye ## Remove License Header.
30+
.PHONY: remove-license
31+
remove-license: ## Remove License Header.
1832
hawkeye remove --config licenserc.toml

licenserc.toml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,19 @@
11
# manually check and fix the license declaration
22
#
3-
# make check-lincense-header
4-
# make format-lincense-header
3+
# make hawkeye
4+
# make check-license
5+
# make format-license
56

67
headerPath = "hack/license-header.txt"
78

89
baseDir = "."
910

1011
includes = [
11-
'*.go'
12-
#'*.yaml',
13-
#'Makefile',
14-
#'*.toml'
12+
'*.go',
13+
'Makefile'
1514
]
1615

1716
[properties]
18-
inceptionYear = 2024
1917
copyrightOwner = "Greptime Team"
2018

2119
[git]

0 commit comments

Comments
 (0)