You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

.licenserc.yaml 4.3 kB

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

Go Implementation For Seata