Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(make): make license to add licnese headers for all code files. #572

Merged
merged 2 commits into from
May 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,14 @@ style.deadlink:
style.quickstart:
@$(MAKE) checker.quickstart

# ==============================================================================
## license: Add license headers for code files.
# ==============================================================================
.PHONY: license
license:
# For more details: https://github.com/apache/skywalking-eyes#docker-image
docker run -it --rm -v $(pwd):/github/workspace apache/skywalking-eyes header fix

# ==============================================================================
## integrate.wasm: Run integration test with wasm.
# ==============================================================================
Expand Down
3 changes: 3 additions & 0 deletions docs/en/development/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Layotto provides powerful commands, which makes contribution and local developme

+ Run `make build` to build layotto binary for host platform.

+ Run `make license` to add licnese headers for all code files, with docker.

See below commands to know more details or excute `make help`:

```
Expand Down Expand Up @@ -43,6 +45,7 @@ COMMANDS:
style.coverage Run coverage analysis.
style.deadlink Run deadlink check test.
style.quickstart Run quickstart check test.
license Add license headers for code files.
integrate.wasm Run integration test with wasm.
integrate.runtime Run integration test with runtime.
format Format layotto go codes style with gofmt and goimports.
Expand Down
3 changes: 3 additions & 0 deletions docs/zh/development/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Layotto 提供了丰富的命令行工具,方便贡献者开发和测试 Layot

+ 执行 `make build` 构建当前平台的二进制文件

+ 执行 `make license` 使用 docker 容器为代码文件添加 license headers

具体细节可查看一下命令,或执行 `make help` 查看:

```
Expand Down Expand Up @@ -46,6 +48,7 @@ COMMANDS:
style.coverage Run coverage analysis.
style.deadlink Run deadlink check test.
style.quickstart Run quickstart check test.
license Add license headers for code files.
integrate.wasm Run integration test with wasm.
integrate.runtime Run integration test with runtime.
format Format layotto go codes style with gofmt and goimports.
Expand Down