From 5e5a7ca7a55536a2cb30eec97ee40ff481413bf1 Mon Sep 17 00:00:00 2001 From: Dmitry Kropachev Date: Thu, 6 Aug 2026 09:01:51 -0400 Subject: [PATCH 1/2] Add ScyllaDB license headers --- .github/release.yml | 14 ++ .github/workflows/release.yml | 14 ++ .github/workflows/tests.yml | 17 ++ CMakeLists.txt | 14 ++ LICENSE | 202 ++++++++++++++++++ Makefile | 21 +- cmake/RequireGTestTests.cmake | 14 ++ ...ladb-alternator-client-cpp-config.cmake.in | 14 ++ examples/basic.cpp | 16 ++ include/scylladb/alternator/attribute_value.h | 16 ++ .../scylladb/alternator/aws/dynamodb_helper.h | 16 ++ include/scylladb/alternator/config.h | 16 ++ .../scylladb/alternator/detail/go_random.h | 16 ++ include/scylladb/alternator/http_client.h | 16 ++ .../scylladb/alternator/key_route_affinity.h | 16 ++ include/scylladb/alternator/live_nodes.h | 16 ++ include/scylladb/alternator/murmur3.h | 16 ++ include/scylladb/alternator/node_health.h | 16 ++ include/scylladb/alternator/query_plan.h | 16 ++ include/scylladb/alternator/routing_scope.h | 16 ++ include/scylladb/alternator/uri.h | 16 ++ license-header.txt | 13 ++ licenserc.toml | 36 ++++ src/attribute_value.cpp | 16 ++ src/aws_dynamodb_helper.cpp | 16 ++ src/config.cpp | 16 ++ src/go_random.cpp | 16 ++ src/http_client.cpp | 16 ++ src/http_compression.cpp | 16 ++ src/http_compression.h | 16 ++ src/key_route_affinity.cpp | 16 ++ src/live_nodes.cpp | 16 ++ src/murmur3.cpp | 16 ++ src/node_health.cpp | 16 ++ src/query_plan.cpp | 16 ++ src/routing_scope.cpp | 16 ++ src/uri.cpp | 16 ++ test/docker-compose.yml | 14 ++ test/scylla/scylla.yaml | 14 ++ tests/attribute_value_test.cpp | 16 ++ tests/aws_dynamodb_helper_test.cpp | 16 ++ tests/aws_integration_test.cpp | 16 ++ tests/config_test.cpp | 16 ++ tests/header_optimization_test.cpp | 16 ++ tests/http_client_test.cpp | 16 ++ tests/key_route_affinity_test.cpp | 16 ++ tests/live_nodes_integration_test.cpp | 16 ++ tests/live_nodes_test.cpp | 16 ++ tests/node_health_test.cpp | 16 ++ tests/query_plan_test.cpp | 16 ++ tests/routing_scope_test.cpp | 16 ++ 51 files changed, 1010 insertions(+), 1 deletion(-) create mode 100644 LICENSE create mode 100644 license-header.txt create mode 100644 licenserc.toml diff --git a/.github/release.yml b/.github/release.yml index 6e18959..a32291a 100644 --- a/.github/release.yml +++ b/.github/release.yml @@ -1,3 +1,17 @@ +# Copyright ScyllaDB, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + changelog: exclude: labels: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bdf866d..3536dd0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,3 +1,17 @@ +# Copyright ScyllaDB, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: Publish Release Notes on: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d0e3e33..1aba143 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -1,3 +1,17 @@ +# Copyright ScyllaDB, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + name: 'Run tests' on: @@ -41,6 +55,9 @@ jobs: openssl \ zlib1g-dev + - name: Check license headers + uses: korandoru/hawkeye@453bacfa60b19044f1e0b1e6df2826a665fb3623 # v6.0.0 + - name: Cache AWS SDK for C++ id: cache-aws-sdk uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 diff --git a/CMakeLists.txt b/CMakeLists.txt index 4f2a61e..d52e3c0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,17 @@ +# Copyright ScyllaDB, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + cmake_minimum_required(VERSION 3.20) project(alternator-client-cpp diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d645695 --- /dev/null +++ b/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/Makefile b/Makefile index 0e39e95..9c549d7 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,22 @@ +# Copyright ScyllaDB, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + MAKEFILE_PATH := $(abspath $(dir $(abspath $(lastword $(MAKEFILE_LIST))))) CMAKE ?= cmake CTEST ?= ctest +HAWKEYE ?= hawkeye BUILD_DIR ?= build CHECK_BUILD_DIR ?= build-check @@ -17,10 +32,14 @@ build: $(CMAKE) --build $(BUILD_DIR) --parallel .PHONY: check -check: +check: check-license-headers $(CMAKE) -S . -B $(CHECK_BUILD_DIR) -DCMAKE_CXX_FLAGS="$(CHECK_CXX_FLAGS)" -DALTERNATOR_CLIENT_CPP_ENABLE_AWS=OFF $(CMAKE) --build $(CHECK_BUILD_DIR) --parallel +.PHONY: check-license-headers +check-license-headers: + $(HAWKEYE) check + .PHONY: test test: build check test-unit test-integration diff --git a/cmake/RequireGTestTests.cmake b/cmake/RequireGTestTests.cmake index 7c5bc88..c9b3867 100644 --- a/cmake/RequireGTestTests.cmake +++ b/cmake/RequireGTestTests.cmake @@ -1,3 +1,17 @@ +# Copyright ScyllaDB, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + if(NOT DEFINED TEST_EXECUTABLE) message(FATAL_ERROR "TEST_EXECUTABLE must be set") endif() diff --git a/cmake/scylladb-alternator-client-cpp-config.cmake.in b/cmake/scylladb-alternator-client-cpp-config.cmake.in index 9b3de75..6337bd5 100644 --- a/cmake/scylladb-alternator-client-cpp-config.cmake.in +++ b/cmake/scylladb-alternator-client-cpp-config.cmake.in @@ -1,3 +1,17 @@ +# Copyright ScyllaDB, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + @PACKAGE_INIT@ include(CMakeFindDependencyMacro) diff --git a/examples/basic.cpp b/examples/basic.cpp index 6f2f151..edbe8a6 100644 --- a/examples/basic.cpp +++ b/examples/basic.cpp @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include diff --git a/include/scylladb/alternator/attribute_value.h b/include/scylladb/alternator/attribute_value.h index bced89c..4a89c47 100644 --- a/include/scylladb/alternator/attribute_value.h +++ b/include/scylladb/alternator/attribute_value.h @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #pragma once #include diff --git a/include/scylladb/alternator/aws/dynamodb_helper.h b/include/scylladb/alternator/aws/dynamodb_helper.h index d9d2926..8189264 100644 --- a/include/scylladb/alternator/aws/dynamodb_helper.h +++ b/include/scylladb/alternator/aws/dynamodb_helper.h @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #pragma once #include diff --git a/include/scylladb/alternator/config.h b/include/scylladb/alternator/config.h index 968346f..bdf4153 100644 --- a/include/scylladb/alternator/config.h +++ b/include/scylladb/alternator/config.h @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #pragma once #include diff --git a/include/scylladb/alternator/detail/go_random.h b/include/scylladb/alternator/detail/go_random.h index 847ae62..7496e98 100644 --- a/include/scylladb/alternator/detail/go_random.h +++ b/include/scylladb/alternator/detail/go_random.h @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #pragma once #include diff --git a/include/scylladb/alternator/http_client.h b/include/scylladb/alternator/http_client.h index e25797d..ca004a4 100644 --- a/include/scylladb/alternator/http_client.h +++ b/include/scylladb/alternator/http_client.h @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #pragma once #include diff --git a/include/scylladb/alternator/key_route_affinity.h b/include/scylladb/alternator/key_route_affinity.h index 67d264b..c595b4f 100644 --- a/include/scylladb/alternator/key_route_affinity.h +++ b/include/scylladb/alternator/key_route_affinity.h @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #pragma once #include diff --git a/include/scylladb/alternator/live_nodes.h b/include/scylladb/alternator/live_nodes.h index 55bdb59..e31259d 100644 --- a/include/scylladb/alternator/live_nodes.h +++ b/include/scylladb/alternator/live_nodes.h @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #pragma once #include diff --git a/include/scylladb/alternator/murmur3.h b/include/scylladb/alternator/murmur3.h index d69c808..5e63399 100644 --- a/include/scylladb/alternator/murmur3.h +++ b/include/scylladb/alternator/murmur3.h @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #pragma once #include diff --git a/include/scylladb/alternator/node_health.h b/include/scylladb/alternator/node_health.h index 76ba23f..5eed481 100644 --- a/include/scylladb/alternator/node_health.h +++ b/include/scylladb/alternator/node_health.h @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #pragma once #include diff --git a/include/scylladb/alternator/query_plan.h b/include/scylladb/alternator/query_plan.h index 2218754..9e7a428 100644 --- a/include/scylladb/alternator/query_plan.h +++ b/include/scylladb/alternator/query_plan.h @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #pragma once #include diff --git a/include/scylladb/alternator/routing_scope.h b/include/scylladb/alternator/routing_scope.h index 6332b3d..c03316a 100644 --- a/include/scylladb/alternator/routing_scope.h +++ b/include/scylladb/alternator/routing_scope.h @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #pragma once #include diff --git a/include/scylladb/alternator/uri.h b/include/scylladb/alternator/uri.h index 4ac33f5..1ac66f9 100644 --- a/include/scylladb/alternator/uri.h +++ b/include/scylladb/alternator/uri.h @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #pragma once #include diff --git a/license-header.txt b/license-header.txt new file mode 100644 index 0000000..9618ced --- /dev/null +++ b/license-header.txt @@ -0,0 +1,13 @@ +Copyright ScyllaDB, Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/licenserc.toml b/licenserc.toml new file mode 100644 index 0000000..46cb5d8 --- /dev/null +++ b/licenserc.toml @@ -0,0 +1,36 @@ +# Copyright ScyllaDB, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +headerPath = "license-header.txt" +strictCheck = true +useDefaultExcludes = true +includes = [ + ".github/**/*.yml", + "CMakeLists.txt", + "Makefile", + "cmake/**/*.cmake", + "cmake/**/*.cmake.in", + "examples/**/*.cpp", + "include/**/*.h", + "licenserc.toml", + "src/**/*.cpp", + "src/**/*.h", + "test/**/*.yaml", + "test/**/*.yml", + "tests/**/*.cpp", +] + +[mapping.SCRIPT_STYLE] +filenames = ["CMakeLists.txt", "Makefile"] +extensions = ["cmake", "in", "yaml", "yml"] diff --git a/src/attribute_value.cpp b/src/attribute_value.cpp index a86953b..484ef44 100644 --- a/src/attribute_value.cpp +++ b/src/attribute_value.cpp @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include diff --git a/src/aws_dynamodb_helper.cpp b/src/aws_dynamodb_helper.cpp index 91a8be0..6c657db 100644 --- a/src/aws_dynamodb_helper.cpp +++ b/src/aws_dynamodb_helper.cpp @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include "http_compression.h" diff --git a/src/config.cpp b/src/config.cpp index f19c406..f312dc7 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include "http_compression.h" diff --git a/src/go_random.cpp b/src/go_random.cpp index e58113e..7588361 100644 --- a/src/go_random.cpp +++ b/src/go_random.cpp @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be found in the Go source distribution. diff --git a/src/http_client.cpp b/src/http_client.cpp index da7cee1..7c81ee0 100644 --- a/src/http_client.cpp +++ b/src/http_client.cpp @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include "http_compression.h" diff --git a/src/http_compression.cpp b/src/http_compression.cpp index dae1f3c..5c2bdba 100644 --- a/src/http_compression.cpp +++ b/src/http_compression.cpp @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include "http_compression.h" #if SCYLLADB_ALTERNATOR_CLIENT_CPP_HAS_ZLIB diff --git a/src/http_compression.h b/src/http_compression.h index fd14bdb..3bc40ea 100644 --- a/src/http_compression.h +++ b/src/http_compression.h @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #pragma once #include diff --git a/src/key_route_affinity.cpp b/src/key_route_affinity.cpp index ca1700f..010f70d 100644 --- a/src/key_route_affinity.cpp +++ b/src/key_route_affinity.cpp @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include diff --git a/src/live_nodes.cpp b/src/live_nodes.cpp index 083064b..93d94f6 100644 --- a/src/live_nodes.cpp +++ b/src/live_nodes.cpp @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include diff --git a/src/murmur3.cpp b/src/murmur3.cpp index c297c1e..e3f3cac 100644 --- a/src/murmur3.cpp +++ b/src/murmur3.cpp @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include diff --git a/src/node_health.cpp b/src/node_health.cpp index 78c6ac2..324d6cc 100644 --- a/src/node_health.cpp +++ b/src/node_health.cpp @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include diff --git a/src/query_plan.cpp b/src/query_plan.cpp index df0bcdc..6682e2c 100644 --- a/src/query_plan.cpp +++ b/src/query_plan.cpp @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include diff --git a/src/routing_scope.cpp b/src/routing_scope.cpp index 168b93a..f686d18 100644 --- a/src/routing_scope.cpp +++ b/src/routing_scope.cpp @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include diff --git a/src/uri.cpp b/src/uri.cpp index bd0e56b..7ece5a2 100644 --- a/src/uri.cpp +++ b/src/uri.cpp @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include diff --git a/test/docker-compose.yml b/test/docker-compose.yml index 1182709..9b8d5f4 100644 --- a/test/docker-compose.yml +++ b/test/docker-compose.yml @@ -1,3 +1,17 @@ +# Copyright ScyllaDB, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + networks: public: name: alb_cpp_network diff --git a/test/scylla/scylla.yaml b/test/scylla/scylla.yaml index 09a3df4..c3cb02a 100644 --- a/test/scylla/scylla.yaml +++ b/test/scylla/scylla.yaml @@ -1,3 +1,17 @@ +# Copyright ScyllaDB, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Scylla storage config YAML ####################################### diff --git a/tests/attribute_value_test.cpp b/tests/attribute_value_test.cpp index 7bef9d2..d5326ba 100644 --- a/tests/attribute_value_test.cpp +++ b/tests/attribute_value_test.cpp @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include diff --git a/tests/aws_dynamodb_helper_test.cpp b/tests/aws_dynamodb_helper_test.cpp index 492fc94..50a181c 100644 --- a/tests/aws_dynamodb_helper_test.cpp +++ b/tests/aws_dynamodb_helper_test.cpp @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include diff --git a/tests/aws_integration_test.cpp b/tests/aws_integration_test.cpp index 35d26b4..655b064 100644 --- a/tests/aws_integration_test.cpp +++ b/tests/aws_integration_test.cpp @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include diff --git a/tests/config_test.cpp b/tests/config_test.cpp index 3deea4f..b2b60b7 100644 --- a/tests/config_test.cpp +++ b/tests/config_test.cpp @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include diff --git a/tests/header_optimization_test.cpp b/tests/header_optimization_test.cpp index b8eb056..4529492 100644 --- a/tests/header_optimization_test.cpp +++ b/tests/header_optimization_test.cpp @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include diff --git a/tests/http_client_test.cpp b/tests/http_client_test.cpp index c0c6116..75dd5cc 100644 --- a/tests/http_client_test.cpp +++ b/tests/http_client_test.cpp @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include diff --git a/tests/key_route_affinity_test.cpp b/tests/key_route_affinity_test.cpp index 0ebfdec..df5672b 100644 --- a/tests/key_route_affinity_test.cpp +++ b/tests/key_route_affinity_test.cpp @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include diff --git a/tests/live_nodes_integration_test.cpp b/tests/live_nodes_integration_test.cpp index e09966a..c422452 100644 --- a/tests/live_nodes_integration_test.cpp +++ b/tests/live_nodes_integration_test.cpp @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include diff --git a/tests/live_nodes_test.cpp b/tests/live_nodes_test.cpp index 6174917..119a994 100644 --- a/tests/live_nodes_test.cpp +++ b/tests/live_nodes_test.cpp @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include diff --git a/tests/node_health_test.cpp b/tests/node_health_test.cpp index a484e55..7a3e23c 100644 --- a/tests/node_health_test.cpp +++ b/tests/node_health_test.cpp @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include diff --git a/tests/query_plan_test.cpp b/tests/query_plan_test.cpp index 86bc0a2..3e48b85 100644 --- a/tests/query_plan_test.cpp +++ b/tests/query_plan_test.cpp @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include diff --git a/tests/routing_scope_test.cpp b/tests/routing_scope_test.cpp index 8f87b50..c45508f 100644 --- a/tests/routing_scope_test.cpp +++ b/tests/routing_scope_test.cpp @@ -1,3 +1,19 @@ +/* + * Copyright ScyllaDB, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + #include #include From 8da8c6c854d7b27075f04d0bf40e657b62fb3a26 Mon Sep 17 00:00:00 2001 From: Dmitry Kropachev Date: Thu, 6 Aug 2026 09:09:25 -0400 Subject: [PATCH 2/2] Exclude build dependencies from header scan --- .gitignore | 1 + licenserc.toml | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index c17635e..1916fb9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ build/ build-*/ cmake-build-*/ +.deps/ test/scylla/db.crt test/scylla/db.key *.o diff --git a/licenserc.toml b/licenserc.toml index 46cb5d8..94e3353 100644 --- a/licenserc.toml +++ b/licenserc.toml @@ -30,6 +30,12 @@ includes = [ "test/**/*.yml", "tests/**/*.cpp", ] +excludes = [ + ".deps/**", + "build/**", + "build-*/**", + "cmake-build-*/**", +] [mapping.SCRIPT_STYLE] filenames = ["CMakeLists.txt", "Makefile"]