mirror of
https://github.com/XRPLF/clio.git
synced 2026-06-18 08:06:47 +00:00
Compare commits
1 Commits
develop
...
clang_tidy
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a7ebe7e25e |
2
.github/scripts/conan/generate_matrix.py
vendored
2
.github/scripts/conan/generate_matrix.py
vendored
@@ -3,7 +3,7 @@ import itertools
|
||||
import json
|
||||
|
||||
LINUX_OS = ["heavy", "heavy-arm64"]
|
||||
LINUX_CONTAINERS = ['{ "image": "ghcr.io/xrplf/xrpld/nix-ubuntu:sha-cb2642b" }']
|
||||
LINUX_CONTAINERS = ['{ "image": "ghcr.io/xrplf/xrpld/nix-ubuntu:sha-7b9d553" }']
|
||||
LINUX_COMPILERS = ["gcc", "clang"]
|
||||
|
||||
MACOS_OS = ["macos15"]
|
||||
|
||||
6
.github/workflows/build.yml
vendored
6
.github/workflows/build.yml
vendored
@@ -47,7 +47,7 @@ jobs:
|
||||
os: [heavy]
|
||||
compiler: [gcc, clang]
|
||||
build_type: [Release, Debug]
|
||||
container: ['{ "image": "ghcr.io/xrplf/xrpld/nix-ubuntu:sha-cb2642b" }']
|
||||
container: ['{ "image": "ghcr.io/xrplf/xrpld/nix-ubuntu:sha-7b9d553" }']
|
||||
|
||||
include:
|
||||
- os: macos15
|
||||
@@ -73,7 +73,7 @@ jobs:
|
||||
uses: ./.github/workflows/reusable-build.yml
|
||||
with:
|
||||
runs_on: heavy
|
||||
container: '{ "image": "ghcr.io/xrplf/xrpld/nix-ubuntu:sha-cb2642b" }'
|
||||
container: '{ "image": "ghcr.io/xrplf/xrpld/nix-ubuntu:sha-7b9d553" }'
|
||||
compiler: gcc
|
||||
build_type: Debug
|
||||
download_ccache: true
|
||||
@@ -90,7 +90,7 @@ jobs:
|
||||
needs: build-and-test
|
||||
runs-on: heavy
|
||||
container:
|
||||
image: ghcr.io/xrplf/xrpld/nix-ubuntu:sha-cb2642b
|
||||
image: ghcr.io/xrplf/xrpld/nix-ubuntu:sha-7b9d553
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
||||
|
||||
4
.github/workflows/check-libxrpl.yml
vendored
4
.github/workflows/check-libxrpl.yml
vendored
@@ -21,7 +21,7 @@ jobs:
|
||||
name: Build Clio / `libXRPL ${{ github.event.client_payload.version }}`
|
||||
runs-on: heavy
|
||||
container:
|
||||
image: ghcr.io/xrplf/xrpld/nix-ubuntu:sha-cb2642b
|
||||
image: ghcr.io/xrplf/xrpld/nix-ubuntu:sha-7b9d553
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
|
||||
@@ -76,7 +76,7 @@ jobs:
|
||||
needs: build
|
||||
runs-on: heavy
|
||||
container:
|
||||
image: ghcr.io/xrplf/xrpld/nix-ubuntu:sha-cb2642b
|
||||
image: ghcr.io/xrplf/xrpld/nix-ubuntu:sha-7b9d553
|
||||
|
||||
steps:
|
||||
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
|
||||
24
.github/workflows/clang-tidy.yml
vendored
24
.github/workflows/clang-tidy.yml
vendored
@@ -28,10 +28,9 @@ env:
|
||||
BUILD_DIR: build
|
||||
BUILD_TYPE: Debug # Debug so that ASSERTS and such participate in clang-tidy check
|
||||
|
||||
OUTPUT_FILE: /tmp/clang-tidy-output.txt
|
||||
FILTERED_OUTPUT_FILE: /tmp/clang-tidy-filtered-output.txt
|
||||
DIFF_FILE: /tmp/clang-tidy-git-diff.txt
|
||||
ISSUE_FILE: /tmp/clang-tidy-issue.md
|
||||
OUTPUT_FILE: clang-tidy-output.txt
|
||||
DIFF_FILE: clang-tidy-git-diff.txt
|
||||
ISSUE_FILE: clang-tidy-issue.md
|
||||
|
||||
COMPILER: clang
|
||||
|
||||
@@ -52,7 +51,7 @@ jobs:
|
||||
if: ${{ always() && !cancelled() && (github.event_name != 'pull_request' || needs.determine-files.outputs.cpp_changed_files != '' || needs.determine-files.outputs.clang_tidy_config_changed == 'true') }}
|
||||
runs-on: heavy
|
||||
container:
|
||||
image: ghcr.io/xrplf/xrpld/nix-ubuntu:sha-cb2642b
|
||||
image: ghcr.io/xrplf/xrpld/nix-ubuntu:sha-7b9d553
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
@@ -155,21 +154,21 @@ jobs:
|
||||
run: |
|
||||
if [ -f "${OUTPUT_FILE}" ]; then
|
||||
# Extract lines containing 'error:', 'warning:', or 'note:'
|
||||
grep -E '(error:|warning:|note:)' "${OUTPUT_FILE}" >"${FILTERED_OUTPUT_FILE}" || true
|
||||
grep -E '(error:|warning:|note:)' "${OUTPUT_FILE}" >filtered-output.txt || true
|
||||
|
||||
# If filtered output is empty, use original (might be a different error format)
|
||||
if [ ! -s "${FILTERED_OUTPUT_FILE}" ]; then
|
||||
cp "${OUTPUT_FILE}" "${FILTERED_OUTPUT_FILE}"
|
||||
if [ ! -s filtered-output.txt ]; then
|
||||
cp "${OUTPUT_FILE}" filtered-output.txt
|
||||
fi
|
||||
|
||||
# Truncate if too large
|
||||
head -c 60000 "${FILTERED_OUTPUT_FILE}" >>"${ISSUE_FILE}"
|
||||
if [ "$(wc -c <"${FILTERED_OUTPUT_FILE}")" -gt 60000 ]; then
|
||||
head -c 60000 filtered-output.txt >>"${ISSUE_FILE}"
|
||||
if [ "$(wc -c <filtered-output.txt)" -gt 60000 ]; then
|
||||
echo "" >>"${ISSUE_FILE}"
|
||||
echo "... (output truncated, see artifacts for full output)" >>"${ISSUE_FILE}"
|
||||
fi
|
||||
|
||||
rm "${FILTERED_OUTPUT_FILE}"
|
||||
rm filtered-output.txt
|
||||
else
|
||||
echo "No output file found" >>"${ISSUE_FILE}"
|
||||
fi
|
||||
@@ -185,7 +184,6 @@ jobs:
|
||||
EOF
|
||||
|
||||
- name: Create issue
|
||||
id: create_issue
|
||||
if: ${{ steps.run_clang_tidy.outcome != 'success' && github.event_name != 'pull_request' }}
|
||||
uses: XRPLF/actions/create-issue@2b8bc36af85b88bca0dd7bfac2e2dc05f94ad712
|
||||
with:
|
||||
@@ -214,7 +212,7 @@ jobs:
|
||||
branch: "clang_tidy/autofix"
|
||||
branch-suffix: timestamp
|
||||
delete-branch: true
|
||||
title: "style: Apply clang-tidy auto fixes"
|
||||
title: "style: clang-tidy auto fixes"
|
||||
body: >
|
||||
Fixes #${{ steps.create_issue.outputs.issue_number }}.
|
||||
|
||||
|
||||
14
.github/workflows/docs.yml
vendored
14
.github/workflows/docs.yml
vendored
@@ -4,18 +4,6 @@ on:
|
||||
push:
|
||||
branches: [develop]
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
branches: [release/*, develop]
|
||||
paths:
|
||||
- .github/workflows/docs.yml
|
||||
|
||||
- CMakeLists.txt
|
||||
- conanfile.py
|
||||
- conan.lock
|
||||
- "cmake/**"
|
||||
- "docs/**"
|
||||
- "src/**"
|
||||
- "tests/**"
|
||||
|
||||
concurrency:
|
||||
# Only cancel in-progress jobs or runs for the current workflow - matches against branch & tags
|
||||
@@ -30,7 +18,7 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ghcr.io/xrplf/xrpld/nix-ubuntu:sha-cb2642b
|
||||
image: ghcr.io/xrplf/xrpld/nix-ubuntu:sha-7b9d553
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
||||
10
.github/workflows/nightly.yml
vendored
10
.github/workflows/nightly.yml
vendored
@@ -53,16 +53,16 @@ jobs:
|
||||
- os: heavy
|
||||
compiler: gcc
|
||||
build_type: Release
|
||||
container: '{ "image": "ghcr.io/xrplf/xrpld/nix-ubuntu:sha-cb2642b" }'
|
||||
container: '{ "image": "ghcr.io/xrplf/xrpld/nix-ubuntu:sha-7b9d553" }'
|
||||
- os: heavy
|
||||
compiler: gcc
|
||||
build_type: Debug
|
||||
container: '{ "image": "ghcr.io/xrplf/xrpld/nix-ubuntu:sha-cb2642b" }'
|
||||
container: '{ "image": "ghcr.io/xrplf/xrpld/nix-ubuntu:sha-7b9d553" }'
|
||||
- os: heavy
|
||||
compiler: gcc
|
||||
sanitizers: undefinedbehavior
|
||||
build_type: Release
|
||||
container: '{ "image": "ghcr.io/xrplf/xrpld/nix-ubuntu:sha-cb2642b" }'
|
||||
container: '{ "image": "ghcr.io/xrplf/xrpld/nix-ubuntu:sha-7b9d553" }'
|
||||
|
||||
uses: ./.github/workflows/reusable-build-test.yml
|
||||
with:
|
||||
@@ -85,7 +85,7 @@ jobs:
|
||||
uses: ./.github/workflows/reusable-build.yml
|
||||
with:
|
||||
runs_on: heavy
|
||||
container: '{ "image": "ghcr.io/xrplf/xrpld/nix-ubuntu:sha-cb2642b" }'
|
||||
container: '{ "image": "ghcr.io/xrplf/xrpld/nix-ubuntu:sha-7b9d553" }'
|
||||
compiler: gcc
|
||||
build_type: Release
|
||||
download_ccache: false
|
||||
@@ -107,7 +107,7 @@ jobs:
|
||||
include:
|
||||
- os: heavy
|
||||
compiler: clang
|
||||
container: '{ "image": "ghcr.io/xrplf/xrpld/nix-ubuntu:sha-cb2642b" }'
|
||||
container: '{ "image": "ghcr.io/xrplf/xrpld/nix-ubuntu:sha-7b9d553" }'
|
||||
- os: macos15
|
||||
compiler: apple-clang
|
||||
container: ""
|
||||
|
||||
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@@ -27,7 +27,7 @@ jobs:
|
||||
- os: heavy
|
||||
compiler: gcc
|
||||
build_type: Release
|
||||
container: '{ "image": "ghcr.io/xrplf/xrpld/nix-ubuntu:sha-cb2642b" }'
|
||||
container: '{ "image": "ghcr.io/xrplf/xrpld/nix-ubuntu:sha-7b9d553" }'
|
||||
|
||||
uses: ./.github/workflows/reusable-build-test.yml
|
||||
with:
|
||||
@@ -48,7 +48,7 @@ jobs:
|
||||
uses: ./.github/workflows/reusable-build.yml
|
||||
with:
|
||||
runs_on: heavy
|
||||
container: '{ "image": "ghcr.io/xrplf/xrpld/nix-ubuntu:sha-cb2642b" }'
|
||||
container: '{ "image": "ghcr.io/xrplf/xrpld/nix-ubuntu:sha-7b9d553" }'
|
||||
compiler: gcc
|
||||
build_type: Release
|
||||
download_ccache: false
|
||||
|
||||
2
.github/workflows/reusable-release.yml
vendored
2
.github/workflows/reusable-release.yml
vendored
@@ -46,7 +46,7 @@ jobs:
|
||||
release:
|
||||
runs-on: heavy
|
||||
container:
|
||||
image: ghcr.io/xrplf/xrpld/nix-ubuntu:sha-cb2642b
|
||||
image: ghcr.io/xrplf/xrpld/nix-ubuntu:sha-7b9d553
|
||||
env:
|
||||
GH_REPO: ${{ github.repository }}
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
|
||||
2
.github/workflows/sanitizers.yml
vendored
2
.github/workflows/sanitizers.yml
vendored
@@ -42,7 +42,7 @@ jobs:
|
||||
uses: ./.github/workflows/reusable-build-test.yml
|
||||
with:
|
||||
runs_on: heavy
|
||||
container: '{ "image": "ghcr.io/xrplf/xrpld/nix-ubuntu:sha-cb2642b" }'
|
||||
container: '{ "image": "ghcr.io/xrplf/xrpld/nix-ubuntu:sha-7b9d553" }'
|
||||
download_ccache: false
|
||||
upload_ccache: false
|
||||
compiler: ${{ matrix.compiler }}
|
||||
|
||||
406
clang-tidy-git-diff.txt
Normal file
406
clang-tidy-git-diff.txt
Normal file
@@ -0,0 +1,406 @@
|
||||
diff --git a/src/cluster/Backend.hpp b/src/cluster/Backend.hpp
|
||||
index d83643b..d82d3a3 100644
|
||||
--- a/src/cluster/Backend.hpp
|
||||
+++ b/src/cluster/Backend.hpp
|
||||
@@ -119,7 +119,7 @@ public:
|
||||
*
|
||||
* @return The UUID of this node.
|
||||
*/
|
||||
- ClioNode::CUuid
|
||||
+ [[nodiscard]] ClioNode::CUuid
|
||||
selfId() const;
|
||||
|
||||
private:
|
||||
diff --git a/src/cluster/ClusterCommunicationService.cpp b/src/cluster/ClusterCommunicationService.cpp
|
||||
index 0ad1320..dc30bb0 100644
|
||||
--- a/src/cluster/ClusterCommunicationService.cpp
|
||||
+++ b/src/cluster/ClusterCommunicationService.cpp
|
||||
@@ -7,7 +7,6 @@
|
||||
#include "util/config/ConfigDefinition.hpp"
|
||||
|
||||
#include <chrono>
|
||||
-#include <ctime>
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
diff --git a/src/data/BackendInterface.cpp b/src/data/BackendInterface.cpp
|
||||
index 7f84df2..eb389a1 100644
|
||||
--- a/src/data/BackendInterface.cpp
|
||||
+++ b/src/data/BackendInterface.cpp
|
||||
@@ -223,7 +223,7 @@ BackendInterface::fetchBookOffers(
|
||||
<< " blob = " << ripple::strHex(objs[i])
|
||||
<< " ledgerSequence = " << ledgerSequence;
|
||||
ASSERT(!objs[i].empty(), "Ledger object can't be empty");
|
||||
- page.offers.push_back({keys[i], objs[i]});
|
||||
+ page.offers.push_back({.key=keys[i], .blob=objs[i]});
|
||||
}
|
||||
auto end = std::chrono::system_clock::now();
|
||||
LOG(log_.debug()) << "Fetching " << std::to_string(keys.size()) << " offers took "
|
||||
@@ -328,7 +328,7 @@ BackendInterface::fetchLedgerPage(
|
||||
auto objects = fetchLedgerObjects(keys, ledgerSequence, yield);
|
||||
for (size_t i = 0; i < objects.size(); ++i) {
|
||||
if (!objects[i].empty()) {
|
||||
- page.objects.push_back({keys[i], std::move(objects[i])});
|
||||
+ page.objects.push_back({.key=keys[i], .blob=std::move(objects[i])});
|
||||
} else if (!outOfOrder) {
|
||||
LOG(log_.error()) << "Deleted or non-existent object in successor table. key = "
|
||||
<< ripple::strHex(keys[i]) << " - seq = " << ledgerSequence;
|
||||
diff --git a/src/data/cassandra/impl/ExecutionStrategy.hpp b/src/data/cassandra/impl/ExecutionStrategy.hpp
|
||||
index fb874c2..8251287 100644
|
||||
--- a/src/data/cassandra/impl/ExecutionStrategy.hpp
|
||||
+++ b/src/data/cassandra/impl/ExecutionStrategy.hpp
|
||||
@@ -119,7 +119,7 @@ public:
|
||||
/**
|
||||
* @return true if outstanding read requests allowance is exhausted; false otherwise
|
||||
*/
|
||||
- bool
|
||||
+ [[nodiscard]] bool
|
||||
isTooBusy() const
|
||||
{
|
||||
bool const result = numReadRequestsOutstanding_ >= maxReadRequestsOutstanding_;
|
||||
@@ -495,7 +495,7 @@ public:
|
||||
/**
|
||||
* @brief Get statistics about the backend.
|
||||
*/
|
||||
- boost::json::object
|
||||
+ [[nodiscard]] boost::json::object
|
||||
stats() const
|
||||
{
|
||||
return counters_->report();
|
||||
@@ -536,13 +536,13 @@ private:
|
||||
}
|
||||
}
|
||||
|
||||
- bool
|
||||
+ [[nodiscard]] bool
|
||||
canAddWriteRequest() const
|
||||
{
|
||||
return numWriteRequestsOutstanding_ < maxWriteRequestsOutstanding_;
|
||||
}
|
||||
|
||||
- bool
|
||||
+ [[nodiscard]] bool
|
||||
finishedAllWriteRequests() const
|
||||
{
|
||||
return numWriteRequestsOutstanding_ == 0;
|
||||
diff --git a/src/etl/ETLService.hpp b/src/etl/ETLService.hpp
|
||||
index 0303943..1259220 100644
|
||||
--- a/src/etl/ETLService.hpp
|
||||
+++ b/src/etl/ETLService.hpp
|
||||
@@ -179,19 +179,19 @@ public:
|
||||
void
|
||||
stop() override;
|
||||
|
||||
- boost::json::object
|
||||
+ [[nodiscard]] boost::json::object
|
||||
getInfo() const override;
|
||||
|
||||
- bool
|
||||
+ [[nodiscard]] bool
|
||||
isAmendmentBlocked() const override;
|
||||
|
||||
- bool
|
||||
+ [[nodiscard]] bool
|
||||
isCorruptionDetected() const override;
|
||||
|
||||
- std::optional<ETLState>
|
||||
+ [[nodiscard]] std::optional<ETLState>
|
||||
getETLState() const override;
|
||||
|
||||
- std::uint32_t
|
||||
+ [[nodiscard]] std::uint32_t
|
||||
lastCloseAgeSeconds() const override;
|
||||
|
||||
private:
|
||||
diff --git a/src/etl/impl/Extraction.cpp b/src/etl/impl/Extraction.cpp
|
||||
index cf29a35..6a46493 100644
|
||||
--- a/src/etl/impl/Extraction.cpp
|
||||
+++ b/src/etl/impl/Extraction.cpp
|
||||
@@ -18,10 +18,8 @@
|
||||
|
||||
#include <algorithm>
|
||||
#include <chrono>
|
||||
-#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <iterator>
|
||||
-#include <memory>
|
||||
#include <optional>
|
||||
#include <ranges>
|
||||
#include <string>
|
||||
diff --git a/src/etl/impl/Monitor.cpp b/src/etl/impl/Monitor.cpp
|
||||
index b89c365..229731d 100644
|
||||
--- a/src/etl/impl/Monitor.cpp
|
||||
+++ b/src/etl/impl/Monitor.cpp
|
||||
@@ -10,7 +10,6 @@
|
||||
|
||||
#include <algorithm>
|
||||
#include <chrono>
|
||||
-#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
diff --git a/src/rpc/common/Modifiers.hpp b/src/rpc/common/Modifiers.hpp
|
||||
index 33262cf..739cd72 100644
|
||||
--- a/src/rpc/common/Modifiers.hpp
|
||||
+++ b/src/rpc/common/Modifiers.hpp
|
||||
@@ -109,7 +109,7 @@ struct ToNumber final {
|
||||
return {}; // ignore for non-string types
|
||||
|
||||
auto const strInt = boost::json::value_to<std::string>(value.as_object().at(key));
|
||||
- if (strInt.find('.') != std::string::npos)
|
||||
+ if (strInt.contains('.'))
|
||||
return Error{Status{RippledError::rpcINVALID_PARAMS}}; // maybe a float
|
||||
|
||||
try {
|
||||
diff --git a/src/rpc/common/Validators.cpp b/src/rpc/common/Validators.cpp
|
||||
index cb83f2a..ec9ab07 100644
|
||||
--- a/src/rpc/common/Validators.cpp
|
||||
+++ b/src/rpc/common/Validators.cpp
|
||||
@@ -20,7 +20,6 @@
|
||||
|
||||
#include <charconv>
|
||||
#include <cstdint>
|
||||
-#include <ctime>
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
diff --git a/src/rpc/handlers/DepositAuthorized.cpp b/src/rpc/handlers/DepositAuthorized.cpp
|
||||
index 15bb3ba..c29354c 100644
|
||||
--- a/src/rpc/handlers/DepositAuthorized.cpp
|
||||
+++ b/src/rpc/handlers/DepositAuthorized.cpp
|
||||
@@ -24,7 +24,6 @@
|
||||
#include <xrpl/protocol/Serializer.h>
|
||||
#include <xrpl/protocol/jss.h>
|
||||
|
||||
-#include <memory>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
diff --git a/src/rpc/handlers/LedgerData.cpp b/src/rpc/handlers/LedgerData.cpp
|
||||
index 6d4bee0..cdeadf3 100644
|
||||
--- a/src/rpc/handlers/LedgerData.cpp
|
||||
+++ b/src/rpc/handlers/LedgerData.cpp
|
||||
@@ -91,7 +91,7 @@ LedgerDataHandler::process(Input const& input, Context const& ctx) const
|
||||
for (size_t i = 0; i < objs.size(); ++i) {
|
||||
auto& obj = objs[i];
|
||||
if (!obj.empty())
|
||||
- results.push_back({keys[i], std::move(obj)});
|
||||
+ results.push_back({.key=keys[i], .blob=std::move(obj)});
|
||||
}
|
||||
|
||||
if (*(input.diffMarker) > lgrInfo.seq)
|
||||
diff --git a/src/util/Atomic.hpp b/src/util/Atomic.hpp
|
||||
index b2b1553..9062af5 100644
|
||||
--- a/src/util/Atomic.hpp
|
||||
+++ b/src/util/Atomic.hpp
|
||||
@@ -76,7 +76,7 @@ public:
|
||||
*
|
||||
* @return The current value
|
||||
*/
|
||||
- ValueType
|
||||
+ [[nodiscard]] ValueType
|
||||
value() const
|
||||
{
|
||||
return value_;
|
||||
diff --git a/src/util/Coroutine.cpp b/src/util/Coroutine.cpp
|
||||
index 067fb50..a1d4c66 100644
|
||||
--- a/src/util/Coroutine.cpp
|
||||
+++ b/src/util/Coroutine.cpp
|
||||
@@ -7,7 +7,6 @@
|
||||
#include <boost/asio/post.hpp>
|
||||
#include <boost/asio/spawn.hpp>
|
||||
|
||||
-#include <cstddef>
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
diff --git a/src/util/CoroutineGroup.hpp b/src/util/CoroutineGroup.hpp
|
||||
index a392957..0691eb8 100644
|
||||
--- a/src/util/CoroutineGroup.hpp
|
||||
+++ b/src/util/CoroutineGroup.hpp
|
||||
@@ -79,7 +79,7 @@ public:
|
||||
*
|
||||
* @return size_t The number of coroutines in the group
|
||||
*/
|
||||
- size_t
|
||||
+ [[nodiscard]] size_t
|
||||
size() const;
|
||||
|
||||
/**
|
||||
@@ -87,7 +87,7 @@ public:
|
||||
*
|
||||
* @return true If the group is full false otherwise
|
||||
*/
|
||||
- bool
|
||||
+ [[nodiscard]] bool
|
||||
isFull() const;
|
||||
|
||||
private:
|
||||
diff --git a/src/web/AdminVerificationStrategy.cpp b/src/web/AdminVerificationStrategy.cpp
|
||||
index 382e6ac..fdb1cd4 100644
|
||||
--- a/src/web/AdminVerificationStrategy.cpp
|
||||
+++ b/src/web/AdminVerificationStrategy.cpp
|
||||
@@ -6,7 +6,6 @@
|
||||
|
||||
#include <boost/beast/http/field.hpp>
|
||||
|
||||
-#include <cstring>
|
||||
#include <memory>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
diff --git a/src/web/SubscriptionContext.hpp b/src/web/SubscriptionContext.hpp
|
||||
index a95c819..8f2716a 100644
|
||||
--- a/src/web/SubscriptionContext.hpp
|
||||
+++ b/src/web/SubscriptionContext.hpp
|
||||
@@ -74,7 +74,7 @@ public:
|
||||
*
|
||||
* @return The API subversion.
|
||||
*/
|
||||
- uint32_t
|
||||
+ [[nodiscard]] uint32_t
|
||||
apiSubversion() const override;
|
||||
};
|
||||
|
||||
diff --git a/src/web/ng/SubscriptionContext.hpp b/src/web/ng/SubscriptionContext.hpp
|
||||
index dc793b6..54be023 100644
|
||||
--- a/src/web/ng/SubscriptionContext.hpp
|
||||
+++ b/src/web/ng/SubscriptionContext.hpp
|
||||
@@ -103,7 +103,7 @@ public:
|
||||
*
|
||||
* @return The API subversion.
|
||||
*/
|
||||
- uint32_t
|
||||
+ [[nodiscard]] uint32_t
|
||||
apiSubversion() const override;
|
||||
|
||||
/**
|
||||
diff --git a/tests/common/util/CallWithTimeout.cpp b/tests/common/util/CallWithTimeout.cpp
|
||||
index 7805187..a31e11a 100644
|
||||
--- a/tests/common/util/CallWithTimeout.cpp
|
||||
+++ b/tests/common/util/CallWithTimeout.cpp
|
||||
@@ -3,7 +3,6 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include <chrono>
|
||||
-#include <cstdlib>
|
||||
#include <functional>
|
||||
#include <future>
|
||||
#include <thread>
|
||||
diff --git a/tests/unit/cluster/ClioNodeTests.cpp b/tests/unit/cluster/ClioNodeTests.cpp
|
||||
index ea4e23c..43e7352 100644
|
||||
--- a/tests/unit/cluster/ClioNodeTests.cpp
|
||||
+++ b/tests/unit/cluster/ClioNodeTests.cpp
|
||||
@@ -15,7 +15,6 @@
|
||||
|
||||
#include <chrono>
|
||||
#include <cstdint>
|
||||
-#include <ctime>
|
||||
#include <memory>
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
diff --git a/tests/unit/etl/AmendmentBlockHandlerTests.cpp b/tests/unit/etl/AmendmentBlockHandlerTests.cpp
|
||||
index c4fd376..336dcf6 100644
|
||||
--- a/tests/unit/etl/AmendmentBlockHandlerTests.cpp
|
||||
+++ b/tests/unit/etl/AmendmentBlockHandlerTests.cpp
|
||||
@@ -8,7 +8,6 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include <chrono>
|
||||
-#include <cstddef>
|
||||
#include <semaphore>
|
||||
|
||||
using namespace etl::impl;
|
||||
diff --git a/tests/unit/etl/MonitorTests.cpp b/tests/unit/etl/MonitorTests.cpp
|
||||
index f88aa5b..bd3e556 100644
|
||||
--- a/tests/unit/etl/MonitorTests.cpp
|
||||
+++ b/tests/unit/etl/MonitorTests.cpp
|
||||
@@ -11,7 +11,6 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include <chrono>
|
||||
-#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <functional>
|
||||
#include <optional>
|
||||
diff --git a/tests/unit/etl/NetworkValidatedLedgersTests.cpp b/tests/unit/etl/NetworkValidatedLedgersTests.cpp
|
||||
index 8874343..101cc18 100644
|
||||
--- a/tests/unit/etl/NetworkValidatedLedgersTests.cpp
|
||||
+++ b/tests/unit/etl/NetworkValidatedLedgersTests.cpp
|
||||
@@ -6,7 +6,6 @@
|
||||
#include <gmock/gmock.h>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
-#include <cstddef>
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
|
||||
diff --git a/tests/unit/etl/SubscriptionSourceTests.cpp b/tests/unit/etl/SubscriptionSourceTests.cpp
|
||||
index 03f6db6..71c5beb 100644
|
||||
--- a/tests/unit/etl/SubscriptionSourceTests.cpp
|
||||
+++ b/tests/unit/etl/SubscriptionSourceTests.cpp
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
#include <chrono>
|
||||
#include <cstdint>
|
||||
-#include <cstdlib>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <thread>
|
||||
diff --git a/tests/unit/etl/SystemStateTests.cpp b/tests/unit/etl/SystemStateTests.cpp
|
||||
index af99a50..aac8739 100644
|
||||
--- a/tests/unit/etl/SystemStateTests.cpp
|
||||
+++ b/tests/unit/etl/SystemStateTests.cpp
|
||||
@@ -10,7 +10,6 @@
|
||||
#include <fmt/format.h>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
-#include <memory>
|
||||
|
||||
using namespace etl;
|
||||
using namespace util::config;
|
||||
diff --git a/tests/unit/feed/ForwardFeedTests.cpp b/tests/unit/feed/ForwardFeedTests.cpp
|
||||
index 0f149f5..4b07e88 100644
|
||||
--- a/tests/unit/feed/ForwardFeedTests.cpp
|
||||
+++ b/tests/unit/feed/ForwardFeedTests.cpp
|
||||
@@ -7,7 +7,6 @@
|
||||
#include <gmock/gmock.h>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
-#include <memory>
|
||||
|
||||
using namespace feed::impl;
|
||||
namespace json = boost::json;
|
||||
diff --git a/tests/unit/rpc/handlers/LedgerIndexTests.cpp b/tests/unit/rpc/handlers/LedgerIndexTests.cpp
|
||||
index 2e530e5..b83f22b 100644
|
||||
--- a/tests/unit/rpc/handlers/LedgerIndexTests.cpp
|
||||
+++ b/tests/unit/rpc/handlers/LedgerIndexTests.cpp
|
||||
@@ -12,7 +12,6 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include <cstdint>
|
||||
-#include <cstdlib>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
diff --git a/tests/unit/web/ServerTests.cpp b/tests/unit/web/ServerTests.cpp
|
||||
index 326b2be..544d204 100644
|
||||
--- a/tests/unit/web/ServerTests.cpp
|
||||
+++ b/tests/unit/web/ServerTests.cpp
|
||||
@@ -712,7 +712,7 @@ TEST_F(WebServerTest, AdminErrorCfgTestBothAdminPasswordAndLocalAdminSet)
|
||||
boost::json::parse(jsonServerConfigWithBothAdminPasswordAndLocalAdmin)
|
||||
)};
|
||||
|
||||
- MockLedgerCache cache;
|
||||
+ MockLedgerCache const cache;
|
||||
auto const result = web::makeHttpServer(serverConfig, ctx, dosGuardOverload, e, cache);
|
||||
EXPECT_FALSE(result.has_value());
|
||||
}
|
||||
@@ -736,7 +736,7 @@ TEST_F(WebServerTest, AdminErrorCfgTestBothAdminPasswordAndLocalAdminFalse)
|
||||
boost::json::parse(jsonServerConfigWithNoAdminPasswordAndLocalAdminFalse)
|
||||
)};
|
||||
|
||||
- MockLedgerCache cache;
|
||||
+ MockLedgerCache const cache;
|
||||
auto const result = web::makeHttpServer(serverConfig, ctx, dosGuardOverload, e, cache);
|
||||
EXPECT_FALSE(result.has_value());
|
||||
}
|
||||
191
clang-tidy-issue.md
Normal file
191
clang-tidy-issue.md
Normal file
@@ -0,0 +1,191 @@
|
||||
## Clang-tidy Check Failed
|
||||
|
||||
### Clang-tidy Output:
|
||||
```
|
||||
/__w/clio/clio/src/util/CoroutineGroup.hpp:82:5: error: function 'size' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/CoroutineGroup.hpp:90:5: error: function 'isFull' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/web/ng/SubscriptionContext.hpp:106:5: error: function 'apiSubversion' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/Atomic.hpp:79:5: error: function 'value' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/handlers/DepositAuthorized.cpp:27:1: error: included header memory is not used directly [misc-include-cleaner,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Validators.cpp:23:1: error: included header ctime is not used directly [misc-include-cleaner,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/CoroutineGroup.hpp:82:5: error: function 'size' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/CoroutineGroup.hpp:90:5: error: function 'isFull' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/cluster/Backend.hpp:122:5: error: function 'selfId' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/cluster/ClusterCommunicationService.cpp:10:1: error: included header ctime is not used directly [misc-include-cleaner,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:122:5: error: function 'isTooBusy' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:498:5: error: function 'stats' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:539:5: error: function 'canAddWriteRequest' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:545:5: error: function 'finishedAllWriteRequests' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/cluster/Backend.hpp:122:5: error: function 'selfId' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/cluster/Backend.hpp:122:5: error: function 'selfId' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:122:5: error: function 'isTooBusy' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:498:5: error: function 'stats' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:539:5: error: function 'canAddWriteRequest' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:545:5: error: function 'finishedAllWriteRequests' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/tests/common/util/CallWithTimeout.cpp:6:1: error: included header cstdlib is not used directly [misc-include-cleaner,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/Atomic.hpp:79:5: error: function 'value' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/tests/unit/etl/MonitorTests.cpp:14:1: error: included header cstddef is not used directly [misc-include-cleaner,-warnings-as-errors]
|
||||
/__w/clio/clio/tests/unit/rpc/handlers/LedgerIndexTests.cpp:15:1: error: included header cstdlib is not used directly [misc-include-cleaner,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/etl/impl/Monitor.cpp:13:1: error: included header cstddef is not used directly [misc-include-cleaner,-warnings-as-errors]
|
||||
/__w/clio/clio/tests/unit/etl/SubscriptionSourceTests.cpp:19:1: error: included header cstdlib is not used directly [misc-include-cleaner,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:122:5: error: function 'isTooBusy' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:498:5: error: function 'stats' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:539:5: error: function 'canAddWriteRequest' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:545:5: error: function 'finishedAllWriteRequests' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/CoroutineGroup.hpp:82:5: error: function 'size' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/CoroutineGroup.hpp:90:5: error: function 'isFull' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/tests/unit/app/CliArgsTests.cpp:212:29: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/tests/unit/app/CliArgsTests.cpp:214:21: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/tests/unit/app/CliArgsTests.cpp:219:29: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/CoroutineGroup.hpp:82:5: error: function 'size' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/CoroutineGroup.hpp:90:5: error: function 'isFull' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/cluster/Backend.hpp:122:5: error: function 'selfId' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/BackendInterface.cpp:226:31: error: use designated initializer list to initialize 'value_type' (aka 'data::LedgerObject') [modernize-use-designated-initializers,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/Types.hpp:22:1: note: aggregate type is defined here
|
||||
/__w/clio/clio/src/data/BackendInterface.cpp:331:36: error: use designated initializer list to initialize 'value_type' (aka 'data::LedgerObject') [modernize-use-designated-initializers,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/Types.hpp:22:1: note: aggregate type is defined here
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:122:5: error: function 'isTooBusy' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:498:5: error: function 'stats' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:539:5: error: function 'canAddWriteRequest' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:545:5: error: function 'finishedAllWriteRequests' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/cluster/Backend.hpp:122:5: error: function 'selfId' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/cluster/Backend.hpp:122:5: error: function 'selfId' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/web/SubscriptionContext.hpp:77:5: error: function 'apiSubversion' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/cluster/Backend.hpp:122:5: error: function 'selfId' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:122:5: error: function 'isTooBusy' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:498:5: error: function 'stats' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:539:5: error: function 'canAddWriteRequest' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:545:5: error: function 'finishedAllWriteRequests' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/CoroutineGroup.hpp:82:5: error: function 'size' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/CoroutineGroup.hpp:90:5: error: function 'isFull' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/handlers/LedgerData.cpp:94:35: error: use designated initializer list to initialize 'value_type' (aka 'data::LedgerObject') [modernize-use-designated-initializers,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/Types.hpp:22:1: note: aggregate type is defined here
|
||||
/__w/clio/clio/src/util/CoroutineGroup.hpp:82:5: error: function 'size' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/CoroutineGroup.hpp:90:5: error: function 'isFull' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/web/ng/SubscriptionContext.hpp:106:5: error: function 'apiSubversion' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/etl/impl/Extraction.cpp:21:1: error: included header cstddef is not used directly [misc-include-cleaner,-warnings-as-errors]
|
||||
/__w/clio/clio/src/etl/impl/Extraction.cpp:24:1: error: included header memory is not used directly [misc-include-cleaner,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/Atomic.hpp:79:5: error: function 'value' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/CoroutineGroup.hpp:82:5: error: function 'size' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/CoroutineGroup.hpp:90:5: error: function 'isFull' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/CoroutineGroup.hpp:82:5: error: function 'size' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/CoroutineGroup.hpp:90:5: error: function 'isFull' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/CoroutineGroup.hpp:82:5: error: function 'size' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/CoroutineGroup.hpp:90:5: error: function 'isFull' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/CoroutineGroup.hpp:82:5: error: function 'size' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/CoroutineGroup.hpp:90:5: error: function 'isFull' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/tests/unit/etl/SystemStateTests.cpp:13:1: error: included header memory is not used directly [misc-include-cleaner,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/CoroutineGroup.hpp:82:5: error: function 'size' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/CoroutineGroup.hpp:90:5: error: function 'isFull' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/web/ng/SubscriptionContext.hpp:106:5: error: function 'apiSubversion' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/etl/ETLService.hpp:182:5: error: function 'getInfo' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/etl/ETLService.hpp:185:5: error: function 'isAmendmentBlocked' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/etl/ETLService.hpp:188:5: error: function 'isCorruptionDetected' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/etl/ETLService.hpp:191:5: error: function 'getETLState' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/etl/ETLService.hpp:194:5: error: function 'lastCloseAgeSeconds' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:122:5: error: function 'isTooBusy' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:498:5: error: function 'stats' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:539:5: error: function 'canAddWriteRequest' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:545:5: error: function 'finishedAllWriteRequests' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/cluster/Backend.hpp:122:5: error: function 'selfId' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/tests/unit/etl/AmendmentBlockHandlerTests.cpp:11:1: error: included header cstddef is not used directly [misc-include-cleaner,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:122:5: error: function 'isTooBusy' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:498:5: error: function 'stats' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:539:5: error: function 'canAddWriteRequest' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:545:5: error: function 'finishedAllWriteRequests' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/cluster/Backend.hpp:122:5: error: function 'selfId' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:122:5: error: function 'isTooBusy' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:498:5: error: function 'stats' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:539:5: error: function 'canAddWriteRequest' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:545:5: error: function 'finishedAllWriteRequests' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/CoroutineGroup.hpp:82:5: error: function 'size' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/CoroutineGroup.hpp:90:5: error: function 'isFull' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/cluster/Backend.hpp:122:5: error: function 'selfId' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/CoroutineGroup.hpp:82:5: error: function 'size' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/CoroutineGroup.hpp:90:5: error: function 'isFull' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/tests/unit/cluster/ClioNodeTests.cpp:18:1: error: included header ctime is not used directly [misc-include-cleaner,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/Atomic.hpp:79:5: error: function 'value' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:122:5: error: function 'isTooBusy' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:498:5: error: function 'stats' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:539:5: error: function 'canAddWriteRequest' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:545:5: error: function 'finishedAllWriteRequests' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/web/SubscriptionContext.hpp:77:5: error: function 'apiSubversion' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/Coroutine.cpp:10:1: error: included header cstddef is not used directly [misc-include-cleaner,-warnings-as-errors]
|
||||
/__w/clio/clio/src/etl/ETLService.hpp:182:5: error: function 'getInfo' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/etl/ETLService.hpp:185:5: error: function 'isAmendmentBlocked' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/etl/ETLService.hpp:188:5: error: function 'isCorruptionDetected' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/etl/ETLService.hpp:191:5: error: function 'getETLState' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/etl/ETLService.hpp:194:5: error: function 'lastCloseAgeSeconds' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/tests/unit/etl/NetworkValidatedLedgersTests.cpp:9:1: error: included header cstddef is not used directly [misc-include-cleaner,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/web/AdminVerificationStrategy.cpp:9:1: error: included header cstring is not used directly [misc-include-cleaner,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/web/SubscriptionContext.hpp:77:5: error: function 'apiSubversion' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/tests/unit/web/ServerTests.cpp:715:5: error: variable 'cache' of type 'MockLedgerCache' can be declared 'const' [misc-const-correctness,-warnings-as-errors]
|
||||
/__w/clio/clio/tests/unit/web/ServerTests.cpp:739:5: error: variable 'cache' of type 'MockLedgerCache' can be declared 'const' [misc-const-correctness,-warnings-as-errors]
|
||||
/__w/clio/clio/tests/unit/feed/ForwardFeedTests.cpp:10:1: error: included header memory is not used directly [misc-include-cleaner,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:122:5: error: function 'isTooBusy' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:498:5: error: function 'stats' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:539:5: error: function 'canAddWriteRequest' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:545:5: error: function 'finishedAllWriteRequests' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:122:5: error: function 'isTooBusy' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:498:5: error: function 'stats' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:539:5: error: function 'canAddWriteRequest' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:545:5: error: function 'finishedAllWriteRequests' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/cluster/Backend.hpp:122:5: error: function 'selfId' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:122:5: error: function 'isTooBusy' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:498:5: error: function 'stats' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:539:5: error: function 'canAddWriteRequest' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:545:5: error: function 'finishedAllWriteRequests' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/etl/ETLService.hpp:182:5: error: function 'getInfo' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/etl/ETLService.hpp:185:5: error: function 'isAmendmentBlocked' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/etl/ETLService.hpp:188:5: error: function 'isCorruptionDetected' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/etl/ETLService.hpp:191:5: error: function 'getETLState' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/etl/ETLService.hpp:194:5: error: function 'lastCloseAgeSeconds' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/CoroutineGroup.hpp:82:5: error: function 'size' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/util/CoroutineGroup.hpp:90:5: error: function 'isFull' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/web/SubscriptionContext.hpp:77:5: error: function 'apiSubversion' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:122:5: error: function 'isTooBusy' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:498:5: error: function 'stats' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:539:5: error: function 'canAddWriteRequest' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/data/cassandra/impl/ExecutionStrategy.hpp:545:5: error: function 'finishedAllWriteRequests' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
/__w/clio/clio/src/rpc/common/Modifiers.hpp:112:20: error: use 'contains' to check for membership [readability-container-contains,-warnings-as-errors]
|
||||
```
|
||||
|
||||
---
|
||||
*This issue was automatically created by the clang-tidy workflow.*
|
||||
1229
clang-tidy-output.txt
Normal file
1229
clang-tidy-output.txt
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
||||
services:
|
||||
clio_develop:
|
||||
image: ghcr.io/xrplf/xrpld/nix-ubuntu:sha-cb2642b
|
||||
image: ghcr.io/xrplf/xrpld/nix-ubuntu:sha-7b9d553
|
||||
volumes:
|
||||
- clio_develop_conan_data:/root/.conan2/p
|
||||
- clio_develop_ccache:/root/.ccache
|
||||
|
||||
@@ -175,7 +175,7 @@ Open the `index.html` file in your browser to see the documentation pages.
|
||||
It is also possible to build Clio using [Docker](https://www.docker.com/) if you don't want to install all the dependencies on your machine.
|
||||
|
||||
```sh
|
||||
docker run -it ghcr.io/xrplf/xrpld/nix-ubuntu:sha-cb2642b
|
||||
docker run -it ghcr.io/xrplf/xrpld/nix-ubuntu:sha-7b9d553
|
||||
git clone https://github.com/XRPLF/clio
|
||||
cd clio
|
||||
```
|
||||
|
||||
@@ -223,7 +223,7 @@ BackendInterface::fetchBookOffers(
|
||||
<< " blob = " << ripple::strHex(objs[i])
|
||||
<< " ledgerSequence = " << ledgerSequence;
|
||||
ASSERT(!objs[i].empty(), "Ledger object can't be empty");
|
||||
page.offers.push_back({.key = keys[i], .blob = objs[i]});
|
||||
page.offers.push_back({.key=keys[i], .blob=objs[i]});
|
||||
}
|
||||
auto end = std::chrono::system_clock::now();
|
||||
LOG(log_.debug()) << "Fetching " << std::to_string(keys.size()) << " offers took "
|
||||
@@ -328,7 +328,7 @@ BackendInterface::fetchLedgerPage(
|
||||
auto objects = fetchLedgerObjects(keys, ledgerSequence, yield);
|
||||
for (size_t i = 0; i < objects.size(); ++i) {
|
||||
if (!objects[i].empty()) {
|
||||
page.objects.push_back({.key = keys[i], .blob = std::move(objects[i])});
|
||||
page.objects.push_back({.key=keys[i], .blob=std::move(objects[i])});
|
||||
} else if (!outOfOrder) {
|
||||
LOG(log_.error()) << "Deleted or non-existent object in successor table. key = "
|
||||
<< ripple::strHex(keys[i]) << " - seq = " << ledgerSequence;
|
||||
|
||||
@@ -91,7 +91,7 @@ LedgerDataHandler::process(Input const& input, Context const& ctx) const
|
||||
for (size_t i = 0; i < objs.size(); ++i) {
|
||||
auto& obj = objs[i];
|
||||
if (!obj.empty())
|
||||
results.push_back({.key = keys[i], .blob = std::move(obj)});
|
||||
results.push_back({.key=keys[i], .blob=std::move(obj)});
|
||||
}
|
||||
|
||||
if (*(input.diffMarker) > lgrInfo.seq)
|
||||
|
||||
@@ -209,11 +209,14 @@ TEST_F(CliArgsTestsWithTmpFile, Parse_ConfigDescriptionFileContent)
|
||||
inFile.close();
|
||||
|
||||
auto const fileContent = buffer.str();
|
||||
EXPECT_TRUE(fileContent.contains("# Clio Config Description"));
|
||||
EXPECT_TRUE(fileContent.contains(
|
||||
"This document provides a list of all available Clio configuration properties in detail."
|
||||
));
|
||||
EXPECT_TRUE(fileContent.contains("## Configuration Details"));
|
||||
EXPECT_TRUE(fileContent.find("# Clio Config Description") != std::string::npos);
|
||||
EXPECT_TRUE(
|
||||
fileContent.find(
|
||||
"This document provides a list of all available Clio configuration properties in "
|
||||
"detail."
|
||||
) != std::string::npos
|
||||
);
|
||||
EXPECT_TRUE(fileContent.find("## Configuration Details") != std::string::npos);
|
||||
|
||||
// all keys that exist in clio config should be listed in config description file
|
||||
for (auto const& key : getClioConfig())
|
||||
|
||||
@@ -472,7 +472,7 @@ TEST_F(BackendCassandraExecutionStrategyTest, StatsCallsCountersReport)
|
||||
{
|
||||
auto strat = makeStrategy();
|
||||
EXPECT_CALL(*counters_, report());
|
||||
[[maybe_unused]] auto _ = strat.stats();
|
||||
strat.stats();
|
||||
}
|
||||
|
||||
TEST_F(BackendCassandraExecutionStrategyTest, WriteEachAndCallSyncSucceeds)
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include <fmt/format.h>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
|
||||
using namespace etl;
|
||||
using namespace util::config;
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include <gmock/gmock.h>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
|
||||
using namespace feed::impl;
|
||||
namespace json = boost::json;
|
||||
using namespace util::prometheus;
|
||||
|
||||
Reference in New Issue
Block a user