From e3de6626f4b4f836bd8dfaa33bdcb16e45e776ee Mon Sep 17 00:00:00 2001 From: tison Date: Wed, 15 Sep 2021 10:25:04 +0800 Subject: [PATCH] expression, executor: fix license header Signed-off-by: tison --- .github/licenserc.yml | 16 ---------------- executor/aggfuncs/func_stddevpop_test.go | 14 ++++++++++++++ executor/aggfuncs/func_stddevsamp_test.go | 14 ++++++++++++++ executor/aggfuncs/func_varpop_test.go | 14 ++++++++++++++ executor/aggfuncs/func_varsamp_test.go | 14 ++++++++++++++ executor/index_lookup_merge_join_test.go | 14 ++++++++++++++ executor/pkg_test.go | 14 ++++++++++++++ expression/aggregation/base_func_test.go | 14 ++++++++++++++ expression/aggregation/util_test.go | 14 ++++++++++++++ expression/builtin.go | 8 ++++---- expression/builtin_info.go | 8 ++++---- expression/builtin_math.go | 8 ++++---- expression/builtin_miscellaneous.go | 5 +++-- expression/builtin_miscellaneous_test.go | 5 +++-- expression/builtin_string.go | 8 ++++---- expression/builtin_time.go | 8 ++++---- 16 files changed, 138 insertions(+), 40 deletions(-) diff --git a/.github/licenserc.yml b/.github/licenserc.yml index 2360d1b116e61..c71bbe8b2ff8b 100644 --- a/.github/licenserc.yml +++ b/.github/licenserc.yml @@ -17,7 +17,6 @@ header: - '**/*.result' - '**/*.example' - '.codecov.yml' - - 'circle.yml' - 'errors.toml' - 'Jenkinsfile' - '.editorconfig' @@ -28,21 +27,6 @@ header: - '.github/' # The license checker think the following 68 files do not have valid header licenses, need to be discussed. # Ignore them for now. - - 'executor/aggfuncs/func_stddevpop_test.go' - - 'executor/aggfuncs/func_stddevsamp_test.go' - - 'executor/aggfuncs/func_varpop_test.go' - - 'executor/aggfuncs/func_varsamp_test.go' - - 'executor/index_lookup_merge_join_test.go' - - 'executor/pkg_test.go' - - 'expression/aggregation/base_func_test.go' - - 'expression/aggregation/util_test.go' - - 'expression/builtin.go' - - 'expression/builtin_info.go' - - 'expression/builtin_math.go' - - 'expression/builtin_miscellaneous.go' - - 'expression/builtin_miscellaneous_test.go' - - 'expression/builtin_string.go' - - 'expression/builtin_time.go' - 'metrics/alertmanager/tidb.rules.yml' - 'metrics/topsql.go' - 'planner/core/cache_test.go' diff --git a/executor/aggfuncs/func_stddevpop_test.go b/executor/aggfuncs/func_stddevpop_test.go index 0c4b7e24f601b..ef53fd562a53e 100644 --- a/executor/aggfuncs/func_stddevpop_test.go +++ b/executor/aggfuncs/func_stddevpop_test.go @@ -1,3 +1,17 @@ +// Copyright 2021 PingCAP, Inc. +// +// 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 aggfuncs_test import ( diff --git a/executor/aggfuncs/func_stddevsamp_test.go b/executor/aggfuncs/func_stddevsamp_test.go index 50ad2c3fe9d05..d185e389e1291 100644 --- a/executor/aggfuncs/func_stddevsamp_test.go +++ b/executor/aggfuncs/func_stddevsamp_test.go @@ -1,3 +1,17 @@ +// Copyright 2021 PingCAP, Inc. +// +// 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 aggfuncs_test import ( diff --git a/executor/aggfuncs/func_varpop_test.go b/executor/aggfuncs/func_varpop_test.go index 1b7fe3596bb43..777245a74a1e9 100644 --- a/executor/aggfuncs/func_varpop_test.go +++ b/executor/aggfuncs/func_varpop_test.go @@ -1,3 +1,17 @@ +// Copyright 2021 PingCAP, Inc. +// +// 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 aggfuncs_test import ( diff --git a/executor/aggfuncs/func_varsamp_test.go b/executor/aggfuncs/func_varsamp_test.go index f68c5da6c710d..6830502a1d2fc 100644 --- a/executor/aggfuncs/func_varsamp_test.go +++ b/executor/aggfuncs/func_varsamp_test.go @@ -1,3 +1,17 @@ +// Copyright 2021 PingCAP, Inc. +// +// 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 aggfuncs_test import ( diff --git a/executor/index_lookup_merge_join_test.go b/executor/index_lookup_merge_join_test.go index 1817dca79a3ae..ff40efa01c9b7 100644 --- a/executor/index_lookup_merge_join_test.go +++ b/executor/index_lookup_merge_join_test.go @@ -1,3 +1,17 @@ +// Copyright 2021 PingCAP, Inc. +// +// 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 executor_test import ( diff --git a/executor/pkg_test.go b/executor/pkg_test.go index 81ab9087128ba..ddfadfaf95dd0 100644 --- a/executor/pkg_test.go +++ b/executor/pkg_test.go @@ -1,3 +1,17 @@ +// Copyright 2021 PingCAP, Inc. +// +// 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 executor import ( diff --git a/expression/aggregation/base_func_test.go b/expression/aggregation/base_func_test.go index b35bc7bbe1f40..0d86d36f22173 100644 --- a/expression/aggregation/base_func_test.go +++ b/expression/aggregation/base_func_test.go @@ -1,3 +1,17 @@ +// Copyright 2021 PingCAP, Inc. +// +// 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 aggregation import ( diff --git a/expression/aggregation/util_test.go b/expression/aggregation/util_test.go index 883cf3d47c511..3b48271d51feb 100644 --- a/expression/aggregation/util_test.go +++ b/expression/aggregation/util_test.go @@ -1,3 +1,17 @@ +// Copyright 2021 PingCAP, Inc. +// +// 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 aggregation import ( diff --git a/expression/builtin.go b/expression/builtin.go index da5533615f616..bb716ba33b1d3 100644 --- a/expression/builtin.go +++ b/expression/builtin.go @@ -1,7 +1,3 @@ -// Copyright 2013 The ql Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSES/QL-LICENSE file. - // Copyright 2015 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -16,6 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Copyright 2013 The ql Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSES/QL-LICENSE file. + //go:generate go run generator/compare_vec.go //go:generate go run generator/control_vec.go //go:generate go run generator/other_vec.go diff --git a/expression/builtin_info.go b/expression/builtin_info.go index f81ead486eae4..d4455c9574892 100644 --- a/expression/builtin_info.go +++ b/expression/builtin_info.go @@ -1,7 +1,3 @@ -// Copyright 2013 The ql Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSES/QL-LICENSE file. - // Copyright 2015 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -16,6 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Copyright 2013 The ql Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSES/QL-LICENSE file. + package expression import ( diff --git a/expression/builtin_math.go b/expression/builtin_math.go index 7891c30e69fc2..6236e0103ed44 100644 --- a/expression/builtin_math.go +++ b/expression/builtin_math.go @@ -1,7 +1,3 @@ -// Copyright 2013 The ql Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSES/QL-LICENSE file. - // Copyright 2015 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -16,6 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Copyright 2013 The ql Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSES/QL-LICENSE file. + package expression import ( diff --git a/expression/builtin_miscellaneous.go b/expression/builtin_miscellaneous.go index bced141c09a59..27aed5d4cbb4c 100644 --- a/expression/builtin_miscellaneous.go +++ b/expression/builtin_miscellaneous.go @@ -1,11 +1,12 @@ -// Copyright 2017 PingCAP, Inc. +// Copyright 2021 PingCAP, Inc. // // 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 +// +// 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 diff --git a/expression/builtin_miscellaneous_test.go b/expression/builtin_miscellaneous_test.go index 65cba1bb43016..9e09567279ec9 100644 --- a/expression/builtin_miscellaneous_test.go +++ b/expression/builtin_miscellaneous_test.go @@ -1,11 +1,12 @@ -// Copyright 2017 PingCAP, Inc. +// Copyright 2021 PingCAP, Inc. // // 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 +// +// 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 diff --git a/expression/builtin_string.go b/expression/builtin_string.go index 94210daf924ba..e3eae47130e02 100644 --- a/expression/builtin_string.go +++ b/expression/builtin_string.go @@ -1,7 +1,3 @@ -// Copyright 2013 The ql Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSES/QL-LICENSE file. - // Copyright 2015 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -16,6 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Copyright 2013 The ql Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSES/QL-LICENSE file. + package expression import ( diff --git a/expression/builtin_time.go b/expression/builtin_time.go index aacac2c787cac..3f721cc7081ee 100644 --- a/expression/builtin_time.go +++ b/expression/builtin_time.go @@ -1,7 +1,3 @@ -// Copyright 2013 The ql Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSES/QL-LICENSE file. - // Copyright 2015 PingCAP, Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); @@ -16,6 +12,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +// Copyright 2013 The ql Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSES/QL-LICENSE file. + package expression import (