From 8510624530a5bd06aaf6c9c4e40ff9f923512a89 Mon Sep 17 00:00:00 2001 From: jichangjun Date: Mon, 7 Oct 2024 19:13:28 +0800 Subject: [PATCH] add license header --- README.md | 2 +- README_zh.md | 2 +- internal/linters/c/cppcheck/cppcheck.go | 16 ++++++++++++++ internal/linters/c/cppcheck/cppcheck_test.go | 16 ++++++++++++++ internal/linters/doc/note-check/doc.go | 16 ++++++++++++++ internal/linters/doc/note-check/note.go | 16 ++++++++++++++ internal/linters/doc/note-check/note_test.go | 16 ++++++++++++++ internal/linters/filters.go | 16 ++++++++++++++ internal/linters/filters_test.go | 16 ++++++++++++++ .../{commit-check => commit}/README.md | 0 .../commit_check.go => commit/commit.go} | 2 +- .../commit_test.go} | 18 +++++++++++++++- internal/linters/go/gofmt/gofmt.go | 16 ++++++++++++++ internal/linters/go/gofmt/gofmt_test.go | 16 ++++++++++++++ .../linters/go/golangci_lint/golangci_lint.go | 16 ++++++++++++++ .../go/golangci_lint/golangci_lint_test.go | 16 ++++++++++++++ internal/linters/go/gomodcheck/gomodcheck.go | 16 ++++++++++++++ .../linters/go/gomodcheck/gomodcheck_test.go | 16 ++++++++++++++ internal/linters/java/pmdcheck/pmdcheck.go | 16 ++++++++++++++ .../linters/java/stylecheck/stylecheck.go | 16 ++++++++++++++ internal/linters/lua/luacheck/luacheck.go | 16 ++++++++++++++ .../linters/shell/shellcheck/shellcheck.go | 21 ++++++++++--------- internal/lintersutil/lintersutil.go | 16 ++++++++++++++ internal/metric/metrics.go | 16 ++++++++++++++ internal/runner/docker.go | 16 ++++++++++++++ internal/runner/runner.go | 16 ++++++++++++++ internal/runner/runner_test.go | 16 ++++++++++++++ internal/storage/file.go | 16 ++++++++++++++ internal/storage/git.go | 16 ++++++++++++++ internal/storage/s3.go | 16 ++++++++++++++ internal/storage/storage.go | 16 ++++++++++++++ internal/storage/storage_test.go | 16 ++++++++++++++ internal/version/version.go | 16 ++++++++++++++ main.go | 2 +- 34 files changed, 464 insertions(+), 15 deletions(-) rename internal/linters/git-flow/{commit-check => commit}/README.md (100%) rename internal/linters/git-flow/{commit-check/commit_check.go => commit/commit.go} (99%) rename internal/linters/git-flow/{commit-check/commit_check_test.go => commit/commit_test.go} (79%) diff --git a/README.md b/README.md index ef49b4a..a4546af 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ Please refer to the [getting started guide](https://reviewbot-x.netlify.app/gett ### Git Workflow Standards -- [commit msg check](/internal/linters/git-flow/commit-check/) +- [commit msg check](/internal/linters/git-flow/commit/) ### Documentation Standards diff --git a/README_zh.md b/README_zh.md index c9322b9..0c9d1e8 100644 --- a/README_zh.md +++ b/README_zh.md @@ -81,7 +81,7 @@ Reviewbot 基于 golang 开发,逻辑简单,代码清晰,容易理解和 #### Git 流程规范 -- [commit msg check](/internal/linters/git-flow/commit-check/) +- [commit msg check](/internal/linters/git-flow/commit/) #### 文档规范 diff --git a/internal/linters/c/cppcheck/cppcheck.go b/internal/linters/c/cppcheck/cppcheck.go index e862a53..2cae463 100644 --- a/internal/linters/c/cppcheck/cppcheck.go +++ b/internal/linters/c/cppcheck/cppcheck.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Qiniu Cloud (qiniu.com). + + 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. +*/ + package cppcheck import ( diff --git a/internal/linters/c/cppcheck/cppcheck_test.go b/internal/linters/c/cppcheck/cppcheck_test.go index 695fca9..32fc0a9 100644 --- a/internal/linters/c/cppcheck/cppcheck_test.go +++ b/internal/linters/c/cppcheck/cppcheck_test.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Qiniu Cloud (qiniu.com). + + 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. +*/ + package cppcheck import ( diff --git a/internal/linters/doc/note-check/doc.go b/internal/linters/doc/note-check/doc.go index 3c47a2c..9dcf6ce 100644 --- a/internal/linters/doc/note-check/doc.go +++ b/internal/linters/doc/note-check/doc.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Qiniu Cloud (qiniu.com). + + 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. +*/ + // The main purpose of this plugin is to encourage us to follow standard practices when writing notes as: // // "MARKER(uid): note body" diff --git a/internal/linters/doc/note-check/note.go b/internal/linters/doc/note-check/note.go index 3f3f689..f8a0fd6 100644 --- a/internal/linters/doc/note-check/note.go +++ b/internal/linters/doc/note-check/note.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Qiniu Cloud (qiniu.com). + + 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. +*/ + package notecheck import ( diff --git a/internal/linters/doc/note-check/note_test.go b/internal/linters/doc/note-check/note_test.go index 072c47a..4c0fc37 100644 --- a/internal/linters/doc/note-check/note_test.go +++ b/internal/linters/doc/note-check/note_test.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Qiniu Cloud (qiniu.com). + + 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. +*/ + package notecheck import ( diff --git a/internal/linters/filters.go b/internal/linters/filters.go index ecb086f..cfcf3d4 100644 --- a/internal/linters/filters.go +++ b/internal/linters/filters.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Qiniu Cloud (qiniu.com). + + 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. +*/ + package linters import ( diff --git a/internal/linters/filters_test.go b/internal/linters/filters_test.go index e78b7ff..6d7ed7f 100644 --- a/internal/linters/filters_test.go +++ b/internal/linters/filters_test.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Qiniu Cloud (qiniu.com). + + 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. +*/ + package linters import ( diff --git a/internal/linters/git-flow/commit-check/README.md b/internal/linters/git-flow/commit/README.md similarity index 100% rename from internal/linters/git-flow/commit-check/README.md rename to internal/linters/git-flow/commit/README.md diff --git a/internal/linters/git-flow/commit-check/commit_check.go b/internal/linters/git-flow/commit/commit.go similarity index 99% rename from internal/linters/git-flow/commit-check/commit_check.go rename to internal/linters/git-flow/commit/commit.go index 99de9e5..fb26631 100644 --- a/internal/linters/git-flow/commit-check/commit_check.go +++ b/internal/linters/git-flow/commit/commit.go @@ -14,7 +14,7 @@ limitations under the License. */ -package commit_check +package commit import ( "bytes" diff --git a/internal/linters/git-flow/commit-check/commit_check_test.go b/internal/linters/git-flow/commit/commit_test.go similarity index 79% rename from internal/linters/git-flow/commit-check/commit_check_test.go rename to internal/linters/git-flow/commit/commit_test.go index b44fbc0..5a36c56 100644 --- a/internal/linters/git-flow/commit-check/commit_check_test.go +++ b/internal/linters/git-flow/commit/commit_test.go @@ -1,4 +1,20 @@ -package commit_check +/* + Copyright 2024 Qiniu Cloud (qiniu.com). + + 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. +*/ + +package commit import ( "strings" diff --git a/internal/linters/go/gofmt/gofmt.go b/internal/linters/go/gofmt/gofmt.go index e354af8..8081cb2 100644 --- a/internal/linters/go/gofmt/gofmt.go +++ b/internal/linters/go/gofmt/gofmt.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Qiniu Cloud (qiniu.com). + + 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. +*/ + package gofmt import ( diff --git a/internal/linters/go/gofmt/gofmt_test.go b/internal/linters/go/gofmt/gofmt_test.go index a5602ff..8defc32 100644 --- a/internal/linters/go/gofmt/gofmt_test.go +++ b/internal/linters/go/gofmt/gofmt_test.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Qiniu Cloud (qiniu.com). + + 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. +*/ + package gofmt import ( diff --git a/internal/linters/go/golangci_lint/golangci_lint.go b/internal/linters/go/golangci_lint/golangci_lint.go index 66bb4ef..0ab4b59 100644 --- a/internal/linters/go/golangci_lint/golangci_lint.go +++ b/internal/linters/go/golangci_lint/golangci_lint.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Qiniu Cloud (qiniu.com). + + 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. +*/ + package golangcilint import ( diff --git a/internal/linters/go/golangci_lint/golangci_lint_test.go b/internal/linters/go/golangci_lint/golangci_lint_test.go index f374b9c..e5c208d 100644 --- a/internal/linters/go/golangci_lint/golangci_lint_test.go +++ b/internal/linters/go/golangci_lint/golangci_lint_test.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Qiniu Cloud (qiniu.com). + + 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. +*/ + package golangcilint import ( diff --git a/internal/linters/go/gomodcheck/gomodcheck.go b/internal/linters/go/gomodcheck/gomodcheck.go index d15ed71..caf9054 100644 --- a/internal/linters/go/gomodcheck/gomodcheck.go +++ b/internal/linters/go/gomodcheck/gomodcheck.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Qiniu Cloud (qiniu.com). + + 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. +*/ + package gomodcheck import ( diff --git a/internal/linters/go/gomodcheck/gomodcheck_test.go b/internal/linters/go/gomodcheck/gomodcheck_test.go index 9ffbd3a..dcb15bb 100644 --- a/internal/linters/go/gomodcheck/gomodcheck_test.go +++ b/internal/linters/go/gomodcheck/gomodcheck_test.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Qiniu Cloud (qiniu.com). + + 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. +*/ + package gomodcheck import ( diff --git a/internal/linters/java/pmdcheck/pmdcheck.go b/internal/linters/java/pmdcheck/pmdcheck.go index f4b885b..55f0e7f 100644 --- a/internal/linters/java/pmdcheck/pmdcheck.go +++ b/internal/linters/java/pmdcheck/pmdcheck.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Qiniu Cloud (qiniu.com). + + 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. +*/ + package pmdcheck import ( diff --git a/internal/linters/java/stylecheck/stylecheck.go b/internal/linters/java/stylecheck/stylecheck.go index 6751d1a..9e0fe21 100644 --- a/internal/linters/java/stylecheck/stylecheck.go +++ b/internal/linters/java/stylecheck/stylecheck.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Qiniu Cloud (qiniu.com). + + 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. +*/ + package stylecheck import ( diff --git a/internal/linters/lua/luacheck/luacheck.go b/internal/linters/lua/luacheck/luacheck.go index 724b4ec..8646d30 100644 --- a/internal/linters/lua/luacheck/luacheck.go +++ b/internal/linters/lua/luacheck/luacheck.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Qiniu Cloud (qiniu.com). + + 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. +*/ + package luacheck import ( diff --git a/internal/linters/shell/shellcheck/shellcheck.go b/internal/linters/shell/shellcheck/shellcheck.go index 5b4bd98..b1709dc 100644 --- a/internal/linters/shell/shellcheck/shellcheck.go +++ b/internal/linters/shell/shellcheck/shellcheck.go @@ -1,18 +1,19 @@ /* -Copyright 2024 Qiniu Cloud (qiniu.com). + Copyright 2024 Qiniu Cloud (qiniu.com). -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 + 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 + 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. + 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. */ + package shellcheck import ( diff --git a/internal/lintersutil/lintersutil.go b/internal/lintersutil/lintersutil.go index c4ffe70..d08755e 100644 --- a/internal/lintersutil/lintersutil.go +++ b/internal/lintersutil/lintersutil.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Qiniu Cloud (qiniu.com). + + 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. +*/ + package lintersutil import ( diff --git a/internal/metric/metrics.go b/internal/metric/metrics.go index 072d292..372fe2f 100644 --- a/internal/metric/metrics.go +++ b/internal/metric/metrics.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Qiniu Cloud (qiniu.com). + + 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. +*/ + package metric import ( diff --git a/internal/runner/docker.go b/internal/runner/docker.go index 1c600b5..c1ea742 100644 --- a/internal/runner/docker.go +++ b/internal/runner/docker.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Qiniu Cloud (qiniu.com). + + 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. +*/ + package runner import ( diff --git a/internal/runner/runner.go b/internal/runner/runner.go index f41c4a6..520d394 100644 --- a/internal/runner/runner.go +++ b/internal/runner/runner.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Qiniu Cloud (qiniu.com). + + 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. +*/ + package runner import ( diff --git a/internal/runner/runner_test.go b/internal/runner/runner_test.go index 2fe65dd..405f59a 100644 --- a/internal/runner/runner_test.go +++ b/internal/runner/runner_test.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Qiniu Cloud (qiniu.com). + + 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. +*/ + package runner_test import ( diff --git a/internal/storage/file.go b/internal/storage/file.go index 4e0dd24..d36519d 100644 --- a/internal/storage/file.go +++ b/internal/storage/file.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Qiniu Cloud (qiniu.com). + + 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. +*/ + package storage import ( diff --git a/internal/storage/git.go b/internal/storage/git.go index 60549f8..1e2b781 100644 --- a/internal/storage/git.go +++ b/internal/storage/git.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Qiniu Cloud (qiniu.com). + + 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. +*/ + package storage import ( diff --git a/internal/storage/s3.go b/internal/storage/s3.go index 505662b..66aa0cb 100644 --- a/internal/storage/s3.go +++ b/internal/storage/s3.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Qiniu Cloud (qiniu.com). + + 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. +*/ + package storage import ( diff --git a/internal/storage/storage.go b/internal/storage/storage.go index 8c4d791..d8ef48c 100644 --- a/internal/storage/storage.go +++ b/internal/storage/storage.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Qiniu Cloud (qiniu.com). + + 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. +*/ + package storage import "context" diff --git a/internal/storage/storage_test.go b/internal/storage/storage_test.go index 284bb38..73fb316 100644 --- a/internal/storage/storage_test.go +++ b/internal/storage/storage_test.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Qiniu Cloud (qiniu.com). + + 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. +*/ + package storage_test import ( diff --git a/internal/version/version.go b/internal/version/version.go index a6b7db8..1a6f402 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -1,3 +1,19 @@ +/* + Copyright 2024 Qiniu Cloud (qiniu.com). + + 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. +*/ + package version import ( diff --git a/main.go b/main.go index 77075e1..7f7d934 100644 --- a/main.go +++ b/main.go @@ -40,7 +40,7 @@ import ( // linters import _ "github.com/qiniu/reviewbot/internal/linters/c/cppcheck" _ "github.com/qiniu/reviewbot/internal/linters/doc/note-check" - _ "github.com/qiniu/reviewbot/internal/linters/git-flow/commit-check" + _ "github.com/qiniu/reviewbot/internal/linters/git-flow/commit" _ "github.com/qiniu/reviewbot/internal/linters/go/gofmt" _ "github.com/qiniu/reviewbot/internal/linters/go/golangci_lint" _ "github.com/qiniu/reviewbot/internal/linters/go/gomodcheck"