From 8373d9d8bb0d7f630ac4104c6a5864284c489d0b Mon Sep 17 00:00:00 2001 From: seeflood Date: Tue, 17 May 2022 17:14:39 +0800 Subject: [PATCH 1/2] make license Signed-off-by: seeflood --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index df8368e874..4b4ddd3673 100644 --- a/Makefile +++ b/Makefile @@ -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. # ============================================================================== From f99787682038b34e0e14f4d3092997dd3f9cac6a Mon Sep 17 00:00:00 2001 From: seeflood Date: Tue, 17 May 2022 17:24:37 +0800 Subject: [PATCH 2/2] add doc Signed-off-by: seeflood --- docs/en/development/commands.md | 3 +++ docs/zh/development/commands.md | 3 +++ 2 files changed, 6 insertions(+) diff --git a/docs/en/development/commands.md b/docs/en/development/commands.md index 12edb425c6..861f150e80 100644 --- a/docs/en/development/commands.md +++ b/docs/en/development/commands.md @@ -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`: ``` @@ -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. diff --git a/docs/zh/development/commands.md b/docs/zh/development/commands.md index 38104014d8..ff2ef92cf4 100644 --- a/docs/zh/development/commands.md +++ b/docs/zh/development/commands.md @@ -16,6 +16,8 @@ Layotto 提供了丰富的命令行工具,方便贡献者开发和测试 Layot + 执行 `make build` 构建当前平台的二进制文件 ++ 执行 `make license` 使用 docker 容器为代码文件添加 license headers + 具体细节可查看一下命令,或执行 `make help` 查看: ``` @@ -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.