ASF-Release.cfg 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. # Licensed to the Apache Software Foundation (ASF) under one or more contributor
  2. # license agreements; and to You under the Apache License, Version 2.0.
  3. # scanCode.py configuration file
  4. # List of filenames containing the text of valid license (headers)
  5. # These files SHOULD be in the same directory path where scanCode.py
  6. # resides.
  7. [Licenses]
  8. ASFLicenseHeader.txt
  9. ASFLicenseHeaderBash.txt
  10. ASFLicenseHeaderMarkdown.txt
  11. ASFLicenseHeaderLua.txt
  12. # Filters (path/filename) with wildcards and associated scan checks
  13. # that are to be run against them. The checks are actual valid
  14. # function names found in scanCode.py.
  15. [Includes]
  16. *=is_not_symlink, regex_check
  17. *.conf=has_block_license, eol_at_eof, regex_check
  18. *.go=has_block_license, eol_at_eof, regex_check
  19. *.gradle=has_block_license, eol_at_eof, regex_check
  20. *.groovy=has_block_license, eol_at_eof, regex_check
  21. *.html=has_block_license, regex_check
  22. *.java=no_tabs, has_block_license, eol_at_eof, regex_check
  23. *.js=has_block_license, regex_check
  24. *.md=no_tabs, has_block_license, eol_at_eof, regex_check
  25. *.properties=no_tabs, has_block_license, eol_at_eof, regex_check
  26. *.py=no_tabs, has_block_license, eol_at_eof, regex_check
  27. *.scala=has_block_license, no_tabs, eol_at_eof, regex_check
  28. *.sh=has_block_license, eol_at_eof, regex_check
  29. *.swift=no_tabs, has_block_license, eol_at_eof, regex_check
  30. *.yaml=has_block_license, eol_at_eof, regex_check
  31. *.yml=has_block_license, eol_at_eof, regex_check
  32. *.css=has_block_license, eol_at_eof, regex_check
  33. *.tsx=has_block_license, eol_at_eof, regex_check
  34. *.ts=has_block_license, eol_at_eof, regex_check
  35. *.less=has_block_license, eol_at_eof, regex_check
  36. *.toml=has_block_license, eol_at_eof, regex_check
  37. *Dockerfile*=has_block_license
  38. *.lua=has_block_license
  39. # Sanity check files not required to have ASF headers because either they
  40. # are excluded or are not packaged with the Apache source release.
  41. *.cfg=regex_check
  42. *.ini=regex_check
  43. *.j2=regex_check
  44. *.json=regex_check
  45. *.txt=regex_check
  46. *.xml=regex_check
  47. # List of paths (inclusive of subdirectories) to exclude from code scanning
  48. [Excludes]
  49. # General tooling & binary file exclusions
  50. .bin
  51. .dockerignore
  52. .eslintrc.*
  53. .git
  54. .gitattributes
  55. .github
  56. .gitignore
  57. .gradle
  58. .idea
  59. .jshintrc
  60. .pydevproject
  61. .rat-excludes
  62. .tox
  63. # Skip files containing MIT License
  64. web/src/components/HeaderDropdown
  65. web/src/components/NoticeIcon
  66. web/src/components/PageLoading/index.tsx
  67. web/src/components/RightContent
  68. web/src/components/PluginFlow/components/ConfigPanel
  69. web/src/components/PluginFlow/components/Toolbar
  70. web/src/e2e/__mocks__/antd-pro-merge-less.js
  71. web/src/e2e/baseLayout.e2e.js
  72. web/src/pages/404.tsx
  73. web/src/libs/iconfont.js
  74. api/build-tools/json.lua
  75. # Skip files containing Apache 2.0 License
  76. api/internal/core/store/query.go
  77. api/internal/core/store/selector.go
  78. api/internal/core/store/selector_test.go
  79. # Skip temporarily for CI -- TODO: fix license issue
  80. api/internal/core/store/validate_mock.go
  81. api/internal/core/storage/storage_mock.go
  82. # Skip other necessary files
  83. netlify.toml
  84. # Skip the "build.sh" file. Because "license" is not at the beginning of the file
  85. api/build.sh
  86. # Exclude Apache standard legal files
  87. CREDITS.txt
  88. DISCLAIMER.txt
  89. LICENSE*.txt
  90. NOTICE.txt
  91. conf
  92. .actions/openwhisk-utilities
  93. [Options]
  94. # Not all code files allow licenses to appear starting at the first character
  95. # of the file. This option tells the scan to allow licenses to appear starting
  96. # within the first 'x' characters of each code file (as provided by this option's
  97. # value).
  98. LICENSE_SLACK_LENGTH=500
  99. # List of regular expressions for forbidden strings, e.g. \w+@company.com
  100. [Regex]