brpc is an Industrial-grade RPC framework using C++ Language, which is often used in high performance system such as Search, Storage, Machine learning, Advertisement, Recommendation etc. "brpc" means "better RPC".
This report summarizes scanner evidence for apache/brpc, a C++ project with 17,628 GitHub stars. SynthScan examined 341,804 lines of code across 1325 source files, recording 2222 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 6.5 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 2213 finding(s).
Are imports declared and package/API names verified? 7 finding(s).
Are wrappers, guards, and repeated structures necessary? 4 finding(s).
Which changes need focused human review? 2222 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 2222 distinct pattern matches across 12 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | CMakeLists.txt | 1 | # Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | config_brpc.sh | 1 | #!/usr/bin/env sh | COMMENT |
| LOW | config_brpc.sh | 681 | fi | COMMENT |
| LOW | .licenserc.yaml | 1 | # Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | CHANGES.md | 1 | <!-- | COMMENT |
| LOW | tools/print_gcc_version.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tools/CMakeLists.txt | 1 | # Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tools/lldb_bthread_stack.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tools/get_brpc_revision.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tools/gdb_bthread_stack.py | 1 | #!/usr/bin/env python | COMMENT |
| LOW | tools/add_syntax_equal_proto2_to_all.sh | 1 | #!/usr/bin/env bash | COMMENT |
| LOW | tools/rpc_replay/CMakeLists.txt | 1 | # Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tools/rpc_replay/info_thread.cpp | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tools/rpc_replay/info_thread.h | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tools/rpc_replay/rpc_replay.cpp | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tools/rpc_replay/rpc_replay.cpp | 21 | #include <butil/time.h> | COMMENT |
| LOW | tools/parallel_http/CMakeLists.txt | 1 | # Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tools/parallel_http/parallel_http.cpp | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tools/trackme_server/CMakeLists.txt | 1 | # Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tools/trackme_server/trackme_server.cpp | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tools/rpc_press/pb_util.cpp | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tools/rpc_press/CMakeLists.txt | 1 | # Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tools/rpc_press/pb_util.h | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tools/rpc_press/json_loader.cpp | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tools/rpc_press/client.py | 1 | # Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tools/rpc_press/rpc_press_impl.cpp | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tools/rpc_press/rpc_press_impl.cpp | 21 | #include <sys/time.h> | COMMENT |
| LOW | tools/rpc_press/info_thread.cpp | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tools/rpc_press/rpc_press.cpp | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tools/rpc_press/json_loader.h | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tools/rpc_press/rpc_press_impl.h | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tools/rpc_press/info_thread.h | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tools/rpc_view/rpc_view.cpp | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | tools/rpc_view/CMakeLists.txt | 1 | # Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | test/bvar_mvariable_unittest.cpp | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | test/bvar_mvariable_unittest.cpp | 21 | #include <string_view> | COMMENT |
| LOW | test/brpc_http_message_unittest.cpp | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | test/brpc_channel_unittest.cpp | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | test/brpc_channel_unittest.cpp | 21 | COMMENT | |
| LOW | test/bthread_setconcurrency_unittest.cpp | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | test/bvar_multi_dimension_unittest.cpp | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | test/bvar_multi_dimension_unittest.cpp | 21 | #include <cstddef> | COMMENT |
| LOW | test/bthread_id_unittest.cpp | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | test/baidu_thread_local_unittest.cpp | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | test/bvar_status_unittest.cpp | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | test/brpc_mysql_auth_packet_unittest.cpp | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | test/brpc_http_rpc_protocol_unittest.cpp | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | test/brpc_http_rpc_protocol_unittest.cpp | 21 | COMMENT | |
| LOW | test/brpc_http_rpc_protocol_unittest.cpp | 41 | #include "butil/files/scoped_file.h" | COMMENT |
| LOW | test/bvar_lock_timer_unittest.cpp | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | test/brpc_load_balancer_unittest.cpp | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | test/brpc_load_balancer_unittest.cpp | 21 | COMMENT | |
| LOW | test/brpc_load_balancer_unittest.cpp | 1421 | // Regression for #3268's incomplete migration of LocalityAwareLoadBalancer. | COMMENT |
| LOW | test/brpc_load_balancer_unittest.cpp | 1441 | // `lb=la` and 2 backends occasionally fail RPCs with `EHOSTDOWN` | COMMENT |
| LOW | test/CMakeLists.txt | 1 | # Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | test/brpc_mcpack2pb_unittest.cpp | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | test/string_splitter_unittest.cpp | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | test/brpc_hulu_pbrpc_protocol_unittest.cpp | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| LOW | test/brpc_hulu_pbrpc_protocol_unittest.cpp | 21 | COMMENT | |
| LOW | test/brpc_snappy_compress_unittest.cpp | 1 | // Licensed to the Apache Software Foundation (ASF) under one | COMMENT |
| 2105 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/multiprocess_func_list.h | 20 | // Example usage: | COMMENT |
| LOW | community/skills/brpc-release/scripts/bump_version.sh | 22 | # Usage: | COMMENT |
| LOW | community/skills/brpc-release/scripts/make_package.sh | 23 | # Usage: | COMMENT |
| LOW | community/skills/brpc-release/scripts/release_notes.sh | 24 | # Usage: | COMMENT |
| LOW | community/skills/brpc-release/scripts/verify_package.sh | 23 | # Usage: | COMMENT |
| LOW | src/brpc/versioned_ref_with_id.h | 185 | // Example usage: | COMMENT |
| LOW | src/butil/lazy_instance.h | 26 | // Example usage: | COMMENT |
| LOW | src/butil/gtest_prod_util.h | 33 | // Example usage: | COMMENT |
| LOW | src/butil/gtest_prod_util.h | 63 | // Example usage: | COMMENT |
| LOW | src/butil/compiler_specific.h | 47 | // Example usage: | COMMENT |
| LOW | src/butil/memory/singleton.h | 166 | // Example usage: | COMMENT |
| LOW | src/butil/mac/foundation_util.h | 251 | // Example usage: | COMMENT |
| LOW | src/butil/mac/foundation_util.h | 312 | // Example usage: | COMMENT |
| LOW | src/butil/threading/thread_local.h | 32 | // Example usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | community/skills/brpc-release/scripts/release_notes.sh | 110 | # avoids one request per commit and remains robust when a subject contains an | COMMENT |
| MEDIUM | src/brpc/span.h | 189 | // However, returning by value is more robust: it prevents potential data races if | COMMENT |
| LOW | src/brpc/builtin/pprof_perl.cpp | 1210 | "# names. You show the name the first time, and just use its number\n" | CODE |
| LOW | src/brpc/builtin/pprof_perl.cpp | 3642 | " # Since we know one of the pair is 0, it's fine to just add them.\n" | CODE |
| LOW | src/brpc/builtin/pprof_perl.cpp | 4264 | "# If all else fails, just return the name of the library unmodified.\n" | CODE |
| LOW | src/brpc/builtin/pprof_perl.cpp | 4753 | " # If \"addr2line\" isn't installed on the system at all, just use\n" | CODE |
| LOW | src/brpc/builtin/pprof_perl.cpp | 4885 | " # No symbols: just use addresses\n" | CODE |
| MEDIUM | src/butil/safe_strerror_posix.h | 34 | // more robust in the case of heap corruption errors, since it doesn't need to | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | example/dynamic_partition_echo_c++/server.cpp | 162 | // Don't forget to stop and join the server otherwise still-running | COMMENT |
| LOW | example/selective_echo_c++/server.cpp | 161 | // Don't forget to stop and join the server otherwise still-running | COMMENT |
| LOW | example/multi_threaded_echo_fns_c++/server.cpp | 177 | // Don't forget to stop and join the server otherwise still-running | COMMENT |
| LOW | example/partition_echo_c++/server.cpp | 162 | // Don't forget to stop and join the server otherwise still-running | COMMENT |
| LOW | src/bthread/task_group.cpp | 192 | // Don't forget to add elapse of last wait_task. | COMMENT |
| LOW | src/brpc/parallel_channel.cpp | 315 | // NOTE: Don't forget to set "nfailed = _ndone" when the _cntl is set | COMMENT |
| LOW | src/brpc/health_reporter.h | 35 | // Don't forget to call done->Run() at the end. | COMMENT |
| LOW | src/brpc/controller.cpp | 1491 | // Don't forget to signal waiters on authentication | COMMENT |
| LOW | src/brpc/http_header.cpp | 34 | // NOTE: don't forget to clear the field in Clear() as well. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/bthread/rwlock.cpp | 235 | // Step 1: announce ourselves before doing anything else, so that | COMMENT |
| LOW | src/bthread/rwlock.cpp | 251 | // Step 2: serialize with other writers. At most one writer holds | COMMENT |
| LOW | src/bthread/rwlock.cpp | 275 | // Step 3: with `writer_queue_mutex' held, wait for all readers to drain | COMMENT |
| LOW | src/bthread/butex.cpp | 518 | // NOTE: This function must be no-op when bw->container is nullptr. | COMMENT |
| LOW | src/bthread/unstable.h | 76 | // NOTE: This function does not wake up pthread waiters.(tested on linux 2.6.32) | COMMENT |
| LOW | src/brpc/uri.h | 87 | // NOTE: This method is not thread-safe because it may re-generate the | COMMENT |
| LOW | src/butil/endpoint.h | 76 | // NOTE: This function caches result on first call. | COMMENT |
| LOW | src/butil/endpoint.h | 80 | // NOTE: This function caches result on first call. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/iobuf_unittest.cpp | 1175 | void* dummy_data = nullptr; | CODE |
| LOW | test/iobuf_unittest.cpp | 1177 | ASSERT_TRUE(dummy_stream.Next(&dummy_data, &dummy_size)); | CODE |
| LOW | example/couchbase_c++/couchbase_client.cpp | 34 | R"({"name": "John Doe", "age": 30, "email": "john@example.com"})"; | CODE |
| LOW | example/couchbase_c++/couchbase_client.cpp | 121 | R"({"name": "Jane Doe", "age": 28, "email": "jane.doe@example.com"})"; | CODE |
| LOW | …le/couchbase_c++/traditional_brpc_couchbase_client.cpp | 93 | R"({"name": "John Doe", "age": 30, "email": "john@example.com"})", | CODE |
| LOW | docs/en/couchbase_example.md | 328 | R"({"name": "John Doe", "age": 30, "email": "john@example.com"})", // value | CODE |
| LOW | docs/en/couchbase_example.md | 519 | std::string add_value = R"({"name": "John Doe", "age": 30, "email": "john@example.com"})"; | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tools/gdb_bthread_stack.py | 173 | except Exception as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/bthread/rwlock.cpp | 235 | // Step 1: announce ourselves before doing anything else, so that | COMMENT |
| LOW | src/bthread/rwlock.cpp | 251 | // Step 2: serialize with other writers. At most one writer holds | COMMENT |
| LOW | src/bthread/rwlock.cpp | 275 | // Step 3: with `writer_queue_mutex' held, wait for all readers to drain | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/lldb_bthread_stack.py | 128 | CODE | |
| LOW | tools/gdb_bthread_stack.py | 73 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/brpc/builtin/pprof_perl.cpp | 3753 | " # Check if the file contains a symbol-section marker.\n" | CODE |
| LOW | src/brpc/builtin/pprof_perl.cpp | 5178 | " # Verify if addr2line can find the $sep_symbol. If not, we use objdump\n" | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/brpc/builtin/flot_min_js.cpp | 46 | return "(function($){$.color={};$.color.make=function(r,g,b,a){var o={};o.r=r||0;o.g=g||0;o.b=b||0;o.a=a!=null?a:1;o | CODE |
| LOW | src/brpc/builtin/flot_min_js.cpp | 46 | return "(function($){$.color={};$.color.make=function(r,g,b,a){var o={};o.r=r||0;o.g=g||0;o.b=b||0;o.a=a!=null?a:1;o | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/gdb_bthread_stack.py | 173 | except Exception as e: | CODE |