Repository Analysis

tigerbeetle/tigerbeetle

The financial transactions database designed for mission critical safety and performance.

2.0 Likely human-written View on GitHub
2.0
Adjusted Score
2.0
Raw Score
100%
Time Factor
2026-05-30
Last Push
16,069
Stars
Zig
Language
75,742
Lines of Code
322
Files
136
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 1MEDIUM 10LOW 125

Pattern Findings

136 matches across 8 categories. Click a row to expand file-level details.

Over-Commented Block84 hits · 70 pts
SeverityFileLineSnippet
LOWdocs/operating/deploying/docker.md61# Note: this example might only work with linux + using `network_mode:host` because of 2 reasons:
LOWsrc/clients/go/tb_client.go1package tigerbeetle_go
LOWsrc/clients/go/native/native.go1// Adds reference to sub-folders containing the external (non-Go) files
LOWsrc/clients/go/native/tb_client.h1 //////////////////////////////////////////////////////////
LOWsrc/clients/rust/tests/status_codes_and_flags.rs1// We are going to try to test the Rust redefinitions of TigerBeetle status
LOWsrc/clients/rust/tests/tests.rs721
LOWsrc/clients/rust/assets/tb_client.h1 //////////////////////////////////////////////////////////
LOWsrc/clients/rust/src/lib.rs1//! The official TigerBeetle client for Rust.
LOWsrc/clients/rust/src/lib.rs21//!
LOWsrc/clients/rust/src/lib.rs41//! tb::Account {
LOWsrc/clients/rust/src/lib.rs61//! credit_account_id: account_id2,
LOWsrc/clients/rust/src/lib.rs81//! # }
LOWsrc/clients/rust/src/lib.rs101//!
LOWsrc/clients/rust/src/lib.rs121//!
LOWsrc/clients/rust/src/lib.rs141//! }
LOWsrc/clients/rust/src/lib.rs161//! State::End => return None,
LOWsrc/clients/rust/src/lib.rs181//! assert_ne!(timestamp_begin_next, 0);
LOWsrc/clients/rust/src/lib.rs201//!
LOWsrc/clients/rust/src/lib.rs221//! its return value.
LOWsrc/clients/rust/src/lib.rs241//!
LOWsrc/clients/rust/src/lib.rs261//!
LOWsrc/clients/rust/src/lib.rs281//! }];
LOWsrc/clients/rust/src/lib.rs301//!
LOWsrc/clients/rust/src/lib.rs361 /// The `addresses` argument is a comma-separated string of addresses, where
LOWsrc/clients/rust/src/lib.rs401 /// [protocol reference](#protocol-reference).
LOWsrc/clients/rust/src/lib.rs421 ///
LOWsrc/clients/rust/src/lib.rs441 /// handle_create_account_success(account, account_result).await?;
LOWsrc/clients/rust/src/lib.rs461 /// ) -> Result<(), Box<dyn std::error::Error>> {
LOWsrc/clients/rust/src/lib.rs521 /// # Interpreting the return value
LOWsrc/clients/rust/src/lib.rs541 ///
LOWsrc/clients/rust/src/lib.rs561 /// Ok(())
LOWsrc/clients/rust/src/lib.rs621 .collect())
LOWsrc/clients/rust/src/lib.rs641 /// # Example
LOWsrc/clients/rust/src/lib.rs661 /// }
LOWsrc/clients/rust/src/lib.rs681 /// #
LOWsrc/clients/rust/src/lib.rs741 /// the future will return [`Err`] of [`PacketStatus::TooMuchData`]. In
LOWsrc/clients/rust/src/lib.rs761 /// let lookup_transfers_results = client.lookup_transfers(transfers)?.await?;
LOWsrc/clients/rust/src/lib.rs781 /// transfers.iter().map(move |&id| match results.peek() {
LOWsrc/clients/rust/src/lib.rs821 }
LOWsrc/clients/rust/src/lib.rs1261/// An account balance at a point in time.
LOWsrc/clients/rust/src/lib.rs1301 ///
LOWsrc/clients/rust/src/lib.rs1421/// See also [`CreateTransferResult`] (note the plural), the type directly
LOWsrc/clients/rust/src/time_based_id.rs1use std::cmp::Ordering;
LOWsrc/clients/rust/src/time_based_id.rs101 match self.next_random() {
LOWsrc/clients/dotnet/TigerBeetle/Bindings.cs21 /// <summary>
LOWsrc/clients/dotnet/TigerBeetle/Bindings.cs61 Pending = 1 << 1,
LOWsrc/clients/dotnet/TigerBeetle/Bindings.cs181 /// <summary>
LOWsrc/clients/dotnet/TigerBeetle/Bindings.cs201 /// <summary>
LOWsrc/clients/dotnet/TigerBeetle/Bindings.cs281 /// <summary>
LOWsrc/clients/dotnet/TigerBeetle/Bindings.cs301 /// <summary>
LOWsrc/clients/dotnet/TigerBeetle/Bindings.cs341 /// https://docs.tigerbeetle.com/reference/requests/create_accounts#linked_event_failed
LOWsrc/clients/dotnet/TigerBeetle/Bindings.cs361 /// https://docs.tigerbeetle.com/reference/requests/create_accounts#timestamp_must_be_zero
LOWsrc/clients/dotnet/TigerBeetle/Bindings.cs381 /// https://docs.tigerbeetle.com/reference/requests/create_accounts#reserved_flag
LOWsrc/clients/dotnet/TigerBeetle/Bindings.cs401 /// https://docs.tigerbeetle.com/reference/requests/create_accounts#exists_with_different_user_data_128
LOWsrc/clients/dotnet/TigerBeetle/Bindings.cs421 /// https://docs.tigerbeetle.com/reference/requests/create_accounts#exists_with_different_code
LOWsrc/clients/dotnet/TigerBeetle/Bindings.cs441 /// https://docs.tigerbeetle.com/reference/requests/create_accounts#debits_posted_must_be_zero
LOWsrc/clients/dotnet/TigerBeetle/Bindings.cs481 /// </summary>
LOWsrc/clients/dotnet/TigerBeetle/Bindings.cs501 /// </summary>
LOWsrc/clients/dotnet/TigerBeetle/Bindings.cs521 /// </summary>
LOWsrc/clients/dotnet/TigerBeetle/Bindings.cs541 /// </summary>
24 more matches not shown…
Self-Referential Comments9 hits · 27 pts
SeverityFileLineSnippet
MEDIUMsrc/clients/python/tests/test_basic.py253 # Create a two-phase transfer:
MEDIUMsrc/clients/python/tests/test_basic.py362 # Create a two-phase transfer:
MEDIUMsrc/clients/python/samples/two-phase-many/main.py98 # Create a 6th transfer posting the 1st transfer.
MEDIUMsrc/clients/python/samples/two-phase-many/main.py132 # Create a 7th transfer voiding the 2d transfer.
MEDIUMsrc/clients/python/samples/two-phase-many/main.py166 # Create a 8th transfer posting the 3rd transfer.
MEDIUMsrc/clients/python/samples/two-phase-many/main.py200 # Create a 9th transfer voiding the 4th transfer.
MEDIUMsrc/clients/python/samples/two-phase-many/main.py234 # Create a 10th transfer posting the 5th transfer.
MEDIUMsrc/clients/python/samples/walkthrough/main.py286 # Create the transfer
MEDIUMsrc/clients/python/samples/two-phase/main.py60 # Create a second transfer simply posting the first transfer
Hyper-Verbose Identifiers16 hits · 18 pts
SeverityFileLineSnippet
LOWsrc/clients/python/tests/test_basic.py87def test_return_error_on_account(client):
LOWsrc/clients/python/tests/test_basic.py169def test_create_a_two_phase_transfer(client):
LOWsrc/clients/python/tests/test_basic.py218def test_post_a_two_phase_transfer(client):
LOWsrc/clients/python/tests/test_basic.py252def test_reject_a_two_phase_transfer(client):
LOWsrc/clients/python/tests/test_basic.py361def test_cannot_void_an_expired_transfer(client):
LOWsrc/clients/python/tests/test_basic.py494def test_get_account_transfers(client):
LOWsrc/clients/python/tests/test_basic.py1221def test_query_with_invalid_filter(client):
LOWsrc/clients/python/tests/test_basic.py1322def test_import_accounts_and_transfers(client):
LOWsrc/clients/python/tests/test_basic.py1413def test_accept_zero_length_create_accounts(client):
LOWsrc/clients/python/tests/test_basic.py1417def test_accept_zero_length_create_transfers(client):
LOWsrc/clients/python/tests/test_basic.py1421def test_accept_zero_length_lookup_accounts(client):
LOWsrc/clients/python/tests/test_basic.py1425def test_accept_zero_length_lookup_transfers(client):
LOW…/clients/ruby/tests/unit/test_completion_dispatcher.rb79 def wait_for_interrupted_thread(thread)
LOWsrc/clients/ruby/tests/unit/test_id.rb52 def generator_in_future_with_random(random)
LOWsrc/clients/ruby/tests/integration/test_query_filter.rb222 def assert_strictly_ascending(values)
LOWsrc/clients/ruby/tests/integration/test_query_filter.rb226 def assert_strictly_descending(values)
Unused Imports17 hits · 17 pts
SeverityFileLineSnippet
LOWsrc/clients/python/tests/test_close.py2
LOWsrc/clients/python/tests/test_close.py3
LOWsrc/clients/python/src/tigerbeetle/client.py1
LOWsrc/clients/python/src/tigerbeetle/__init__.py1
LOWsrc/clients/python/src/tigerbeetle/__init__.py2
LOWsrc/clients/python/src/tigerbeetle/__init__.py2
LOWsrc/clients/python/src/tigerbeetle/__init__.py2
LOWsrc/clients/python/src/tigerbeetle/__init__.py2
LOWsrc/clients/python/src/tigerbeetle/__init__.py2
LOWsrc/clients/python/src/tigerbeetle/__init__.py3
LOWsrc/clients/python/src/tigerbeetle/__init__.py3
LOWsrc/clients/python/src/tigerbeetle/__init__.py3
LOWsrc/clients/python/src/tigerbeetle/__init__.py3
LOWsrc/clients/python/src/tigerbeetle/__init__.py3
LOWsrc/clients/python/src/tigerbeetle/__init__.py4
LOWsrc/clients/python/src/tigerbeetle/__init__.py4
LOWsrc/clients/python/src/tigerbeetle/bindings.py5
Cross-Language Confusion1 hit · 8 pts
SeverityFileLineSnippet
HIGHsrc/clients/python/samples/walkthrough/main.py27# undefined). Ideally, we prepare a correct batch here while keeping the syntax compact,
Excessive Try-Catch Wrapping5 hits · 5 pts
SeverityFileLineSnippet
LOWsrc/clients/python/tests/test_basic.py837 except Exception as err:
LOWsrc/clients/python/tests/test_basic.py843 except Exception as err:
LOWsrc/clients/python/tests/test_basic.py1296 except Exception as err:
LOWsrc/clients/python/tests/test_basic.py1302 except Exception as err:
LOWsrc/clients/python/tests/test_close.py18 except Exception as e:
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippet
LOWsrc/clients/python/src/tigerbeetle/client.py183
LOWsrc/cdc/amqp/spec_parser.py232
LOWsrc/cdc/amqp/spec_parser.py264
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMsrc/clients/rust/src/lib.rs238//! In some cases this may be useful because it allows the client to leverage