Skip to content

Commit

Permalink
chore: add license checker
Browse files Browse the repository at this point in the history
  • Loading branch information
empiredan committed Nov 7, 2023
1 parent 5328efd commit bad66d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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'
Expand Down Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion scripts/check_license.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'}

Expand Down

0 comments on commit bad66d0

Please sign in to comment.