github.com/apache/skywalking-eyes@v0.6.0/.licenserc.yaml (about)

     1  # Licensed to the Apache Software Foundation (ASF) under one
     2  # or more contributor license agreements.  See the NOTICE file
     3  # distributed with this work for additional information
     4  # regarding copyright ownership.  The ASF licenses this file
     5  # to you under the Apache License, Version 2.0 (the
     6  # "License"); you may not use this file except in compliance
     7  # with the License.  You may obtain a copy of the License at
     8  #
     9  #     http://www.apache.org/licenses/LICENSE-2.0
    10  #
    11  # Unless required by applicable law or agreed to in writing,
    12  # software distributed under the License is distributed on an
    13  # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    14  # KIND, either express or implied.  See the License for the
    15  # specific language governing permissions and limitations
    16  # under the License.
    17  
    18  header: # `header` section is configurations for source codes license header.
    19    license:
    20      spdx-id: Apache-2.0 # the spdx id of the license, it's convenient when your license is standard SPDX license.
    21      copyright-owner: Apache Software Foundation # the copyright owner to replace the [owner] in the `spdx-id` template.
    22      content: | # `license` will be used as the content when `fix` command needs to insert a license header.
    23        Licensed to the Apache Software Foundation (ASF) under one
    24        or more contributor license agreements.  See the NOTICE file
    25        distributed with this work for additional information
    26        regarding copyright ownership.  The ASF licenses this file
    27        to you under the Apache License, Version 2.0 (the
    28        "License"); you may not use this file except in compliance
    29        with the License.  You may obtain a copy of the License at
    30  
    31            http://www.apache.org/licenses/LICENSE-2.0
    32  
    33        Unless required by applicable law or agreed to in writing,
    34        software distributed under the License is distributed on an
    35        "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    36        KIND, either express or implied.  See the License for the
    37        specific language governing permissions and limitations
    38        under the License.
    39  
    40      # `pattern` is optional regexp if all the file headers are the same as `license` or the license of `spdx-id` and `copyright-owner`.
    41      pattern: |
    42        Licensed to the Apache Software Foundation (ASF) under one
    43        or more contributor license agreements.  See the NOTICE file
    44        distributed with this work for additional information
    45        regarding copyright ownership.  The ASF licenses this file
    46        to you under the Apache License, Version 2.0 (the
    47        "License"); you may not use this file except in compliance
    48        with the License.  You may obtain a copy of the License at
    49  
    50            http://www.apache.org/licenses/LICENSE-2.0
    51  
    52        Unless required by applicable law or agreed to in writing,
    53        software distributed under the License is distributed on an
    54        "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    55        KIND, either express or implied.  See the License for the
    56        specific language governing permissions and limitations
    57        under the License.
    58  
    59    paths: # `paths` are the path list that will be checked (and fixed) by license-eye, default is ['**'].
    60      - '**'
    61  
    62    paths-ignore: # `paths-ignore` are the path list that will be ignored by license-eye.
    63      - 'dist'
    64      - 'licenses'
    65      - '**/*.md'
    66      - '**/testdata/**'
    67      - '**/go.mod'
    68      - '**/go.sum'
    69      - 'LICENSE'
    70      - 'NOTICE'
    71      - '**/assets/header-templates/**'
    72      - '**/assets/lcs-templates/**'
    73      - '**/assets/languages.yaml'
    74      - '**/assets/default-license.tpl'
    75      - '**/assets/assets.gen.go'
    76      - 'docs/**.svg'
    77  
    78    comment: on-failure # on what condition license-eye will comment on the pull request, `on-failure`, `always`, `never`.
    79  
    80    # license-location-threshold specifies the index threshold where the license header can be located,
    81    # after all, a "header" cannot be TOO far from the file start.
    82    license-location-threshold: 80
    83  
    84    language:
    85      Go:
    86        extensions:
    87          - ".go"
    88        comment_style_id: DoubleSlash
    89  
    90  dependency:
    91    files:
    92      - go.mod
    93    licenses:
    94      - name: github.com/chzyer/logex
    95        version: v1.1.10
    96        license: MIT