github.com/polarismesh/polaris@v1.17.8/.licenserc.yaml (about)

     1  # Tencent is pleased to support the open source community by making Polaris available.
     2  #
     3  # Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
     4  #
     5  # Licensed under the BSD 3-Clause License (the "License");
     6  # you may not use this file except in compliance with the License.
     7  # You may obtain a copy of the License at
     8  #
     9  # https://opensource.org/licenses/BSD-3-Clause
    10  #
    11  # Unless required by applicable law or agreed to in writing, software distributed
    12  # under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
    13  # CONDITIONS OF ANY KIND, either express or implied. See the License for the
    14  # specific language governing permissions and limitations under the License.
    15  
    16  header: # `header` section is configurations for source codes license header.
    17    license:
    18      spdx-id: BSD-3-Clause # the spdx id of the license, it's convenient when your license is standard SPDX license.
    19      copyright-owner: Tencent # the copyright owner to replace the [owner] in the `spdx-id` template.
    20      content:
    21        | # `license` will be used as the content when `fix` command needs to insert a license header.
    22        Tencent is pleased to support the open source community by making Polaris available.
    23  
    24        Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
    25  
    26        Licensed under the BSD 3-Clause License (the "License");
    27        you may not use this file except in compliance with the License.
    28        You may obtain a copy of the License at
    29  
    30        https://opensource.org/licenses/BSD-3-Clause
    31  
    32        Unless required by applicable law or agreed to in writing, software distributed
    33        under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
    34        CONDITIONS OF ANY KIND, either express or implied. See the License for the
    35        specific language governing permissions and limitations under the License.
    36      # `pattern` is optional regexp if all the file headers are the same as `license` or the license of `spdx-id` and `copyright-owner`.
    37      pattern: |
    38        Tencent is pleased to support the open source community by making Polaris available.
    39  
    40        Copyright \(C\) 2019 THL A29 Limited, a Tencent company. All rights reserved.
    41  
    42        Licensed under the BSD 3-Clause License \(the "License"\);
    43        you may not use this file except in compliance with the License.
    44        You may obtain a copy of the License at
    45  
    46        https://opensource.org/licenses/BSD-3-Clause
    47  
    48        Unless required by applicable law or agreed to in writing, software distributed
    49        under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
    50        CONDITIONS OF ANY KIND, either express or implied. See the License for the
    51        specific language governing permissions and limitations under the License.
    52    paths: # `paths` are the path list that will be checked (and fixed) by license-eye, default is ['**'].
    53      - "**"
    54  
    55    paths-ignore: # `paths-ignore` are the path list that will be ignored by license-eye.
    56      # folder
    57      - "common/api/protoc"
    58      - "deploy"
    59      - "release"
    60      - "test/data/xds"
    61  
    62      # single file
    63      - "LICENSE"
    64      - ".gitignore"
    65      - "Makefile"
    66      - "Dockerfile"
    67      - "version"
    68      - ".golangci.yml"
    69      - ".github"
    70      - "logo.svg"
    71      - "**/*.pb.go"
    72      - "**/*_mock.go"
    73      - "**/*.proto"
    74      - "**/*.md"
    75      - "**/go.mod"
    76      - "**/go.sum"
    77    comment: on-failure # on what condition license-eye will comment on the pull request, `on-failure`, `always`, `never`.
    78  
    79    # license-location-threshold specifies the index threshold where the license header can be located,
    80    # after all, a "header" cannot be TOO far from the file start.
    81    license-location-threshold: 80
    82    language:
    83      Go:
    84        extensions:
    85          - ".go"
    86        comment_style_id: SlashAsterisk
    87  
    88  dependency:
    89    files:
    90      - go.mod