forked from continuwuation/rocksdb
Summary: Fixing internal validator failure ``` Every project specific source file must contain a doc block with an appropriate copyright header. Unrelated files must be listed as exceptions in the Copyright Headers Exceptions page in the repo dashboard. A copyright header clearly indicates that the code is owned by Meta. Every open source file must start with a comment containing "Meta Platforms, Inc. and affiliates" https://github.com/facebook/rocksdb/blob/main/buckifier/targets_cfg.py: The first 16 lines of 'buckifier/targets_cfg.py' do not contain the patterns: (Meta Platforms, Inc. and affiliates)|(Facebook, Inc(\.|,)? and its affiliates)|([0-9]{4}-present(\.|,)? Facebook)|([0-9]{4}(\.|,)? Facebook) ``` While fixing the text to pass the linter, I took the opportunity to modify `format-diff.sh` script to add the copyright header automatically if missing in new files. Pull Request resolved: https://github.com/facebook/rocksdb/pull/14143 Test Plan: ``` $> make format ``` **new python file** ``` build_tools/format-diff.sh Checking format of uncommitted changes... Checking for copyright headers in new files... Added copyright header to build_tools/test.py Copyright headers were added to new files. Nothing needs to be reformatted! ``` **new header file** ``` build_tools/format-diff.sh Checking format of uncommitted changes... Checking for copyright headers in new files... Added copyright header to db/db_impl/db_impl_jewoongh.h Copyright headers were added to new files. Nothing needs to be reformatted! ``` Reviewed By: hx235 Differential Revision: D87653124 Pulled By: jaykorean fbshipit-source-id: 164322cfcd2c162bb3b41bb8f3bafefa3f20b695 |
||
|---|---|---|
| .. | ||
| ubuntu20_image | ||
| ubuntu22_image | ||
| ubuntu24_image | ||
| amalgamate.py | ||
| benchmark_log_tool.py | ||
| build_detect_platform | ||
| check-public-header.sh | ||
| check-sources.sh | ||
| dependencies_platform010.sh | ||
| dockerbuild.sh | ||
| error_filter.py | ||
| fb_compile_mongo.sh | ||
| fbcode_config.sh | ||
| fbcode_config_platform010.sh | ||
| format-diff.sh | ||
| gnu_parallel | ||
| make_package.sh | ||
| ps_with_stack | ||
| regression_build_test.sh | ||
| run_ci_db_test.ps1 | ||
| setup_centos7.sh | ||
| update_dependencies.sh | ||
| version.sh | ||