this derivation will be built: /nix/store/xwmaqc2xpasmvlmy0sp4nz013ashnjas-nix-grpc-store-clang-tidy-0.1.0.drv building '/nix/store/xwmaqc2xpasmvlmy0sp4nz013ashnjas-nix-grpc-store-clang-tidy-0.1.0.drv' on 'ssh-ng://customer@mac02' building '/nix/store/xwmaqc2xpasmvlmy0sp4nz013ashnjas-nix-grpc-store-clang-tidy-0.1.0.drv' nix-grpc-store-clang-tidy-0.1.0> Running phase: unpackPhase nix-grpc-store-clang-tidy-0.1.0> unpacking source archive /nix/store/9qh8znjwdkxlbjqw9hrqkylvbc1qn4mh-source nix-grpc-store-clang-tidy-0.1.0> source root is source nix-grpc-store-clang-tidy-0.1.0> Running phase: patchPhase nix-grpc-store-clang-tidy-0.1.0> Running phase: updateAutotoolsGnuConfigScriptsPhase nix-grpc-store-clang-tidy-0.1.0> Running phase: configurePhase nix-grpc-store-clang-tidy-0.1.0> mesonConfigurePhase flags: --prefix=/nix/store/86wfh8c947ihv9lg91m9mnf84ybpsq1c-nix-grpc-store-clang-tidy-0.1.0 --libdir=/nix/store/86wfh8c947ihv9lg91m9mnf84ybpsq1c-nix-grpc-store-clang-tidy-0.1.0/lib --libexecdir=/nix/store/86wfh8c947ihv9lg91m9mnf84ybpsq1c-nix-grpc-store-clang-tidy-0.1.0/libexec --bindir=/nix/store/86wfh8c947ihv9lg91m9mnf84ybpsq1c-nix-grpc-store-clang-tidy-0.1.0/bin --sbindir=/nix/store/86wfh8c947ihv9lg91m9mnf84ybpsq1c-nix-grpc-store-clang-tidy-0.1.0/sbin --includedir=/nix/store/86wfh8c947ihv9lg91m9mnf84ybpsq1c-nix-grpc-store-clang-tidy-0.1.0/include --mandir=/nix/store/86wfh8c947ihv9lg91m9mnf84ybpsq1c-nix-grpc-store-clang-tidy-0.1.0/share/man --infodir=/nix/store/86wfh8c947ihv9lg91m9mnf84ybpsq1c-nix-grpc-store-clang-tidy-0.1.0/share/info --localedir=/nix/store/86wfh8c947ihv9lg91m9mnf84ybpsq1c-nix-grpc-store-clang-tidy-0.1.0/share/locale -Dauto_features=enabled -Dwrap_mode=nodownload --buildtype=plain nix-grpc-store-clang-tidy-0.1.0> The Meson build system nix-grpc-store-clang-tidy-0.1.0> Version: 1.10.2 nix-grpc-store-clang-tidy-0.1.0> Source dir: /nix/var/nix/builds/nix-74558-3314372736/source nix-grpc-store-clang-tidy-0.1.0> Build dir: /nix/var/nix/builds/nix-74558-3314372736/source/build nix-grpc-store-clang-tidy-0.1.0> Build type: native build nix-grpc-store-clang-tidy-0.1.0> WARNING: Project does not target a minimum version but uses feature introduced in '1.1': meson.options file. Use meson_options.txt instead nix-grpc-store-clang-tidy-0.1.0> Project name: nix-grpc-store nix-grpc-store-clang-tidy-0.1.0> Project version: 0.1.0 nix-grpc-store-clang-tidy-0.1.0> C++ compiler for the host machine: clang++ (clang 21.1.8 "clang version 21.1.8") nix-grpc-store-clang-tidy-0.1.0> C++ linker for the host machine: clang++ ld64 956.6 nix-grpc-store-clang-tidy-0.1.0> Host machine cpu family: aarch64 nix-grpc-store-clang-tidy-0.1.0> Host machine cpu: aarch64 nix-grpc-store-clang-tidy-0.1.0> Found pkg-config: YES (/nix/store/y3kq99w9rf07m43pggj5g596yy1qkvps-pkg-config-wrapper-0.29.2/bin/pkg-config) 0.29.2 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency grpc++ found: YES 1.83.0 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency protobuf found: YES 35.1.0 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency libzstd found: YES 1.5.7 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency threads found: YES nix-grpc-store-clang-tidy-0.1.0> Run-time dependency libcrypto found: YES 3.6.3 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency prometheus-cpp-core found: YES 1.3.0 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency prometheus-cpp-pull found: YES 1.3.0 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency nix-store found: YES 2.36.0pre20260901_72385de1+1 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency nix-util found: YES 2.36.0pre20260901_72385de1+1 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency libcurl found: YES 8.21.0 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency nlohmann_json found: YES 3.12.0 nix-grpc-store-clang-tidy-0.1.0> Program protoc found: YES (/nix/store/wylvda2p4ab62dzzsgppbclpmh4j2f8r-protobuf-35.1/bin/protoc) nix-grpc-store-clang-tidy-0.1.0> Program grpc_cpp_plugin found: YES (/nix/store/y1545dr7vy81bimhbk824p01rvzvj987-grpc-1.83.0/bin/grpc_cpp_plugin) nix-grpc-store-clang-tidy-0.1.0> Run-time dependency dl found: YES nix-grpc-store-clang-tidy-0.1.0> Program tests/farm-client-test.sh found: YES (/nix/var/nix/builds/nix-74558-3314372736/source/tests/farm-client-test.sh) nix-grpc-store-clang-tidy-0.1.0> Program tests/oidc-test.sh found: YES (/nix/var/nix/builds/nix-74558-3314372736/source/tests/oidc-test.sh) nix-grpc-store-clang-tidy-0.1.0> Build targets in project: 7 nix-grpc-store-clang-tidy-0.1.0> WARNING: Project specifies no minimum version but uses features which were added in versions: nix-grpc-store-clang-tidy-0.1.0> * 1.1: {'meson.options file'} nix-grpc-store-clang-tidy-0.1.0> nix-grpc-store-clang-tidy-0.1.0> nix-grpc-store 0.1.0 nix-grpc-store-clang-tidy-0.1.0> nix-grpc-store-clang-tidy-0.1.0> User defined options nix-grpc-store-clang-tidy-0.1.0> auto_features: enabled nix-grpc-store-clang-tidy-0.1.0> bindir : /nix/store/86wfh8c947ihv9lg91m9mnf84ybpsq1c-nix-grpc-store-clang-tidy-0.1.0/bin nix-grpc-store-clang-tidy-0.1.0> buildtype : plain nix-grpc-store-clang-tidy-0.1.0> includedir : /nix/store/86wfh8c947ihv9lg91m9mnf84ybpsq1c-nix-grpc-store-clang-tidy-0.1.0/include nix-grpc-store-clang-tidy-0.1.0> infodir : /nix/store/86wfh8c947ihv9lg91m9mnf84ybpsq1c-nix-grpc-store-clang-tidy-0.1.0/share/info nix-grpc-store-clang-tidy-0.1.0> libdir : /nix/store/86wfh8c947ihv9lg91m9mnf84ybpsq1c-nix-grpc-store-clang-tidy-0.1.0/lib nix-grpc-store-clang-tidy-0.1.0> libexecdir : /nix/store/86wfh8c947ihv9lg91m9mnf84ybpsq1c-nix-grpc-store-clang-tidy-0.1.0/libexec nix-grpc-store-clang-tidy-0.1.0> localedir : /nix/store/86wfh8c947ihv9lg91m9mnf84ybpsq1c-nix-grpc-store-clang-tidy-0.1.0/share/locale nix-grpc-store-clang-tidy-0.1.0> mandir : /nix/store/86wfh8c947ihv9lg91m9mnf84ybpsq1c-nix-grpc-store-clang-tidy-0.1.0/share/man nix-grpc-store-clang-tidy-0.1.0> prefix : /nix/store/86wfh8c947ihv9lg91m9mnf84ybpsq1c-nix-grpc-store-clang-tidy-0.1.0 nix-grpc-store-clang-tidy-0.1.0> sbindir : /nix/store/86wfh8c947ihv9lg91m9mnf84ybpsq1c-nix-grpc-store-clang-tidy-0.1.0/sbin nix-grpc-store-clang-tidy-0.1.0> wrap_mode : nodownload nix-grpc-store-clang-tidy-0.1.0> nix-grpc-store-clang-tidy-0.1.0> Found ninja-1.13.2 at /nix/store/qqid6lbkgb6ihf048ypbc2na5s97hy1d-ninja-1.13.2/bin/ninja nix-grpc-store-clang-tidy-0.1.0> mesonConfigurePhase: enabled\ parallel\ building nix-grpc-store-clang-tidy-0.1.0> Running phase: buildPhase nix-grpc-store-clang-tidy-0.1.0> [1/1] Generating nix_remote_proto with a custom command nix-grpc-store-clang-tidy-0.1.0> [0/1] /nix/store/735yy09gy9j1wzwrsd1v1xrgf6izyr5d-meson-1.10.2/bin/meson --internal clangtidy /nix/var/nix/builds/nix-74558-3314372736/source /nix/var/nix/builds/nix-74558-3314372736/source/build --color always nix-grpc-store-clang-tidy-0.1.0> >>> /nix/store/d8f8g6pnqn4rn18ma7341afkdk0hbj07-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /nix/var/nix/builds/nix-74558-3314372736/source/build /nix/var/nix/builds/nix-74558-3314372736/source/tests/xfcc-test.cc nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:23:13: error: function 'subjectCommonName' has cognitive complexity of 48 (threshold 25) [readability-function-cognitive-complexity,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 23 | inline auto subjectCommonName(std::string_view value) -> std::optional nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:26:22: note: nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 26 | auto readValue = [&]() -> std::string { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:28:9: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 28 | if (pos < value.size() && value[pos] == '"') { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:28:32: note: +1 nix-grpc-store-clang-tidy-0.1.0> 28 | if (pos < value.size() && value[pos] == '"') { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:31:13: note: +3, including nesting penalty of 2, nesting level increased to 3 nix-grpc-store-clang-tidy-0.1.0> 31 | while (pos < value.size() && value[pos] != '"') { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:31:39: note: +1 nix-grpc-store-clang-tidy-0.1.0> 31 | while (pos < value.size() && value[pos] != '"') { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:32:17: note: +4, including nesting penalty of 3, nesting level increased to 4 nix-grpc-store-clang-tidy-0.1.0> 32 | if (value[pos] == '\\' && pos + 1 < value.size()) { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:32:40: note: +1 nix-grpc-store-clang-tidy-0.1.0> 32 | if (value[pos] == '\\' && pos + 1 < value.size()) { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:37:13: note: +3, including nesting penalty of 2, nesting level increased to 3 nix-grpc-store-clang-tidy-0.1.0> 37 | if (pos < value.size()) { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:40:11: note: +1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 40 | } else { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:41:13: note: +3, including nesting penalty of 2, nesting level increased to 3 nix-grpc-store-clang-tidy-0.1.0> 41 | while (pos < value.size() && value[pos] != ';' && value[pos] != ',') { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:41:60: note: +1 nix-grpc-store-clang-tidy-0.1.0> 41 | while (pos < value.size() && value[pos] != ';' && value[pos] != ',') { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:47:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 47 | while (pos < value.size()) { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:49:9: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 49 | if (eq == std::string_view::npos) { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:55:9: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 55 | if (key == "Subject") { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:59:13: note: +3, including nesting penalty of 2, nesting level increased to 3 nix-grpc-store-clang-tidy-0.1.0> 59 | while (at < dn.size()) { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:62:17: note: +4, including nesting penalty of 3, nesting level increased to 4 nix-grpc-store-clang-tidy-0.1.0> 62 | while (next < dn.size() && dn[next] != ',' && dn[next] != '/') { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:62:60: note: +1 nix-grpc-store-clang-tidy-0.1.0> 62 | while (next < dn.size() && dn[next] != ',' && dn[next] != '/') { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:63:21: note: +5, including nesting penalty of 4, nesting level increased to 5 nix-grpc-store-clang-tidy-0.1.0> 63 | if (dn[next] == '\\' && next + 1 < dn.size()) { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:63:42: note: +1 nix-grpc-store-clang-tidy-0.1.0> 63 | if (dn[next] == '\\' && next + 1 < dn.size()) { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:69:17: note: +4, including nesting penalty of 3, nesting level increased to 4 nix-grpc-store-clang-tidy-0.1.0> 69 | if (view.starts_with("CN=")) { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:76:9: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 76 | if (pos < value.size() && value[pos] == ',') { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:76:32: note: +1 nix-grpc-store-clang-tidy-0.1.0> 76 | if (pos < value.size() && value[pos] == ',') { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:79:9: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 79 | if (pos < value.size()) { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:28:40: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 28 | if (pos < value.size() && value[pos] == '"') { nix-grpc-store-clang-tidy-0.1.0> | ^~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:31:47: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 31 | while (pos < value.size() && value[pos] != '"') { nix-grpc-store-clang-tidy-0.1.0> | ^~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:32:26: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 32 | if (value[pos] == '\\' && pos + 1 < value.size()) { nix-grpc-store-clang-tidy-0.1.0> | ^~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:33:33: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 33 | out += value[pos++]; nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:35:29: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 35 | out += value[pos++]; nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:41:47: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 41 | while (pos < value.size() && value[pos] != ';' && value[pos] != ',') { nix-grpc-store-clang-tidy-0.1.0> | ^~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:41:68: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 41 | while (pos < value.size() && value[pos] != ';' && value[pos] != ',') { nix-grpc-store-clang-tidy-0.1.0> | ^~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:42:29: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 42 | out += value[pos++]; nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:48:14: error: variable name 'eq' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 48 | auto eq = value.find('=', pos); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:57:13: error: variable 'dn' of type 'std::string_view' (aka 'basic_string_view') can be declared 'const' [misc-const-correctness,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 57 | std::string_view dn = val; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | const nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:57:30: error: variable name 'dn' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 57 | std::string_view dn = val; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:58:20: error: variable name 'at' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 58 | size_t at = 0; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:62:46: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 62 | while (next < dn.size() && dn[next] != ',' && dn[next] != '/') { nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:62:65: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 62 | while (next < dn.size() && dn[next] != ',' && dn[next] != '/') { nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:63:27: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 63 | if (dn[next] == '\\' && next + 1 < dn.size()) { nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:66:31: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 66 | attr += dn[next++]; nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:76:40: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 76 | if (pos < value.size() && value[pos] == ',') { nix-grpc-store-clang-tidy-0.1.0> | ^~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:116:9: error: replace loop by 'std::ranges::any_of()' [readability-use-anyofallof,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 116 | for (const auto & pattern : patterns) { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:10:6: error: an exception may be thrown in function 'main' which should not throw exceptions [bugprone-exception-escape,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 10 | auto main() -> int nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/klydx0x6ay8islhglaxarjg4c6j2m8y3-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/stdexcept:256:3: note: frame #0: unhandled exception of type 'out_of_range' may be thrown in function '__throw_out_of_range' here nix-grpc-store-clang-tidy-0.1.0> 256 | throw out_of_range(__msg); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/klydx0x6ay8islhglaxarjg4c6j2m8y3-libcxx-21.1.6+apple-sdk-26.5/include/c++/v1/string_view:464:30: note: frame #1: function 'substr' calls function '__throw_out_of_range' here nix-grpc-store-clang-tidy-0.1.0> 464 | return __pos > size() ? (__throw_out_of_range("string_view::substr"), basic_string_view()) nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:52:20: note: frame #2: function 'subjectCommonName' calls function 'substr' here nix-grpc-store-clang-tidy-0.1.0> 52 | auto key = value.substr(pos, eq - pos); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../tests/xfcc-test.cc:14:9: note: frame #3: function 'main' calls function 'subjectCommonName' here nix-grpc-store-clang-tidy-0.1.0> 14 | subjectCommonName(R"(By=spiffe://lb;Hash=abcd;Subject="CN=ci-1,OU=build,O=numtide";URI=spiffe://x)") == "ci-1"); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> >>> /nix/store/d8f8g6pnqn4rn18ma7341afkdk0hbj07-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /nix/var/nix/builds/nix-74558-3314372736/source/build /nix/var/nix/builds/nix-74558-3314372736/source/src/nix-grpc-daemon.cc nix-grpc-store-clang-tidy-0.1.0> Errors encountered while running clang-tidy nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:23:13: error: function 'subjectCommonName' has cognitive complexity of 48 (threshold 25) [readability-function-cognitive-complexity,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 23 | inline auto subjectCommonName(std::string_view value) -> std::optional nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:26:22: note: nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 26 | auto readValue = [&]() -> std::string { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:28:9: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 28 | if (pos < value.size() && value[pos] == '"') { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:28:32: note: +1 nix-grpc-store-clang-tidy-0.1.0> 28 | if (pos < value.size() && value[pos] == '"') { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:31:13: note: +3, including nesting penalty of 2, nesting level increased to 3 nix-grpc-store-clang-tidy-0.1.0> 31 | while (pos < value.size() && value[pos] != '"') { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:31:39: note: +1 nix-grpc-store-clang-tidy-0.1.0> 31 | while (pos < value.size() && value[pos] != '"') { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:32:17: note: +4, including nesting penalty of 3, nesting level increased to 4 nix-grpc-store-clang-tidy-0.1.0> 32 | if (value[pos] == '\\' && pos + 1 < value.size()) { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:32:40: note: +1 nix-grpc-store-clang-tidy-0.1.0> 32 | if (value[pos] == '\\' && pos + 1 < value.size()) { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:37:13: note: +3, including nesting penalty of 2, nesting level increased to 3 nix-grpc-store-clang-tidy-0.1.0> 37 | if (pos < value.size()) { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:40:11: note: +1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 40 | } else { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:41:13: note: +3, including nesting penalty of 2, nesting level increased to 3 nix-grpc-store-clang-tidy-0.1.0> 41 | while (pos < value.size() && value[pos] != ';' && value[pos] != ',') { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:41:60: note: +1 nix-grpc-store-clang-tidy-0.1.0> 41 | while (pos < value.size() && value[pos] != ';' && value[pos] != ',') { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:47:5: note: +1, including nesting penalty of 0, nesting level increased to 1 nix-grpc-store-clang-tidy-0.1.0> 47 | while (pos < value.size()) { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:49:9: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 49 | if (eq == std::string_view::npos) { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:55:9: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 55 | if (key == "Subject") { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:59:13: note: +3, including nesting penalty of 2, nesting level increased to 3 nix-grpc-store-clang-tidy-0.1.0> 59 | while (at < dn.size()) { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:62:17: note: +4, including nesting penalty of 3, nesting level increased to 4 nix-grpc-store-clang-tidy-0.1.0> 62 | while (next < dn.size() && dn[next] != ',' && dn[next] != '/') { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:62:60: note: +1 nix-grpc-store-clang-tidy-0.1.0> 62 | while (next < dn.size() && dn[next] != ',' && dn[next] != '/') { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:63:21: note: +5, including nesting penalty of 4, nesting level increased to 5 nix-grpc-store-clang-tidy-0.1.0> 63 | if (dn[next] == '\\' && next + 1 < dn.size()) { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:63:42: note: +1 nix-grpc-store-clang-tidy-0.1.0> 63 | if (dn[next] == '\\' && next + 1 < dn.size()) { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:69:17: note: +4, including nesting penalty of 3, nesting level increased to 4 nix-grpc-store-clang-tidy-0.1.0> 69 | if (view.starts_with("CN=")) { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:76:9: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 76 | if (pos < value.size() && value[pos] == ',') { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:76:32: note: +1 nix-grpc-store-clang-tidy-0.1.0> 76 | if (pos < value.size() && value[pos] == ',') { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:79:9: note: +2, including nesting penalty of 1, nesting level increased to 2 nix-grpc-store-clang-tidy-0.1.0> 79 | if (pos < value.size()) { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:28:40: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 28 | if (pos < value.size() && value[pos] == '"') { nix-grpc-store-clang-tidy-0.1.0> | ^~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:31:47: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 31 | while (pos < value.size() && value[pos] != '"') { nix-grpc-store-clang-tidy-0.1.0> | ^~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:32:26: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 32 | if (value[pos] == '\\' && pos + 1 < value.size()) { nix-grpc-store-clang-tidy-0.1.0> | ^~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:33:33: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 33 | out += value[pos++]; nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:35:29: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 35 | out += value[pos++]; nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:41:47: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 41 | while (pos < value.size() && value[pos] != ';' && value[pos] != ',') { nix-grpc-store-clang-tidy-0.1.0> | ^~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:41:68: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 41 | while (pos < value.size() && value[pos] != ';' && value[pos] != ',') { nix-grpc-store-clang-tidy-0.1.0> | ^~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:42:29: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 42 | out += value[pos++]; nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:48:14: error: variable name 'eq' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 48 | auto eq = value.find('=', pos); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:57:13: error: variable 'dn' of type 'std::string_view' (aka 'basic_string_view') can be declared 'const' [misc-const-correctness,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 57 | std::string_view dn = val; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | const nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:57:30: error: variable name 'dn' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 57 | std::string_view dn = val; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:58:20: error: variable name 'at' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 58 | size_t at = 0; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:62:46: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 62 | while (next < dn.size() && dn[next] != ',' && dn[next] != '/') { nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:62:65: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 62 | while (next < dn.size() && dn[next] != ',' && dn[next] != '/') { nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:63:27: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 63 | if (dn[next] == '\\' && next + 1 < dn.size()) { nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:66:31: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 66 | attr += dn[next++]; nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:76:40: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 76 | if (pos < value.size() && value[pos] == ',') { nix-grpc-store-clang-tidy-0.1.0> | ^~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/xfcc.hh:116:9: error: replace loop by 'std::ranges::any_of()' [readability-use-anyofallof,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 116 | for (const auto & pattern : patterns) { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> FAILED: [code=1] meson-internal__clang-tidy nix-grpc-store-clang-tidy-0.1.0> /nix/store/735yy09gy9j1wzwrsd1v1xrgf6izyr5d-meson-1.10.2/bin/meson --internal clangtidy /nix/var/nix/builds/nix-74558-3314372736/source /nix/var/nix/builds/nix-74558-3314372736/source/build --color always nix-grpc-store-clang-tidy-0.1.0> ninja: build stopped: subcommand failed. error: build of '/nix/store/xwmaqc2xpasmvlmy0sp4nz013ashnjas-nix-grpc-store-clang-tidy-0.1.0.drv' on 'ssh-ng://customer@mac02' failed: Cannot build '/nix/store/xwmaqc2xpasmvlmy0sp4nz013ashnjas-nix-grpc-store-clang-tidy-0.1.0.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/86wfh8c947ihv9lg91m9mnf84ybpsq1c-nix-grpc-store-clang-tidy-0.1.0 Last 25 log lines: > | ^ > ../src/xfcc.hh:58:20: error: variable name 'at' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors] > 58 | size_t at = 0; > | ^ > ../src/xfcc.hh:62:46: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] > 62 | while (next < dn.size() && dn[next] != ',' && dn[next] != '/') { > | ^~~~~~ > ../src/xfcc.hh:62:65: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] > 62 | while (next < dn.size() && dn[next] != ',' && dn[next] != '/') { > | ^~~~~~ > ../src/xfcc.hh:63:27: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] > 63 | if (dn[next] == '\\' && next + 1 < dn.size()) { > | ^~~~~~ > ../src/xfcc.hh:66:31: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] > 66 | attr += dn[next++]; > | ^~~~~~~~ > ../src/xfcc.hh:76:40: error: possibly unsafe 'operator[]', consider bounds-safe alternatives [cppcoreguidelines-pro-bounds-avoid-unchecked-container-access,-warnings-as-errors] > 76 | if (pos < value.size() && value[pos] == ',') { > | ^~~~~ > ../src/xfcc.hh:116:9: error: replace loop by 'std::ranges::any_of()' [readability-use-anyofallof,-warnings-as-errors] > 116 | for (const auto & pattern : patterns) { > | ^ > FAILED: [code=1] meson-internal__clang-tidy > /nix/store/735yy09gy9j1wzwrsd1v1xrgf6izyr5d-meson-1.10.2/bin/meson --internal clangtidy /nix/var/nix/builds/nix-74558-3314372736/source /nix/var/nix/builds/nix-74558-3314372736/source/build --color always > ninja: build stopped: subcommand failed. For full logs, run: nix log /nix/store/xwmaqc2xpasmvlmy0sp4nz013ashnjas-nix-grpc-store-clang-tidy-0.1.0.drv error: Cannot build '/nix/store/xwmaqc2xpasmvlmy0sp4nz013ashnjas-nix-grpc-store-clang-tidy-0.1.0.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/86wfh8c947ihv9lg91m9mnf84ybpsq1c-nix-grpc-store-clang-tidy-0.1.0