Skip to content

Commit a6c4ca7

Browse files
committed
build: add license header
Signed-off-by: ZhangJian He <[email protected]>
1 parent d79c69c commit a6c4ca7

File tree

92 files changed

+159
-261
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+159
-261
lines changed

.clang-format

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#
2-
# Copyright 2024 Huawei Cloud Computing Technologies Co., Ltd.
1+
# Copyright 2024 openGemini Authors
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");
54
# you may not use this file except in compliance with the License.
@@ -12,7 +11,6 @@
1211
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1312
# See the License for the specific language governing permissions and
1413
# limitations under the License.
15-
#
1614

1715
---
1816
AccessModifierOffset: -4

.github/workflows/commit_lint.yml

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright 2024 openGemini Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
name: commit lint
216
on:
317
pull_request:

.github/workflows/license_lint.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Copyright 2024 openGemini Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
16+
name: license lint
17+
on:
18+
pull_request:
19+
branches:
20+
- main
21+
jobs:
22+
build:
23+
name: license lint
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
- name: licenselint
28+
uses: shoothzj/licenselint@main
29+
with:
30+
author: openGemini Authors

.github/workflows/line_lint.yml

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright 2024 openGemini Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
name: line lint
216
on:
317
pull_request:

.github/workflows/typo_check.yml

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
# Copyright 2024 openGemini Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
115
name: typo check
216
on:
317
pull_request:

CMakeLists.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#
2-
# Copyright 2024 Huawei Cloud Computing Technologies Co., Ltd.
1+
# Copyright 2024 openGemini Authors
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");
54
# you may not use this file except in compliance with the License.
@@ -12,7 +11,6 @@
1211
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1312
# See the License for the specific language governing permissions and
1413
# limitations under the License.
15-
#
1614

1715
cmake_minimum_required(VERSION 3.12)
1816

cmake/OpenGeminiCxxConfig.cmake.in

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#
2-
# Copyright 2024 Huawei Cloud Computing Technologies Co., Ltd.
1+
# Copyright 2024 openGemini Authors
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");
54
# you may not use this file except in compliance with the License.
@@ -12,7 +11,6 @@
1211
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1312
# See the License for the specific language governing permissions and
1413
# limitations under the License.
15-
#
1614

1715
@PACKAGE_INIT@
1816

cmake/deps/boost.cmake

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#
2-
# Copyright 2024 Huawei Cloud Computing Technologies Co., Ltd.
1+
# Copyright 2024 openGemini Authors
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");
54
# you may not use this file except in compliance with the License.
@@ -12,7 +11,6 @@
1211
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1312
# See the License for the specific language governing permissions and
1413
# limitations under the License.
15-
#
1614

1715
include_guard()
1816
include(FetchContent)

cmake/deps/doxygen.cmake

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#
2-
# Copyright 2024 Huawei Cloud Computing Technologies Co., Ltd.
1+
# Copyright 2024 openGemini Authors
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");
54
# you may not use this file except in compliance with the License.
@@ -12,7 +11,6 @@
1211
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1312
# See the License for the specific language governing permissions and
1413
# limitations under the License.
15-
#
1614

1715
include_guard()
1816
message(STATUS "Finding Doxygen program")

cmake/deps/fmt.cmake

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#
2-
# Copyright 2024 Huawei Cloud Computing Technologies Co., Ltd.
1+
# Copyright 2024 openGemini Authors
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");
54
# you may not use this file except in compliance with the License.
@@ -12,7 +11,6 @@
1211
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1312
# See the License for the specific language governing permissions and
1413
# limitations under the License.
15-
#
1614

1715
include_guard()
1816
include(FetchContent)

cmake/deps/googletest.cmake

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#
2-
# Copyright 2024 Huawei Cloud Computing Technologies Co., Ltd.
1+
# Copyright 2024 openGemini Authors
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");
54
# you may not use this file except in compliance with the License.
@@ -12,7 +11,6 @@
1211
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1312
# See the License for the specific language governing permissions and
1413
# limitations under the License.
15-
#
1614

1715
include_guard()
1816
include(FetchContent)

cmake/deps/nlohmann_json.cmake

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#
2-
# Copyright 2024 Huawei Cloud Computing Technologies Co., Ltd.
1+
# Copyright 2024 openGemini Authors
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");
54
# you may not use this file except in compliance with the License.
@@ -12,7 +11,6 @@
1211
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1312
# See the License for the specific language governing permissions and
1413
# limitations under the License.
15-
#
1614

1715
include_guard()
1816
include(FetchContent)

cmake/deps/openssl.cmake

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#
2-
# Copyright 2024 Huawei Cloud Computing Technologies Co., Ltd.
1+
# Copyright 2024 openGemini Authors
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");
54
# you may not use this file except in compliance with the License.
@@ -12,7 +11,6 @@
1211
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1312
# See the License for the specific language governing permissions and
1413
# limitations under the License.
15-
#
1614

1715
include_guard()
1816
message(STATUS "Finding OpenSSL package")

cmake/util/version.cmake

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#
2-
# Copyright 2024 Huawei Cloud Computing Technologies Co., Ltd.
1+
# Copyright 2024 openGemini Authors
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");
54
# you may not use this file except in compliance with the License.
@@ -12,7 +11,6 @@
1211
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1312
# See the License for the specific language governing permissions and
1413
# limitations under the License.
15-
#
1614

1715
include_guard()
1816

docs/CMakeLists.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#
2-
# Copyright 2024 Huawei Cloud Computing Technologies Co., Ltd.
1+
# Copyright 2024 openGemini Authors
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");
54
# you may not use this file except in compliance with the License.
@@ -12,7 +11,6 @@
1211
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1312
# See the License for the specific language governing permissions and
1413
# limitations under the License.
15-
#
1614

1715
include(${PROJECT_SOURCE_DIR}/cmake/deps/doxygen.cmake)
1816

examples/CMakeLists.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#
2-
# Copyright 2024 Huawei Cloud Computing Technologies Co., Ltd.
1+
# Copyright 2024 openGemini Authors
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");
54
# you may not use this file except in compliance with the License.
@@ -12,6 +11,5 @@
1211
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1312
# See the License for the specific language governing permissions and
1413
# limitations under the License.
15-
#
1614

1715
add_subdirectory(sync)

examples/sync/CMakeLists.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#
2-
# Copyright 2024 Huawei Cloud Computing Technologies Co., Ltd.
1+
# Copyright 2024 openGemini Authors
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");
54
# you may not use this file except in compliance with the License.
@@ -12,7 +11,6 @@
1211
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1312
# See the License for the specific language governing permissions and
1413
# limitations under the License.
15-
#
1614

1715
add_executable(ExampleSyncQuery Query.cpp)
1816
add_executable(ExampleSyncWrite Write.cpp)

examples/sync/Database.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
//
2-
// Copyright 2024 Huawei Cloud Computing Technologies Co., Ltd.
1+
// Copyright 2024 openGemini Authors
32
//
43
// Licensed under the Apache License, Version 2.0 (the "License");
54
// you may not use this file except in compliance with the License.
@@ -12,7 +11,6 @@
1211
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1312
// See the License for the specific language governing permissions and
1413
// limitations under the License.
15-
//
1614

1715
//
1816
// Example: Manager database synchronously.

examples/sync/Query.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
//
2-
// Copyright 2024 Huawei Cloud Computing Technologies Co., Ltd.
1+
// Copyright 2024 openGemini Authors
32
//
43
// Licensed under the Apache License, Version 2.0 (the "License");
54
// you may not use this file except in compliance with the License.
@@ -12,7 +11,6 @@
1211
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1312
// See the License for the specific language governing permissions and
1413
// limitations under the License.
15-
//
1614

1715
//
1816
// Example: Query from server synchronously.

examples/sync/Write.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
//
2-
// Copyright 2024 Huawei Cloud Computing Technologies Co., Ltd.
1+
// Copyright 2024 openGemini Authors
32
//
43
// Licensed under the Apache License, Version 2.0 (the "License");
54
// you may not use this file except in compliance with the License.
@@ -12,7 +11,6 @@
1211
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1312
// See the License for the specific language governing permissions and
1413
// limitations under the License.
15-
//
1614

1715
//
1816
// Example: Write points synchronously.

include/CMakeLists.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#
2-
# Copyright 2024 Huawei Cloud Computing Technologies Co., Ltd.
1+
# Copyright 2024 openGemini Authors
32
#
43
# Licensed under the Apache License, Version 2.0 (the "License");
54
# you may not use this file except in compliance with the License.
@@ -12,7 +11,6 @@
1211
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1312
# See the License for the specific language governing permissions and
1413
# limitations under the License.
15-
#
1614

1715
macro(opengemini_target_setting TARGET_NAME TARGET_SCOPE)
1816
target_compile_definitions(${TARGET_NAME} ${TARGET_SCOPE} ${OPENGEMINI_COMPILE_DEFINITIONS})

include/opengemini/Client.hpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
//
2-
// Copyright 2024 Huawei Cloud Computing Technologies Co., Ltd.
1+
// Copyright 2024 openGemini Authors
32
//
43
// Licensed under the Apache License, Version 2.0 (the "License");
54
// you may not use this file except in compliance with the License.
@@ -12,7 +11,6 @@
1211
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1312
// See the License for the specific language governing permissions and
1413
// limitations under the License.
15-
//
1614

1715
#ifndef OPENGEMINI_CLIENT_HPP
1816
#define OPENGEMINI_CLIENT_HPP

include/opengemini/ClientConfig.hpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
//
2-
// Copyright 2024 Huawei Cloud Computing Technologies Co., Ltd.
1+
// Copyright 2024 openGemini Authors
32
//
43
// Licensed under the Apache License, Version 2.0 (the "License");
54
// you may not use this file except in compliance with the License.
@@ -12,7 +11,6 @@
1211
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1312
// See the License for the specific language governing permissions and
1413
// limitations under the License.
15-
//
1614

1715
/// @file ClientConfig.hpp
1816
#ifndef OPENGEMINI_CLIENTCONFIG_HPP

include/opengemini/ClientConfigBuilder.hpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
//
2-
// Copyright 2024 Huawei Cloud Computing Technologies Co., Ltd.
1+
// Copyright 2024 openGemini Authors
32
//
43
// Licensed under the Apache License, Version 2.0 (the "License");
54
// you may not use this file except in compliance with the License.
@@ -12,7 +11,6 @@
1211
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1312
// See the License for the specific language governing permissions and
1413
// limitations under the License.
15-
//
1614

1715
#ifndef OPENGEMINI_CLIENTCONFIGBUILDER_HPP
1816
#define OPENGEMINI_CLIENTCONFIGBUILDER_HPP

include/opengemini/CompletionToken.hpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
//
2-
// Copyright 2024 Huawei Cloud Computing Technologies Co., Ltd.
1+
// Copyright 2024 openGemini Authors
32
//
43
// Licensed under the Apache License, Version 2.0 (the "License");
54
// you may not use this file except in compliance with the License.
@@ -12,7 +11,6 @@
1211
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1312
// See the License for the specific language governing permissions and
1413
// limitations under the License.
15-
//
1614

1715
/// @file CompletionToken.hpp
1816
#ifndef OPENGEMINI_COMPLETIONTOKEN_HPP

0 commit comments

Comments
 (0)