Skip to content

Commit d390223

Browse files
committed
reduce cognitive complexity threshold in .clang-tidy and simplify JSON dump in performance
1 parent 44246e4 commit d390223

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

modules/core/performance/tests/.clang-tidy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ Checks: >
3838
3939
CheckOptions:
4040
- key: readability-function-cognitive-complexity.Threshold
41-
value: 70 # default: 25
41+
value: 50 # default: 25

modules/core/performance/tests/perf_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class GetStringTaskTypeTest : public ::testing::TestWithParam<TaskTypeTestCase>
141141
(*j)["tasks"]["tbb"] = "TBB";
142142
(*j)["tasks"]["seq"] = "SEQ";
143143

144-
std::ofstream(temp_path) << (*j).dump();
144+
std::ofstream(temp_path) << j->dump();
145145
}
146146

147147
void TearDown() override { std::filesystem::remove(temp_path); }

0 commit comments

Comments
 (0)