Skip to content

Commit 7755d25

Browse files
authored
*: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (pingcap#27198)
1 parent 0709307 commit 7755d25

File tree

1,480 files changed

+1621
-9
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,480 files changed

+1621
-9
lines changed

.build.ps1

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#
99
# Unless required by applicable law or agreed to in writing, software
1010
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
# See the License for the specific language governing permissions and
1213
# limitations under the License.
1314

.github/.licenserc.yaml

+100
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
header:
2+
license:
3+
spdx-id: Apache-2.0
4+
copyright-owner: PingCAP, Inc.
5+
paths-ignore:
6+
- 'docs/'
7+
- 'br/'
8+
- '.gitignore'
9+
- '.gitattributes'
10+
- '.golangci.yml'
11+
- '.licenserc.yaml'
12+
- 'LICENSES/'
13+
- '**/*.md'
14+
- '**/*.json'
15+
- '**/*.pem'
16+
- '**/*.crt'
17+
- '**/*.test'
18+
- '**/*.result'
19+
- '**/*.example'
20+
- '.codecov.yml'
21+
- 'circle.yml'
22+
- 'errors.toml'
23+
- 'Jenkinsfile'
24+
- '.editorconfig'
25+
- 'hooks/pre-commit'
26+
- '**/go.mod'
27+
- '**/go.sum'
28+
- 'LICENSE'
29+
- '.github/'
30+
# The license checker think the following 68 files do not have valid header licenses, need to be discussed.
31+
# Ignore them for now.
32+
- 'cmd/explaintest/config.toml'
33+
- 'cmd/importer/config.toml'
34+
- 'cmd/portgenerator/portgenerator.go'
35+
- 'ddl/ddl.go'
36+
- 'ddl/ddl_api.go'
37+
- 'ddl/mock.go'
38+
- 'ddl/options.go'
39+
- 'executor/aggfuncs/func_stddevpop_test.go'
40+
- 'executor/aggfuncs/func_stddevsamp_test.go'
41+
- 'executor/aggfuncs/func_varpop_test.go'
42+
- 'executor/aggfuncs/func_varsamp_test.go'
43+
- 'executor/index_lookup_merge_join_test.go'
44+
- 'executor/pkg_test.go'
45+
- 'expression/aggregation/base_func_test.go'
46+
- 'expression/aggregation/util_test.go'
47+
- 'expression/builtin.go'
48+
- 'expression/builtin_info.go'
49+
- 'expression/builtin_math.go'
50+
- 'expression/builtin_miscellaneous.go'
51+
- 'expression/builtin_miscellaneous_test.go'
52+
- 'expression/builtin_string.go'
53+
- 'expression/builtin_time.go'
54+
- 'metrics/alertmanager/tidb.rules.yml'
55+
- 'metrics/topsql.go'
56+
- 'planner/core/cache_test.go'
57+
- 'planner/core/logical_plans_test.go'
58+
- 'planner/core/partition_prune.go'
59+
- 'planner/core/partition_pruning_test.go'
60+
- 'planner/core/rule_aggregation_push_down.go'
61+
- 'planner/core/rule_max_min_eliminate.go'
62+
- 'planner/core/rule_partition_processor.go'
63+
- 'planner/core/rule_predicate_push_down.go'
64+
- 'planner/core/telemetry.go'
65+
- 'plugin/conn_ip_example/manifest.toml'
66+
- 'server/conn.go'
67+
- 'server/conn_stmt.go'
68+
- 'server/packetio.go'
69+
- 'server/server.go'
70+
- 'server/util.go'
71+
- 'session/bootstrap.go'
72+
- 'session/session.go'
73+
- 'session/tidb.go'
74+
- 'store/driver/kv_test.go'
75+
- 'store/mockstore/unistore/config/config-template.toml'
76+
- 'store/mockstore/unistore/server/server.go'
77+
- 'table/column.go'
78+
- 'table/table.go'
79+
- 'table/tables/tables.go'
80+
- 'tests/globalkilltest/config.toml'
81+
- 'tests/readonlytest/readonly_test.go'
82+
- 'tools/check/check-timeout.go'
83+
- 'tools/check/revive.toml'
84+
- 'types/convert.go'
85+
- 'types/etc.go'
86+
- 'types/fuzzMarshalJSON.go'
87+
- 'types/fuzzNewBitLiteral.go'
88+
- 'types/fuzzNewHexLiteral.go'
89+
- 'util/collate/collate_bench_test.go'
90+
- 'util/format/format.go'
91+
- 'util/logutil/slow_query_logger.go'
92+
- 'util/mvmap/fnv.go'
93+
- 'util/prefix_helper.go'
94+
- 'util/resourcegrouptag/resource_group_tag.go'
95+
- 'util/set/set_with_memory_usage_test.go'
96+
- 'util/testkit/fake.go'
97+
- 'util/testleak/leaktest.go'
98+
- 'util/timeutil/time_test.go'
99+
- 'util/topsql/reporter/mock/server.go'
100+
comment: on-failure

.github/workflows/license-checker.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: License checker
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
check-license:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Check License Header
18+
uses: apache/skywalking-eyes@main
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
21+
with:
22+
log: info
23+
config: .github/.licenserc.yaml

Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#
99
# Unless required by applicable law or agreed to in writing, software
1010
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
# See the License for the specific language governing permissions and
1213
# limitations under the License.
1314

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#
99
# Unless required by applicable law or agreed to in writing, software
1010
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
# See the License for the specific language governing permissions and
1213
# limitations under the License.
1314

Makefile.common

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#
99
# Unless required by applicable law or agreed to in writing, software
1010
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
# See the License for the specific language governing permissions and
1213
# limitations under the License.
1314

bindinfo/bind_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
1314

bindinfo/cache.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
1314

bindinfo/handle.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
1314

bindinfo/session_handle.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
1314

bindinfo/stat.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
1314

br/cmd/br/main_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
1314

br/cmd/tidb-lightning-ctl/main.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
1314

br/cmd/tidb-lightning-ctl/main_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
1314

br/cmd/tidb-lightning/main.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
1314

br/cmd/tidb-lightning/main_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
1314

br/compatibility/prepare_backup.sh

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#
1111
# Unless required by applicable law or agreed to in writing, software
1212
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1314
# See the License for the specific language governing permissions and
1415
# limitations under the License.
1516

br/pkg/cdclog/buffer.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
1314

br/pkg/cdclog/decoder.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
1314

br/pkg/cdclog/decoder_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
1314

br/pkg/cdclog/puller.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
1314

br/pkg/kv/checksum.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
1314

br/pkg/kv/checksum_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
1314

br/pkg/kv/kv.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
1314

br/pkg/kv/kv_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
1314

br/pkg/kv/session.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
1314

br/pkg/kv/session_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
1314

br/pkg/lightning/backend/backend.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
1314

br/pkg/lightning/backend/importer/importer.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
1314

br/pkg/lightning/backend/importer/importer_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
1314

br/pkg/lightning/backend/kv/allocator.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
1314

br/pkg/lightning/backend/kv/kv2sql.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
1314

br/pkg/lightning/backend/kv/session.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
1314

br/pkg/lightning/backend/kv/session_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
1314

br/pkg/lightning/backend/kv/sql2kv.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
1314

br/pkg/lightning/backend/kv/sql2kv_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
//
99
// Unless required by applicable law or agreed to in writing, software
1010
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1112
// See the License for the specific language governing permissions and
1213
// limitations under the License.
1314

0 commit comments

Comments
 (0)