From bad66d08d2e27928dcc962b573d9a24c6d6494c1 Mon Sep 17 00:00:00 2001 From: Dan Wang Date: Tue, 7 Nov 2023 15:22:54 +0800 Subject: [PATCH] chore: add license checker --- .licenserc.yaml | 7 +++++-- scripts/check_license.py | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.licenserc.yaml b/.licenserc.yaml index 6b0b85a589..24154a4ffc 100644 --- a/.licenserc.yaml +++ b/.licenserc.yaml @@ -38,6 +38,11 @@ header: - 'go-client/idl/base/rocskdb_err_string.go' - 'go-client/idl/base/GoUnusedProtection__.go' - '**/.npmigonre' + # Image files for docs + - 'docs/resources/*' + # Used for unit tests and were not be added with copyright info. + - 'src/aio/test/copy_source.txt' + - 'src/runtime/test/command.txt' # TODO(yingchun): shell/* files are import from thirdparties, we can move them to thirdparty later. # Copyright (c) 2016, Adi Shavit - 'src/shell/argh.h' @@ -223,7 +228,6 @@ header: - 'src/aio/test/aio.cpp' - 'src/aio/test/clear.sh' - 'src/aio/test/config.ini' - - 'src/aio/test/copy_source.txt' - 'src/aio/test/run.sh' - 'src/block_service/test/config-test.ini' - 'src/client/CMakeLists.txt' @@ -570,7 +574,6 @@ header: - 'src/runtime/test/address_test.cpp' - 'src/runtime/test/async_call.cpp' - 'src/runtime/test/clear.sh' - - 'src/runtime/test/command.txt' - 'src/runtime/test/config-test-corrupt-message.ini' - 'src/runtime/test/config-test-sim.ini' - 'src/runtime/test/config-test.ini' diff --git a/scripts/check_license.py b/scripts/check_license.py index 9b4223d765..e12a1f6c70 100755 --- a/scripts/check_license.py +++ b/scripts/check_license.py @@ -21,7 +21,7 @@ PRJ_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) YML_PATH = os.path.join(PRJ_PATH, '.licenserc.yaml') -IGNORED_STARTS_WITH = ['.git/', '.idea/', 'docs/'] +IGNORED_STARTS_WITH = ['.git/', '.idea/', 'docs/resources/'] IGNORED_ENDS_WITH = ['.swp'] IGNORED_FILES = {'.licenserc.yaml', 'LICENSE', 'tags'}