diff --git a/.licenserc.yaml b/.licenserc.yaml new file mode 100644 index 0000000..2cdf4b7 --- /dev/null +++ b/.licenserc.yaml @@ -0,0 +1,72 @@ +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' + - '**/*.ipynb' + - '**/*.txt' + - '**/*.Dockerfile' + - '**/Dockerfile' + - '**/*.po' + - '**/*.svg' + - '**/*.rst' + - '**/*.lds' + - '**/*.patch' + - '**/*.mlir' + - '**/*.csv' + - '**/*.tmpl' + - 'LICENSE' + - 'NOTICE' + - '.bazelversion' + - '.clang-format' + - '.clang-tidy' + - '.gitattributes' + - '.gitignore' + - '.gitmodules' + - 'pyproject.toml' + - 'setup.cfg' + + 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