Skip to content

Commit

Permalink
Fix all copyright banner (#290)
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinxc authored Mar 14, 2024
1 parent b4f545f commit c0050e5
Show file tree
Hide file tree
Showing 15 changed files with 190 additions and 12 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/license-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: License Check
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
license-checker:
uses: secretflow/.github/.github/workflows/license-check.yml@main
64 changes: 64 additions & 0 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
header: # <1>
license:
spdx-id: Apache-2.0 # <2>
copyright-owner: Ant Group Co., Ltd. # <3>
copyright-year: '2024' # <25>
software-name: secretflow # <4>

pattern: | # <6>
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[s]?://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.
paths: # <7>
- '**'

paths-ignore: # <8>
- '.circleci'
- '.github'
- '**/*.md'
- '**/*.json'
- '**/*.yaml'
- '**/*.yml'
- '**/*.patch'
- '**/*.lds'
- '**/*.csv'
- 'LICENSE'
- 'NOTICE'
- '.bazelversion'
- '.clang-format'
- '.clang-tidy'
- '.gitattributes'
- '.gitignore'
- '.gitmodules'
- 'yacl/base/dynamic_bitset.h' # MIT
- 'yacl/crypto/base/aes/aes_intrinsics.h'
- 'yacl/crypto/base/aes/aes_opt.h'

comment: never # <9>

license-location-threshold: 80 # <10>

language: # <11>
Starlark: # <12>
extensions: #<13>
- ".bazel"
- ".bazelrc"
- "BUILD"
- ".bzl"
- "WORKSPACE"
comment_style_id: PythonStyle # <15>
Cpp:
extensions:
- ".cc"
- ".h"
- ".cu"
comment_style_id: DoubleSlash
14 changes: 14 additions & 0 deletions bazel/mcl.BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright 2024 Ant Group Co., Ltd.
#
# 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.

load("@yacl//bazel:yacl.bzl", "yacl_cmake_external")

package(default_visibility = ["//visibility:public"])
Expand Down
2 changes: 1 addition & 1 deletion yacl/crypto/base/aes/aes_intrinsics.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in
// the documentation and/or other materials provided with the
// the documentation and/or other materials provided with the
// distribution.
//
// 3. All advertising materials mentioning features or use of this
Expand Down
14 changes: 14 additions & 0 deletions yacl/crypto/primitives/vss/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright 2024 Ant Group Co., Ltd.
#
# 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.

load("//bazel:yacl.bzl", "yacl_cc_library", "yacl_cc_test")

package(default_visibility = ["//visibility:public"])
Expand Down
2 changes: 1 addition & 1 deletion yacl/crypto/primitives/zkp/sigma_config.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2023 Ant Group Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License"){}
// 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
//
Expand Down
14 changes: 13 additions & 1 deletion yacl/io/kv/kvstore.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Copyright (c) 2021 Ant Financial. All rights reserved.
// Copyright 2021 Ant Group Co., Ltd.
//
// 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.

#pragma once

Expand Down
14 changes: 13 additions & 1 deletion yacl/io/kv/kvstore_test.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Copyright (c) 2021 Ant Financial. All rights reserved.
// Copyright 2021 Ant Group Co., Ltd.
//
// 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.

#include <cstdio>
#include <memory>
Expand Down
14 changes: 13 additions & 1 deletion yacl/io/kv/leveldb_kvstore.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Copyright (c) 2021 Ant Financial. All rights reserved.
// Copyright 2021 Ant Group Co., Ltd.
//
// 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.

#include "yacl/io/kv/leveldb_kvstore.h"

Expand Down
14 changes: 13 additions & 1 deletion yacl/io/kv/leveldb_kvstore.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Copyright (c) 2021 Ant Financial. All rights reserved.
// Copyright 2021 Ant Group Co., Ltd.
//
// 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.

#pragma once

Expand Down
14 changes: 13 additions & 1 deletion yacl/io/kv/memory_kvstore.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Copyright (c) 2021 Ant Financial. All rights reserved.
// Copyright 2021 Ant Group Co., Ltd.
//
// 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.

#include "yacl/io/kv/memory_kvstore.h"

Expand Down
14 changes: 13 additions & 1 deletion yacl/io/kv/memory_kvstore.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
// Copyright (c) 2021 Ant Financial. All rights reserved.
// Copyright 2021 Ant Group Co., Ltd.
//
// 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.

#pragma once

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
// Copyright 2023 Ant Group Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License")},
// 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,
Expand Down
2 changes: 1 addition & 1 deletion yacl/link/transport/brpc_blackbox_link.cc
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://www.apache.org/licenses/LICENSE2.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 yacl/link/transport/brpc_link.cc
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://www.apache.org/licenses/LICENSE2.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 c0050e5

Please sign in to comment.