Skip to content

Commit

Permalink
cmd, ddl: fix license header (pingcap#27707)
Browse files Browse the repository at this point in the history
  • Loading branch information
tisonkun authored Sep 2, 2021
1 parent b35c7bc commit f379c8b
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 19 deletions.
8 changes: 0 additions & 8 deletions .github/.licenserc.yaml → .github/licenserc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ header:
- '.gitignore'
- '.gitattributes'
- '.golangci.yml'
- '.licenserc.yaml'
- 'LICENSES/'
- '**/*.md'
- '**/*.json'
Expand All @@ -29,13 +28,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.
- 'cmd/explaintest/config.toml'
- 'cmd/importer/config.toml'
- 'cmd/portgenerator/portgenerator.go'
- 'ddl/ddl.go'
- 'ddl/ddl_api.go'
- 'ddl/mock.go'
- 'ddl/options.go'
- 'executor/aggfuncs/func_stddevpop_test.go'
- 'executor/aggfuncs/func_stddevsamp_test.go'
- 'executor/aggfuncs/func_varpop_test.go'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/license-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
log: info
config: .github/.licenserc.yaml
config: .github/licenserc.yml
14 changes: 14 additions & 0 deletions cmd/explaintest/config.toml
Original file line number Diff line number Diff line change
@@ -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.

lease = "0"
mem-quota-query = 34359738368
nested-loop-join-cache-capacity = 20971520
Expand Down
14 changes: 14 additions & 0 deletions cmd/importer/config.toml
Original file line number Diff line number Diff line change
@@ -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.

# Importer Configuration.

[ddl]
Expand Down
14 changes: 14 additions & 0 deletions cmd/portgenerator/portgenerator.go
Original file line number Diff line number Diff line change
@@ -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 main

import (
Expand Down
8 changes: 4 additions & 4 deletions ddl/ddl.go
Original file line number Diff line number Diff line change
@@ -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");
Expand All @@ -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 ddl

import (
Expand Down
8 changes: 4 additions & 4 deletions ddl/ddl_api.go
Original file line number Diff line number Diff line change
@@ -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 2016 PingCAP, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -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 ddl

import (
Expand Down
2 changes: 1 addition & 1 deletion ddl/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://wwm.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,
Expand Down
2 changes: 1 addition & 1 deletion ddl/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://wwm.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,
Expand Down

0 comments on commit f379c8b

Please sign in to comment.