nix-grpc-store-clang-tidy-0.1.0
checks.aarch64-linux.clang-tidy
· build #121
· raw
1tribuchet: building on eliza
unpackPhase
2unpacking source archive /nix/store/9qh8znjwdkxlbjqw9hrqkylvbc1qn4mh-source3source root is sourceconfigurePhase
4mesonConfigurePhase flags: --prefix=/nix/store/3qdks7jfx7ivz31346sdlvwca1mxnsar-nix-grpc-store-clang-tidy-0.1.0 --libdir=/nix/store/3qdks7jfx7ivz31346sdlvwca1mxnsar-nix-grpc-store-clang-tidy-0.1.0/lib --libexecdir=/nix/store/3qdks7jfx7ivz31346sdlvwca1mxnsar-nix-grpc-store-clang-tidy-0.1.0/libexec --bindir=/nix/store/3qdks7jfx7ivz31346sdlvwca1mxnsar-nix-grpc-store-clang-tidy-0.1.0/bin --sbindir=/nix/store/3qdks7jfx7ivz31346sdlvwca1mxnsar-nix-grpc-store-clang-tidy-0.1.0/sbin --includedir=/nix/store/3qdks7jfx7ivz31346sdlvwca1mxnsar-nix-grpc-store-clang-tidy-0.1.0/include --mandir=/nix/store/3qdks7jfx7ivz31346sdlvwca1mxnsar-nix-grpc-store-clang-tidy-0.1.0/share/man --infodir=/nix/store/3qdks7jfx7ivz31346sdlvwca1mxnsar-nix-grpc-store-clang-tidy-0.1.0/share/info --localedir=/nix/store/3qdks7jfx7ivz31346sdlvwca1mxnsar-nix-grpc-store-clang-tidy-0.1.0/share/locale -Dauto_features=enabled -Dwrap_mode=nodownload --buildtype=plain5The Meson build system6Version: 1.10.27Source dir: /build/source8Build dir: /build/source/build9Build type: native build10WARNING: Project does not target a minimum version but uses feature introduced in '1.1': meson.options file. Use meson_options.txt instead11Project name: nix-grpc-store12Project version: 0.1.013C++ compiler for the host machine: g++ (gcc 15.3.0 "g++ (GCC) 15.3.0")14C++ linker for the host machine: g++ ld.bfd 2.4615Host machine cpu family: aarch6416Host machine cpu: aarch6417Found pkg-config: YES (/nix/store/a55gz9mrf0z1ngdmjf83qz8ywdam95fn-pkg-config-wrapper-0.29.2/bin/pkg-config) 0.29.218Run-time dependency grpc++ found: YES 1.83.019Run-time dependency protobuf found: YES 35.1.020Run-time dependency libzstd found: YES 1.5.721Run-time dependency threads found: YES22Run-time dependency libcrypto found: YES 3.6.323Run-time dependency prometheus-cpp-core found: YES 1.3.024Run-time dependency prometheus-cpp-pull found: YES 1.3.025Run-time dependency nix-store found: YES 2.36.0pre20260901_72385de1+126Run-time dependency nix-util found: YES 2.36.0pre20260901_72385de1+127Run-time dependency libcurl found: YES 8.21.028Run-time dependency nlohmann_json found: YES 3.12.029Program protoc found: YES (/nix/store/14zdwpp05sjf7813mcjjzhgl816hjbqj-protobuf-35.1/bin/protoc)30Program grpc_cpp_plugin found: YES (/nix/store/7ry0wb79xmb9yp4v3cssnawdf8gfgpxs-grpc-1.83.0/bin/grpc_cpp_plugin)31Run-time dependency dl found: YES32Program tests/farm-client-test.sh found: YES (/build/source/tests/farm-client-test.sh)33Program tests/oidc-test.sh found: YES (/build/source/tests/oidc-test.sh)34Build targets in project: 735WARNING: Project specifies no minimum version but uses features which were added in versions:36 * 1.1: {'meson.options file'}3738nix-grpc-store 0.1.03940 User defined options41 auto_features: enabled42 bindir : /nix/store/3qdks7jfx7ivz31346sdlvwca1mxnsar-nix-grpc-store-clang-tidy-0.1.0/bin43 buildtype : plain44 includedir : /nix/store/3qdks7jfx7ivz31346sdlvwca1mxnsar-nix-grpc-store-clang-tidy-0.1.0/include45 infodir : /nix/store/3qdks7jfx7ivz31346sdlvwca1mxnsar-nix-grpc-store-clang-tidy-0.1.0/share/info46 libdir : /nix/store/3qdks7jfx7ivz31346sdlvwca1mxnsar-nix-grpc-store-clang-tidy-0.1.0/lib47 libexecdir : /nix/store/3qdks7jfx7ivz31346sdlvwca1mxnsar-nix-grpc-store-clang-tidy-0.1.0/libexec48 localedir : /nix/store/3qdks7jfx7ivz31346sdlvwca1mxnsar-nix-grpc-store-clang-tidy-0.1.0/share/locale49 mandir : /nix/store/3qdks7jfx7ivz31346sdlvwca1mxnsar-nix-grpc-store-clang-tidy-0.1.0/share/man50 prefix : /nix/store/3qdks7jfx7ivz31346sdlvwca1mxnsar-nix-grpc-store-clang-tidy-0.1.051 sbindir : /nix/store/3qdks7jfx7ivz31346sdlvwca1mxnsar-nix-grpc-store-clang-tidy-0.1.0/sbin52 wrap_mode : nodownload5354Found ninja-1.13.2 at /nix/store/zw02qscvl0rihr803vnmgll72qsxrlhx-ninja-1.13.2/bin/ninja55mesonConfigurePhase: enabled\ parallel\ buildingbuildPhase
56[1/1] Generating nix_remote_proto with a custom command57[0/1] /nix/store/4nhp26ss88i238s986fx3jcqcw4si9ly-meson-1.10.2/bin/meson --internal clangtidy /build/source /build/source/build --color always58>>> /nix/store/c33s2mld9r03fv11v9ad7dh5m9g8s1xp-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/tests/xfcc-test.cc59../src/xfcc.hh:23:13: error: function 'subjectCommonName' has cognitive complexity of 48 (threshold 25) [readability-function-cognitive-complexity,-warnings-as-errors]60 23 | inline auto subjectCommonName(std::string_view value) -> std::optional<std::string>61 | ^62../src/xfcc.hh:26:22: note: nesting level increased to 163 26 | auto readValue = [&]() -> std::string {64 | ^65../src/xfcc.hh:28:9: note: +2, including nesting penalty of 1, nesting level increased to 266 28 | if (pos < value.size() && value[pos] == '"') {67 | ^68../src/xfcc.hh:28:32: note: +169 28 | if (pos < value.size() && value[pos] == '"') {70 | ^71../src/xfcc.hh:31:13: note: +3, including nesting penalty of 2, nesting level increased to 372 31 | while (pos < value.size() && value[pos] != '"') {73 | ^74../src/xfcc.hh:31:39: note: +175 31 | while (pos < value.size() && value[pos] != '"') {76 | ^77../src/xfcc.hh:32:17: note: +4, including nesting penalty of 3, nesting level increased to 478 32 | if (value[pos] == '\\' && pos + 1 < value.size()) {79 | ^80../src/xfcc.hh:32:40: note: +181 32 | if (value[pos] == '\\' && pos + 1 < value.size()) {82 | ^83../src/xfcc.hh:37:13: note: +3, including nesting penalty of 2, nesting level increased to 384 37 | if (pos < value.size()) {85 | ^86../src/xfcc.hh:40:11: note: +1, nesting level increased to 287 40 | } else {88 | ^89../src/xfcc.hh:41:13: note: +3, including nesting penalty of 2, nesting level increased to 390 41 | while (pos < value.size() && value[pos] != ';' && value[pos] != ',') {91 | ^92../src/xfcc.hh:41:60: note: +193 41 | while (pos < value.size() && value[pos] != ';' && value[pos] != ',') {94 | ^95../src/xfcc.hh:47:5: note: +1, including nesting penalty of 0, nesting level increased to 196 47 | while (pos < value.size()) {97 | ^98../src/xfcc.hh:49:9: note: +2, including nesting penalty of 1, nesting level increased to 299 49 | if (eq == std::string_view::npos) {100 | ^101../src/xfcc.hh:55:9: note: +2, including nesting penalty of 1, nesting level increased to 2102 55 | if (key == "Subject") {103 | ^104../src/xfcc.hh:59:13: note: +3, including nesting penalty of 2, nesting level increased to 3105 59 | while (at < dn.size()) {106 | ^107../src/xfcc.hh:62:17: note: +4, including nesting penalty of 3, nesting level increased to 4108 62 | while (next < dn.size() && dn[next] != ',' && dn[next] != '/') {109 | ^110../src/xfcc.hh:62:60: note: +1111 62 | while (next < dn.size() && dn[next] != ',' && dn[next] != '/') {112 | ^113../src/xfcc.hh:63:21: note: +5, including nesting penalty of 4, nesting level increased to 5114 63 | if (dn[next] == '\\' && next + 1 < dn.size()) {115 | ^116../src/xfcc.hh:63:42: note: +1117 63 | if (dn[next] == '\\' && next + 1 < dn.size()) {118 | ^119../src/xfcc.hh:69:17: note: +4, including nesting penalty of 3, nesting level increased to 4120 69 | if (view.starts_with("CN=")) {121 | ^122../src/xfcc.hh:76:9: note: +2, including nesting penalty of 1, nesting level increased to 2123 76 | if (pos < value.size() && value[pos] == ',') {124 | ^125../src/xfcc.hh:76:32: note: +1126 76 | if (pos < value.size() && value[pos] == ',') {127 | ^128../src/xfcc.hh:79:9: note: +2, including nesting penalty of 1, nesting level increased to 2129 79 | if (pos < value.size()) {130 | ^131../src/xfcc.hh:28:40: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]132 28 | if (pos < value.size() && value[pos] == '"') {133 | ^~~~~134../src/xfcc.hh:31:47: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]135 31 | while (pos < value.size() && value[pos] != '"') {136 | ^~~~~137../src/xfcc.hh:32:26: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]138 32 | if (value[pos] == '\\' && pos + 1 < value.size()) {139 | ^~~~~140../src/xfcc.hh:33:33: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]141 33 | out += value[pos++];142 | ^~~~~~~143../src/xfcc.hh:35:29: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]144 35 | out += value[pos++];145 | ^~~~~~~146../src/xfcc.hh:41:47: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]147 41 | while (pos < value.size() && value[pos] != ';' && value[pos] != ',') {148 | ^~~~~149../src/xfcc.hh:41:68: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]150 41 | while (pos < value.size() && value[pos] != ';' && value[pos] != ',') {151 | ^~~~~152../src/xfcc.hh:42:29: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]153 42 | out += value[pos++];154 | ^~~~~~~155../src/xfcc.hh:48:14: error: variable name 'eq' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]156 48 | auto eq = value.find('=', pos);157 | ^158../src/xfcc.hh:57:13: error: variable 'dn' of type 'std::string_view' (aka 'basic_string_view<char>') can be declared 'const' [misc-const-correctness,-warnings-as-errors]159 57 | std::string_view dn = val;160 | ^161 | const 162../src/xfcc.hh:57:30: error: variable name 'dn' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]163 57 | std::string_view dn = val;164 | ^165../src/xfcc.hh:58:20: error: variable name 'at' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]166 58 | size_t at = 0;167 | ^168../src/xfcc.hh:62:46: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]169 62 | while (next < dn.size() && dn[next] != ',' && dn[next] != '/') {170 | ^~~~~~171../src/xfcc.hh:62:65: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]172 62 | while (next < dn.size() && dn[next] != ',' && dn[next] != '/') {173 | ^~~~~~174../src/xfcc.hh:63:27: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]175 63 | if (dn[next] == '\\' && next + 1 < dn.size()) {176 | ^~~~~~177../src/xfcc.hh:66:31: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]178 66 | attr += dn[next++];179 | ^~~~~~~~180../src/xfcc.hh:76:40: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]181 76 | if (pos < value.size() && value[pos] == ',') {182 | ^~~~~183../src/xfcc.hh:116:9: error: replace loop by 'std::ranges::any_of()' [readability-use-anyofallof,-warnings-as-errors]184 116 | for (const auto & pattern : patterns) {185 | ^186>>> /nix/store/c33s2mld9r03fv11v9ad7dh5m9g8s1xp-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/nix-grpc-daemon.cc187Errors encountered while running clang-tidy188../src/xfcc.hh:23:13: error: function 'subjectCommonName' has cognitive complexity of 48 (threshold 25) [readability-function-cognitive-complexity,-warnings-as-errors]189 23 | inline auto subjectCommonName(std::string_view value) -> std::optional<std::string>190 | ^191../src/xfcc.hh:26:22: note: nesting level increased to 1192 26 | auto readValue = [&]() -> std::string {193 | ^194../src/xfcc.hh:28:9: note: +2, including nesting penalty of 1, nesting level increased to 2195 28 | if (pos < value.size() && value[pos] == '"') {196 | ^197../src/xfcc.hh:28:32: note: +1198 28 | if (pos < value.size() && value[pos] == '"') {199 | ^200../src/xfcc.hh:31:13: note: +3, including nesting penalty of 2, nesting level increased to 3201 31 | while (pos < value.size() && value[pos] != '"') {202 | ^203../src/xfcc.hh:31:39: note: +1204 31 | while (pos < value.size() && value[pos] != '"') {205 | ^206../src/xfcc.hh:32:17: note: +4, including nesting penalty of 3, nesting level increased to 4207 32 | if (value[pos] == '\\' && pos + 1 < value.size()) {208 | ^209../src/xfcc.hh:32:40: note: +1210 32 | if (value[pos] == '\\' && pos + 1 < value.size()) {211 | ^212../src/xfcc.hh:37:13: note: +3, including nesting penalty of 2, nesting level increased to 3213 37 | if (pos < value.size()) {214 | ^215../src/xfcc.hh:40:11: note: +1, nesting level increased to 2216 40 | } else {217 | ^218../src/xfcc.hh:41:13: note: +3, including nesting penalty of 2, nesting level increased to 3219 41 | while (pos < value.size() && value[pos] != ';' && value[pos] != ',') {220 | ^221../src/xfcc.hh:41:60: note: +1222 41 | while (pos < value.size() && value[pos] != ';' && value[pos] != ',') {223 | ^224../src/xfcc.hh:47:5: note: +1, including nesting penalty of 0, nesting level increased to 1225 47 | while (pos < value.size()) {226 | ^227../src/xfcc.hh:49:9: note: +2, including nesting penalty of 1, nesting level increased to 2228 49 | if (eq == std::string_view::npos) {229 | ^230../src/xfcc.hh:55:9: note: +2, including nesting penalty of 1, nesting level increased to 2231 55 | if (key == "Subject") {232 | ^233../src/xfcc.hh:59:13: note: +3, including nesting penalty of 2, nesting level increased to 3234 59 | while (at < dn.size()) {235 | ^236../src/xfcc.hh:62:17: note: +4, including nesting penalty of 3, nesting level increased to 4237 62 | while (next < dn.size() && dn[next] != ',' && dn[next] != '/') {238 | ^239../src/xfcc.hh:62:60: note: +1240 62 | while (next < dn.size() && dn[next] != ',' && dn[next] != '/') {241 | ^242../src/xfcc.hh:63:21: note: +5, including nesting penalty of 4, nesting level increased to 5243 63 | if (dn[next] == '\\' && next + 1 < dn.size()) {244 | ^245../src/xfcc.hh:63:42: note: +1246 63 | if (dn[next] == '\\' && next + 1 < dn.size()) {247 | ^248../src/xfcc.hh:69:17: note: +4, including nesting penalty of 3, nesting level increased to 4249 69 | if (view.starts_with("CN=")) {250 | ^251../src/xfcc.hh:76:9: note: +2, including nesting penalty of 1, nesting level increased to 2252 76 | if (pos < value.size() && value[pos] == ',') {253 | ^254../src/xfcc.hh:76:32: note: +1255 76 | if (pos < value.size() && value[pos] == ',') {256 | ^257../src/xfcc.hh:79:9: note: +2, including nesting penalty of 1, nesting level increased to 2258 79 | if (pos < value.size()) {259 | ^260../src/xfcc.hh:28:40: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]261 28 | if (pos < value.size() && value[pos] == '"') {262 | ^~~~~263../src/xfcc.hh:31:47: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]264 31 | while (pos < value.size() && value[pos] != '"') {265 | ^~~~~266../src/xfcc.hh:32:26: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]267 32 | if (value[pos] == '\\' && pos + 1 < value.size()) {268 | ^~~~~269../src/xfcc.hh:33:33: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]270 33 | out += value[pos++];271 | ^~~~~~~272../src/xfcc.hh:35:29: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]273 35 | out += value[pos++];274 | ^~~~~~~275../src/xfcc.hh:41:47: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]276 41 | while (pos < value.size() && value[pos] != ';' && value[pos] != ',') {277 | ^~~~~278../src/xfcc.hh:41:68: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]279 41 | while (pos < value.size() && value[pos] != ';' && value[pos] != ',') {280 | ^~~~~281../src/xfcc.hh:42:29: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]282 42 | out += value[pos++];283 | ^~~~~~~284../src/xfcc.hh:48:14: error: variable name 'eq' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]285 48 | auto eq = value.find('=', pos);286 | ^287../src/xfcc.hh:57:13: error: variable 'dn' of type 'std::string_view' (aka 'basic_string_view<char>') can be declared 'const' [misc-const-correctness,-warnings-as-errors]288 57 | std::string_view dn = val;289 | ^290 | const 291../src/xfcc.hh:57:30: error: variable name 'dn' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]292 57 | std::string_view dn = val;293 | ^294../src/xfcc.hh:58:20: error: variable name 'at' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]295 58 | size_t at = 0;296 | ^297../src/xfcc.hh:62:46: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]298 62 | while (next < dn.size() && dn[next] != ',' && dn[next] != '/') {299 | ^~~~~~300../src/xfcc.hh:62:65: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]301 62 | while (next < dn.size() && dn[next] != ',' && dn[next] != '/') {302 | ^~~~~~303../src/xfcc.hh:63:27: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]304 63 | if (dn[next] == '\\' && next + 1 < dn.size()) {305 | ^~~~~~306../src/xfcc.hh:66:31: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]307 66 | attr += dn[next++];308 | ^~~~~~~~309../src/xfcc.hh:76:40: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors]310 76 | if (pos < value.size() && value[pos] == ',') {311 | ^~~~~312../src/xfcc.hh:116:9: error: replace loop by 'std::ranges::any_of()' [readability-use-anyofallof,-warnings-as-errors]313 116 | for (const auto & pattern : patterns) {314 | ^315FAILED: [code=1] meson-internal__clang-tidy 316/nix/store/4nhp26ss88i238s986fx3jcqcw4si9ly-meson-1.10.2/bin/meson --internal clangtidy /build/source /build/source/build --color always317ninja: build stopped: subcommand failed.