check_copyright_config.yaml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. # This file configures the check_copyright pre-commit hook
  2. #
  3. # Values from the DEFAULT section are used, when the particular option is not set in a section.
  4. # The DEFAULT section also contains all options with description
  5. #
  6. # Section name is just an identifier, keep it unique.
  7. # Section must contain the option 'include' and at least one other option
  8. #
  9. # The sections are matched in the order they are in this config file, the last section which matches is used.
  10. # This means that the order of the sections should be from broad to specific.
  11. # For example:
  12. # sections:
  13. # tools/
  14. # tools/ci/file.c
  15. # tools/ci/
  16. # files:
  17. # tools/file.c -> section tools/
  18. # tools/ci/file.c -> section tools/ci/
  19. #
  20. # don't modify this section!
  21. DEFAULT:
  22. perform_check: yes # should the check be performed?
  23. # Sections setting this to 'no' don't need to include any other options as they are ignored
  24. # When a file is using a section with the option set to 'no', no checks are performed.
  25. # what licenses (or license expressions) are allowed for files in this section
  26. # when setting this option in a section, you need to list all the allowed licenses
  27. allowed_licenses:
  28. - Apache-2.0
  29. license_for_new_files: Apache-2.0 # license to be used when inserting a new copyright notice
  30. new_notice_c: | # notice for new C, CPP, H, HPP and LD files
  31. /*
  32. * SPDX-FileCopyrightText: {years} Espressif Systems (Shanghai) CO LTD
  33. *
  34. * SPDX-License-Identifier: {license}
  35. */
  36. new_notice_python: | # notice for new python files
  37. # SPDX-FileCopyrightText: {years} Espressif Systems (Shanghai) CO LTD
  38. # SPDX-License-Identifier: {license}
  39. # comment lines matching:
  40. # SPDX-FileCopyrightText: year[-year] Espressif Systems
  41. # or
  42. # SPDX-FileContributor: year[-year] Espressif Systems
  43. # are replaced with this template prefixed with the correct comment notation (# or // or *) and SPDX- notation
  44. espressif_copyright: '{years} Espressif Systems (Shanghai) CO LTD'
  45. # this section sets the default license for examples and unit tests of components
  46. examples_and_unit_tests:
  47. include:
  48. - 'examples/'
  49. - 'components/**/test/**'
  50. - 'components/**/test_apps/**'
  51. - 'tools/test_apps/**'
  52. allowed_licenses:
  53. - Apache-2.0
  54. - Unlicense
  55. - CC0-1.0
  56. license_for_new_files: Unlicense OR CC0-1.0
  57. lwip_component:
  58. include:
  59. - 'components/lwip/**'
  60. - 'components/esp_netif/lwip/**'
  61. allowed_licenses:
  62. - Apache-2.0
  63. - BSD-3-Clause
  64. license_for_new_files: Apache-2.0
  65. newlib_component:
  66. include:
  67. - 'components/newlib/platform_include/**'
  68. - 'components/newlib/port/**'
  69. - 'components/newlib/priv_include/**'
  70. - 'components/newlib/*.c'
  71. - 'components/newlib/*.h'
  72. allowed_licenses:
  73. - Apache-2.0
  74. - BSD-2-Clause-FreeBSD AND Apache-2.0
  75. license_for_new_files: Apache-2.0
  76. asio_component:
  77. include:
  78. - 'components/asio/port/**'
  79. allowed_licenses:
  80. - Apache-2.0
  81. - BSL-1.0
  82. freertos_component:
  83. include:
  84. - 'components/freertos/**'
  85. allowed_licenses:
  86. - Apache-2.0 #Files added to the freertos added by us
  87. - MIT #FreeRTOS sources and port files
  88. ethernet_component:
  89. include:
  90. - 'components/esp_eth/include/**'
  91. - 'components/esp_eth/src/**'
  92. allowed_licenses:
  93. - Apache-2.0
  94. - MIT # To allow contributed drivers
  95. systemview:
  96. include:
  97. - 'components/app_trace/sys_view'
  98. allowed_licenses:
  99. - Apache-2.0
  100. - BSD-3-Clause
  101. license_for_new_files: Apache-2.0
  102. spiffs:
  103. include:
  104. - 'components/spiffs/include/'
  105. allowed_licenses:
  106. - MIT
  107. - Apache-2.0
  108. sdmmc:
  109. include:
  110. - 'components/driver/include/driver/'
  111. - 'components/sdmmc/'
  112. allowed_licenses:
  113. - Apache-2.0
  114. - ISC
  115. argtable3:
  116. include:
  117. - 'components/console/argtable3/'
  118. allowed_licenses:
  119. - BSD-3-Clause
  120. - Apache-2.0
  121. xtensa:
  122. include:
  123. - 'components/xtensa/**'
  124. allowed_licenses:
  125. - Apache-2.0 #Files added to the xtensa component by us
  126. - MIT #Cadence sources
  127. tinyusb:
  128. include:
  129. - 'examples/peripherals/usb/device/tusb_midi/'
  130. allowed_licenses:
  131. - Apache-2.0
  132. - MIT # Example derived from TinyUSB code by HaThach
  133. - Unlicense
  134. - CC0-1.0
  135. # files matching this section do not perform the check
  136. # file patterns starting with ! are negated, meaning files matching them won't match the section.
  137. ignore:
  138. perform_check: no
  139. include:
  140. - components/bt/host/nimble/nimble/
  141. - components/bt/common/osi/
  142. - components/bt/porting/ext/
  143. - components/bt/porting/nimble/
  144. - components/http_parser/
  145. - components/wpa_supplicant/src/
  146. - '!components/wpa_supplicant/esp_supplicant/'
  147. - components/bt/host/bluedroid/
  148. - '!components/bt/host/bluedroid/api/'
  149. - '!components/bt/host/bluedroid/btc/'
  150. - examples/zigbee/