Skip to content

Commit

Permalink
fix: license header
Browse files Browse the repository at this point in the history
  • Loading branch information
dk-lockdown committed Dec 8, 2021
1 parent a48cc0f commit 32047f6
Show file tree
Hide file tree
Showing 56 changed files with 484 additions and 386 deletions.
1 change: 1 addition & 0 deletions .github/auto-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# specific language governing permissions and limitations
# under the License.
#

# Comment to a new issue.
issueOpened: >
Thank your for raising a issue. We will try and get back to you as soon as possible.
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# specific language governing permissions and limitations
# under the License.
#

name: CI

on:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# specific language governing permissions and limitations
# under the License.
#

name: Release
on:
release:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# specific language governing permissions and limitations
# under the License.
#

name: reviewdog
on: [pull_request]
jobs:
Expand Down
2 changes: 1 addition & 1 deletion .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
# specific language governing permissions and limitations
# under the License.
#

header: # `header` section is configurations for source codes license header.
license:
spdx-id: Apache-2.0 # the spdx id of the license, it's convenient when your license is standard SPDX license.
Expand All @@ -37,7 +38,6 @@ header: # `header` section is configurations for source codes license header.
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
# `pattern` is optional regexp if all the file headers are the same as `license` or the license of `spdx-id` and `copyright-owner`.
pattern: |
Licensed to the Apache Software Foundation under one or more contributor
Expand Down
2 changes: 2 additions & 0 deletions cmd/cmd.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//
// Licensed to Apache Software Foundation (ASF) under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
Expand All @@ -15,6 +16,7 @@
// specific language governing permissions and limitations
// under the License.
//

package main

import (
Expand Down
2 changes: 2 additions & 0 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//
// Licensed to Apache Software Foundation (ASF) under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
Expand All @@ -15,6 +16,7 @@
// specific language governing permissions and limitations
// under the License.
//

package config

import (
Expand Down
2 changes: 2 additions & 0 deletions pkg/config/db.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//
// Licensed to Apache Software Foundation (ASF) under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
Expand All @@ -15,6 +16,7 @@
// specific language governing permissions and limitations
// under the License.
//

package config

import (
Expand Down
2 changes: 2 additions & 0 deletions pkg/constants/const.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//
// Licensed to Apache Software Foundation (ASF) under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
Expand All @@ -15,6 +16,7 @@
// specific language governing permissions and limitations
// under the License.
//

package constants

const (
Expand Down
2 changes: 2 additions & 0 deletions pkg/constants/env.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//
// Licensed to Apache Software Foundation (ASF) under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
Expand All @@ -15,6 +16,7 @@
// specific language governing permissions and limitations
// under the License.
//

package constants

const (
Expand Down
2 changes: 2 additions & 0 deletions pkg/constants/mysql/collations.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//
// Licensed to Apache Software Foundation (ASF) under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
Expand All @@ -15,6 +16,7 @@
// specific language governing permissions and limitations
// under the License.
//

package mysql

const DefaultCollation = "utf8mb4_general_ci"
Expand Down
30 changes: 16 additions & 14 deletions pkg/constants/mysql/constants.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//
// Licensed to Apache Software Foundation (ASF) under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
Expand All @@ -15,21 +16,22 @@
// specific language governing permissions and limitations
// under the License.
//
/*
Copyright 2019 The Vitess Authors.
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.
*/
//
// Copyright 2019 The Vitess Authors.
//
// 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 mysql

Expand Down
2 changes: 2 additions & 0 deletions pkg/constants/mysql/type.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//
// Licensed to Apache Software Foundation (ASF) under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
Expand All @@ -15,6 +16,7 @@
// specific language governing permissions and limitations
// under the License.
//

package mysql

import (
Expand Down
2 changes: 2 additions & 0 deletions pkg/executor/redirect.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//
// Licensed to Apache Software Foundation (ASF) under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
Expand All @@ -15,6 +16,7 @@
// specific language governing permissions and limitations
// under the License.
//

package executor

import (
Expand Down
8 changes: 1 addition & 7 deletions pkg/mysql/auth.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//
// Licensed to Apache Software Foundation (ASF) under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
Expand All @@ -15,13 +16,6 @@
// specific language governing permissions and limitations
// under the License.
//
// Go MySQL Driver - A MySQL-Driver for Go's database/sql package
//
// Copyright 2018 The Go-MySQL-Driver Authors. All rights reserved.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at http://mozilla.org/MPL/2.0/.

package mysql

Expand Down
2 changes: 2 additions & 0 deletions pkg/mysql/client.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//
// Licensed to Apache Software Foundation (ASF) under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
Expand All @@ -15,6 +16,7 @@
// specific language governing permissions and limitations
// under the License.
//

package mysql

import (
Expand Down
2 changes: 2 additions & 0 deletions pkg/mysql/conn.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//
// Licensed to Apache Software Foundation (ASF) under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
Expand All @@ -15,6 +16,7 @@
// specific language governing permissions and limitations
// under the License.
//

package mysql

import (
Expand Down
2 changes: 2 additions & 0 deletions pkg/mysql/context.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//
// Licensed to Apache Software Foundation (ASF) under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
Expand All @@ -15,6 +16,7 @@
// specific language governing permissions and limitations
// under the License.
//

package mysql

import (
Expand Down
30 changes: 16 additions & 14 deletions pkg/mysql/encoding.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//
// Licensed to Apache Software Foundation (ASF) under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
Expand All @@ -15,21 +16,22 @@
// specific language governing permissions and limitations
// under the License.
//
/*
Copyright 2019 The Vitess Authors.
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.
*/
//
// Copyright 2019 The Vitess Authors.
//
// 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 mysql

Expand Down
2 changes: 2 additions & 0 deletions pkg/mysql/errors/error.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//
// Licensed to Apache Software Foundation (ASF) under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
Expand All @@ -15,6 +16,7 @@
// specific language governing permissions and limitations
// under the License.
//

package errors

import (
Expand Down
30 changes: 16 additions & 14 deletions pkg/mysql/errors/sql_error.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//
// Licensed to Apache Software Foundation (ASF) under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
Expand All @@ -15,21 +16,22 @@
// specific language governing permissions and limitations
// under the License.
//
/*
Copyright 2019 The Vitess Authors.
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.
*/
//
// Copyright 2019 The Vitess Authors.
//
// 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 errors

Expand Down
2 changes: 2 additions & 0 deletions pkg/mysql/fields.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//
// Licensed to Apache Software Foundation (ASF) under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
Expand All @@ -15,6 +16,7 @@
// specific language governing permissions and limitations
// under the License.
//

package mysql

import (
Expand Down
2 changes: 2 additions & 0 deletions pkg/mysql/result.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//
// Licensed to Apache Software Foundation (ASF) under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
Expand All @@ -15,6 +16,7 @@
// specific language governing permissions and limitations
// under the License.
//

package mysql

import (
Expand Down
2 changes: 2 additions & 0 deletions pkg/mysql/rows.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//
// Licensed to Apache Software Foundation (ASF) under one or more contributor
// license agreements. See the NOTICE file distributed with
// this work for additional information regarding copyright
Expand All @@ -15,6 +16,7 @@
// specific language governing permissions and limitations
// under the License.
//

package mysql

import (
Expand Down
Loading

0 comments on commit 32047f6

Please sign in to comment.