Repository Analysis

rqlite/rqlite

The lightweight, fault-tolerant database built on SQLite. Designed to keep your data highly available with minimal effort.

2.0 Likely human-written View on GitHub
2.0
Adjusted Score
2.0
Raw Score
100%
Time Factor
2026-05-29
Last Push
17,553
Stars
Go
Language
119,405
Lines of Code
360
Files
120
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 57LOW 63

Pattern Findings

120 matches across 10 categories. Click a row to expand file-level details.

Self-Referential Comments42 hits · 129 pts
SeverityFileLineSnippet
MEDIUMtools/get_gh_latest.py4 # Define the GitHub API URL for issues and pull requests
MEDIUMsystem_test/e2e/auto_state_s3.py27 # Create the auto-backup config file
MEDIUMsystem_test/e2e/auto_state_s3.py44 # Create a node, enable automatic backups, and start it. Then
MEDIUMsystem_test/e2e/auto_state_s3.py54 # Create a second node, with auto-restore enabled.
MEDIUMsystem_test/e2e/auto_state_s3.py91 # Create the auto-backup config file
MEDIUMsystem_test/e2e/auto_state_s3.py110 # Create a node, enable automatic backups, and start it. Then
MEDIUMsystem_test/e2e/auto_state_s3.py120 # Create a second node, with auto-restore enabled.
MEDIUMsystem_test/e2e/auto_state_s3.py174 # Create the auto-restore config file
MEDIUMsystem_test/e2e/auto_state_s3.py218 # Create the auto-restore config file
MEDIUMsystem_test/e2e/auto_state_s3.py263 # Create the auto-restore config file
MEDIUMsystem_test/e2e/auto_state_s3.py277 # Create a new node, write some data to it.
MEDIUMsystem_test/e2e/auto_state_s3.py286 # Create a new node, using the directory from the previous node, but check
MEDIUMsystem_test/e2e/auto_state_s3.py315 # Create the auto-backup config file
MEDIUMsystem_test/e2e/auto_state_s3.py332 # Create a node, enable automatic backups, and start it. Then
MEDIUMsystem_test/e2e/auto_state_s3.py378 # Create the auto-backup config file
MEDIUMsystem_test/e2e/auto_state_s3.py396 # Create a node, enable automatic backups, and start it. Then
MEDIUMsystem_test/e2e/auto_state_s3.py437 # Create the auto-backup config file
MEDIUMsystem_test/e2e/auto_state_s3.py453 # Create a node, enable automatic backups, and start it. Then
MEDIUMsystem_test/e2e/auto_state_s3.py503 # Create the auto-backup config file
MEDIUMsystem_test/e2e/auto_state_s3.py520 # Create a cluster with automatic backups enabled.
MEDIUMsystem_test/e2e/auto_state_s3.py552 # Create the auto-backup config file
MEDIUMsystem_test/e2e/auto_state_s3.py569 # Create a cluster with automatic backups enabled.
MEDIUMsystem_test/e2e/auto_state_s3.py604 # Create the auto-backup config file
MEDIUMsystem_test/e2e/auto_state_s3.py621 # Create a cluster with automatic backups enabled.
MEDIUMsystem_test/e2e/auto_state_s3.py630 # Create a cluster with two more followers
MEDIUMsystem_test/e2e/auto_state_file.py23 # Create a temporary directory for backups
MEDIUMsystem_test/e2e/auto_state_file.py26 # Create the auto-backup config file with timestamp enabled
MEDIUMsystem_test/e2e/auto_state_file.py41 # Create a node, enable automatic backups, and start it
MEDIUMsystem_test/e2e/auto_state_file.py46 # Create a table and insert data
MEDIUMsystem_test/e2e/auto_state_file.py98 # Create a temporary directory for backups
MEDIUMsystem_test/e2e/auto_state_file.py102 # Create the auto-backup config file with timestamp disabled
MEDIUMsystem_test/e2e/auto_state_file.py117 # Create a node, enable automatic backups, and start it
MEDIUMsystem_test/e2e/auto_state_file.py122 # Create a table and insert data
MEDIUMsystem_test/e2e/auto_state_file.py177 # Create a temporary directory for backups
MEDIUMsystem_test/e2e/auto_state_file.py180 # Create the auto-backup config file with compression
MEDIUMsystem_test/e2e/auto_state_file.py195 # Create a node, enable automatic backups, and start it
MEDIUMsystem_test/e2e/auto_state_file.py200 # Create a table and insert data
MEDIUMsystem_test/e2e/joining.py170 # Create a potential join target node
MEDIUMsystem_test/e2e/multi_node.py596 # Create a two-node cluster.
MEDIUMsystem_test/e2e/auto_state_gcs.py26 # Create the auto-backup config file
MEDIUMsystem_test/e2e/auto_state_gcs.py41 # Create a node, enable automatic backups, and start it. Then
MEDIUMsystem_test/e2e/auto_state_gcs.py104 # Create the auto-restore config file
Decorative Section Separators14 hits · 48 pts
SeverityFileLineSnippet
MEDIUMtools/package/build-packages.sh13# ---------------------------------------------------------------------------
MEDIUMtools/package/build-packages.sh15# ---------------------------------------------------------------------------
MEDIUMtools/package/build-packages.sh31# ---------------------------------------------------------------------------
MEDIUMtools/package/build-packages.sh35# ---------------------------------------------------------------------------
MEDIUMtools/package/build-packages.sh41# ---------------------------------------------------------------------------
MEDIUMtools/package/build-packages.sh43# ---------------------------------------------------------------------------
MEDIUMtools/package/build-packages.sh99# ---------------------------------------------------------------------------
MEDIUMtools/package/build-packages.sh101# ---------------------------------------------------------------------------
MEDIUMtools/package/build-packages.sh192# ---------------------------------------------------------------------------
MEDIUMtools/package/build-packages.sh194# ---------------------------------------------------------------------------
MEDIUMsystem_test/e2e/gcs.py15# ---------------------------------------------------------------------------
MEDIUMsystem_test/e2e/gcs.py17# ---------------------------------------------------------------------------
MEDIUMsystem_test/e2e/gcs.py28# ---------------------------------------------------------------------------
MEDIUMsystem_test/e2e/gcs.py30# ---------------------------------------------------------------------------
Hyper-Verbose Identifiers26 hits · 27 pts
SeverityFileLineSnippet
LOWtools/get_gh_latest.py3def get_latest_issue_pr_numbers(owner, repo):
LOWsystem_test/e2e/cdc.py89 def test_multi_node_events_with_node_failure(self):
LOWsystem_test/e2e/auto_state_s3.py596 def test_no_upload_leader_change(self):
LOWsystem_test/e2e/cdc_test_server.py95class CDCHTTPRequestHandler(BaseHTTPRequestHandler):
LOWsystem_test/e2e/cdc_test_server.py302 def get_highest_message_index(self) -> int:
LOWsystem_test/e2e/single_node.py65 def test_simple_raw_queries_unicode(self):
LOWsystem_test/e2e/single_node.py81 def test_simple_raw_queries_pretty(self):
LOWsystem_test/e2e/single_node.py112 def test_simple_parameterized_queries(self):
LOWsystem_test/e2e/single_node.py133 def test_simple_named_parameterized_queries(self):
LOWsystem_test/e2e/single_node.py156 def test_simple_parameterized_mixed_queries(self):
LOWsystem_test/e2e/single_node.py172 def test_simple_parameterized_mixed_queries_via_request(self):
LOWsystem_test/e2e/auto_state_file.py17 def test_backup_timestamp_true(self):
LOWsystem_test/e2e/auto_state_file.py92 def test_backup_timestamp_false(self):
LOWsystem_test/e2e/auto_state_file.py171 def test_backup_with_compression(self):
LOWsystem_test/e2e/joining.py175 def test_single_node_join_fails(self):
LOWsystem_test/e2e/multi_node.py61 def test_execute_fail_restart(self):
LOWsystem_test/e2e/multi_node.py128 def test_remove_node_via_leader(self):
LOWsystem_test/e2e/multi_node.py142 def test_remove_node_via_follower(self):
LOWsystem_test/e2e/multi_node.py367 def test_execute_query_forward(self):
LOWsystem_test/e2e/multi_node.py387 def test_execute_queued_forward(self):
LOWsystem_test/e2e/multi_node.py415 def test_execute_queued_forward_wait(self):
LOWsystem_test/e2e/multi_node.py564 def test_execute_fail_nonvoter(self):
LOWsystem_test/e2e/multi_node.py761 def test_cluster_leader_remove_on_shutdown(self):
LOWsystem_test/e2e/multi_node.py790 def test_cluster_follower_remove_on_shutdown(self):
LOWsystem_test/e2e/helpers.py448 def wait_for_upload_skipped_id(self, i, timeout=TIMEOUT):
LOWhttp/console/static/js/app.js163 function updateFreshnessVisibility() {
Over-Commented Block24 hits · 24 pts
SeverityFileLineSnippet
LOWdoc.go1// The MIT License (MIT)
LOWtestdata/chinook/db.go1// The MIT License (MIT)
LOWsnapshot/sink.go161 // IncrementalFile path — no data expected after header.
LOWsnapshot/store.go441}
LOWsnapshot/store.go461//
LOWsnapshot/observer.go21// ReapObservation events and an optional filter function. Observations
LOWsnapshot/snapshot.go61// timestamp).
LOWsnapshot/snapshot.go161// selection logic.
LOWsnapshot/snapshot.go301// AfterID returns a SnapshotSet containing snapshots strictly newer than the
LOWsnapshot/snapshot.go441 return -1
LOWsnapshot/staging.go41 }
LOWcluster/bootstrap.go101 }
LOWcdc/config.go81 // MaxBatchDelay is the maximum delay before sending a rquest to the endpoint, regardless
LOWcdc/service.go121 // of the number of events ready for sending. This is used to ensure that
LOWcdc/fifo.go21// ErrQueueClosed is returned when an operation is attempted on a closed queue.
LOWqueue/queue.go121
LOWdb/db_test.go1401 if isAppveyor() {
LOWdb/checkpoint_bench_test.go1// Benchmark suite for CheckpointManager and alternative Checkpointer implementations.
LOWdb/checkpoint_manager.go41
LOWdb/testdata/carray.c61 void *iov_base;
LOWdb/wal/compacting_section_scanner.go41
LOWstore/store.go1721 // Update our strong read term.
LOWstore/store.go2401}
LOWstore/store_multi_test.go561// Snapshot Store, and this would result in a divergence between the main DB and that stored
Unused Imports5 hits · 5 pts
SeverityFileLineSnippet
LOWsnapshot/testdata/db-and-wals/create-wals.py3
LOWsystem_test/e2e/cdc.py9
LOWsystem_test/e2e/auto_clustering.py12
LOWsystem_test/e2e/auto_clustering.py12
LOWsystem_test/e2e/gcs.py9
Excessive Try-Catch Wrapping4 hits · 5 pts
SeverityFileLineSnippet
LOWsystem_test/e2e/gcs.py64 except Exception as exc:
LOWsystem_test/e2e/cdc_test_server.py120 except Exception:
LOWsystem_test/e2e/s3.py49 except Exception as e:
MEDIUMsystem_test/e2e/s3.py50 print(f"Error uploading file '{file_path}' to '{bucket_name}': {e}")
Fake / Example Data2 hits · 2 pts
SeverityFileLineSnippet
LOWdb/testdata/text.go3const Lorum = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam ultricies turpis nisi, quis egestas enim sce
LOWdb/testdata/text.go3const Lorum = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam ultricies turpis nisi, quis egestas enim sce
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippet
LOWtools/get_gh_latest.py25# Example usage
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippet
LOWsystem_test/e2e/cdc_test_server.py103 # Check if we should simulate a failure
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippet
LOWsystem_test/e2e/cdc_test_server.py98