1+ # Copyright 2025 The ChaosBlade Authors
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.PHONY : build clean linux_amd64 linux_arm64 darwin_amd64 darwin_arm64 build_all help
216
317GO_ENV=CGO_ENABLED =0
89103 @echo " test - Run tests with race detection"
90104 @echo " format - Format Go code using goimports and gofumpt"
91105 @echo " verify - Verify Go code formatting and import order"
106+ @echo " license-check - Check license headers in source files"
92107 @echo " help - Show this help message"
93108 @echo " "
94109 @echo " Examples:"
@@ -164,7 +179,7 @@ clean:
164179 rm -rf $(BUILD_TARGET )
165180
166181.PHONY : format
167- format :
182+ format : license-format
168183 @echo " Running goimports and gofumpt to format Go code..."
169184 @./hack/update-imports.sh
170185 @./hack/update-gofmt.sh
@@ -173,4 +188,14 @@ format:
173188verify :
174189 @echo " Verifying Go code formatting and import order..."
175190 @./hack/verify-gofmt.sh
176- @./hack/verify-imports.sh
191+ @./hack/verify-imports.sh
192+
193+ .PHONY : license-check
194+ license-check :
195+ @echo " Checking license headers..."
196+ docker run -it --rm -v $(shell pwd) :/github/workspace ghcr.io/korandoru/hawkeye check
197+
198+ .PHONY : license-format
199+ license-format :
200+ @echo " Formatting license headers..."
201+ docker run -it --rm -v $(shell pwd) :/github/workspace ghcr.io/korandoru/hawkeye format
0 commit comments