Repository Analysis

timescale/timescaledb

A time-series database for high-performance real-time analytics packaged as a Postgres extension

1.3 Likely human-written View on GitHub
1.3
Adjusted Score
1.3
Raw Score
100%
Time Factor
2026-05-30
Last Push
22,754
Stars
C
Language
288,230
Lines of Code
1318
Files
324
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 4MEDIUM 13LOW 307

Pattern Findings

324 matches across 12 categories. Click a row to expand file-level details.

Over-Commented Block286 hits · 286 pts
SeverityFileLineSnippet
LOWtest/pg_regress.sh1#!/usr/bin/env bash
LOWtest/runner_isolation.sh1#!/usr/bin/env bash
LOWtest/pg_prove.sh1#!/usr/bin/env bash
LOWtest/t/001_replication_telemetry.pl1# This file and its contents are licensed under the Timescale License.
LOWtest/t/002_compressed_chunk_apache.pl1# This file and its contents are licensed under the Apache License 2.0.
LOWtest/src/test_with_clause_parser.c1/*
LOWtest/src/test_utils.c1/*
LOWtest/src/loader/init.c1/*
LOWtest/src/telemetry/test_telemetry.c1/*
LOWtest/src/bgw/log.c1/*
LOWtest/src/bgw/timer_mock.c1/*
LOWtest/src/bgw/test_job_refresh.c1/*
LOWtest/src/bgw/scheduler_mock.c1/*
LOWtest/src/bgw/scheduler_mock.c21#include <utils/guc.h>
LOWtest/src/bgw/params.c1/*
LOWtsl/test/src/decompress_arithmetic_test_impl.c1/*
LOWtsl/test/src/decompress_arithmetic_test_impl.c241#undef ALGO
LOWtsl/test/src/compression_sql_test.c61#define IS_FINITE(X) isfinite((double) (X))
LOWtsl/test/src/compression_unit_test.c1/*
LOWtsl/test/src/compression_unit_test.c21#include <utils/typcache.h>
LOWtsl/src/chunkwise_agg.c1/*
LOWtsl/src/process_utility.c1/*
LOWtsl/src/chunk_merge.c1/*
LOWtsl/src/chunk_merge.c21#include <port.h>
LOWtsl/src/init.c1/*
LOWtsl/src/init.c21#include "compression/algorithms/deltadelta.h"
LOWtsl/src/init.c41#include "nodes/columnar_index_scan/columnar_index_scan.h"
LOWtsl/src/chunk.c1/*
LOWtsl/src/chunk.c21#include <nodes/nodes.h>
LOWtsl/src/chunk_split.c1/*
LOWtsl/src/chunk_split.c21#include <utils/syscache.h>
LOWtsl/src/reorder.c21#include <access/transam.h>
LOWtsl/src/reorder.c41#include <optimizer/planner.h>
LOWtsl/src/chunk_api.c1/*
LOWtsl/src/chunk_api.c21#include <funcapi.h>
LOWtsl/src/planner.c1/*
LOWtsl/src/continuous_aggs/materialize.c1/*
LOWtsl/src/continuous_aggs/invalidation.c1/*
LOWtsl/src/continuous_aggs/invalidation.c21#include <storage/lockdefs.h>
LOWtsl/src/continuous_aggs/rewrite_with_caggs.c1/*
LOWtsl/src/continuous_aggs/create.c21#include <access/sysattr.h>
LOWtsl/src/continuous_aggs/create.c41#include <optimizer/clauses.h>
LOWtsl/src/continuous_aggs/create.c61#include <utils/ruleutils.h>
LOWtsl/src/continuous_aggs/refresh.c1/*
LOWtsl/src/continuous_aggs/refresh.c21#include <utils/tuplestore.h>
LOWtsl/src/continuous_aggs/utils.c1/*
LOWtsl/src/continuous_aggs/common.h1/*
LOWtsl/src/continuous_aggs/common.h21#include <nodes/pg_list.h>
LOWtsl/src/continuous_aggs/finalize.h1/*
LOWtsl/src/continuous_aggs/invalidation_threshold.c1/*
LOWtsl/src/continuous_aggs/options.c1/*
LOWtsl/src/nodes/columnar_scan/qual_pushdown.c1/* * This file and its contents are licensed under the Timescale License.
LOWtsl/src/nodes/columnar_scan/exec.c1/*
LOWtsl/src/nodes/columnar_scan/exec.c21#include <utils/typcache.h>
LOWtsl/src/nodes/columnar_scan/compressed_batch.c1/*
LOW…nodes/columnar_scan/pred_vector_const_arithmetic_all.c21/* int84 functions. */
LOW…nodes/columnar_scan/pred_vector_const_arithmetic_all.c41#define PG_PREDICATE(X) F_INT48##X
LOW…nodes/columnar_scan/pred_vector_const_arithmetic_all.c61/* int28 functions. */
LOW…nodes/columnar_scan/pred_vector_const_arithmetic_all.c81
LOW…nodes/columnar_scan/pred_vector_const_arithmetic_all.c101#define VECTOR_CTYPE float4
226 more matches not shown…
Self-Referential Comments7 hits · 21 pts
SeverityFileLineSnippet
MEDIUMscripts/label-released.py61# Create the label if needed
MEDIUMscripts/upload_ci_stats.sh74# Create the job record.
MEDIUMscripts/test_update_smoke.sh136# Create a 1.7.5 version Upgrade
MEDIUMscripts/backport.py529 # Create the backport PR.
MEDIUM.github/workflows/libfuzzer.yaml223 # Create the fuzzing functions
MEDIUM.github/workflows/sanitizer-build-and-test.yaml101 # Create a directory for sanitizer logs. This directory is referenced by
MEDIUM.github/workflows/llm-fuzzer.yaml99 # Create a directory for sanitizer logs. This directory is referenced by
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippet
HIGHscripts/label-released.py0a simple function to use requests.post to make the graphql api call.
HIGHscripts/backport.py0a simple function to use requests.post to make the graphql api call.
HIGHscripts/check_changelog_format.py0a simple function to use requests.post to make the graphql api call.
Decorative Section Separators4 hits · 12 pts
SeverityFileLineSnippet
MEDIUM.github/workflows/release_feature_freeze_ceremony.yaml109 # -------------------------------------------------------
MEDIUM.github/workflows/release_feature_freeze_ceremony.yaml113 # -------------------------------------------------------
MEDIUM.github/workflows/release_feature_freeze_ceremony.yaml160 # -------------------------------------------------------
MEDIUM.github/workflows/release_feature_freeze_ceremony.yaml164 # -------------------------------------------------------
Redundant / Tautological Comments7 hits · 8 pts
SeverityFileLineSnippet
LOWtsl/test/t/002_logrepl_decomp_marker.pl17# Set max_process_workers to 0 before starting the node
LOWscripts/delete_released_change_logs.sh3# Check if both old_version and new_version have been provided
LOWscripts/check_changelog_format.py66# Check if a line matches any of the specified patterns
LOWscripts/check_changelog_format.py97 # Check if the file exists
LOWscripts/check_changelog_format.py105 # Read the file and check non-empty lines
LOW.github/gh_matrix_builder.py367 # Check if we need to check for the flaky tests. Determine which test files
LOW.github/workflows/changelog-check.yaml8 # Check if the PR creates a separate file with changelog entry in the
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippet
HIGHscripts/check_license.sh9# - test/sql/dump which contains auto-generated code
Slop Phrases3 hits · 6 pts
SeverityFileLineSnippet
MEDIUMtest/pg_prove.sh10# Note that you can also use regular expressions to run multiple
LOWscripts/upload_ci_stats.sh17# don't forget to append the needed migration code below.
LOWscripts/upload_ci_stats.sh17# don't forget to append the needed migration code below.
Deep Nesting5 hits · 5 pts
SeverityFileLineSnippet
LOWscripts/test_memory_spikes.py60
LOWscripts/check_updates.py39
LOWscripts/check_updates.py76
LOWscripts/check_changelog_format.py81
LOWscripts/githooks/commit_msg.py23
Verbosity Indicators3 hits · 4 pts
SeverityFileLineSnippet
LOWtsl/src/continuous_aggs/refresh.c1115 * In order to don't produce unnecessary batches we need to check if the start and end of the
LOWtsl/src/compression/recompress.c683 * compressed. But we need to check if there are any uncompressed tuples in the
LOWsrc/process_utility.c1924 * If it is a "GRANT/REVOKE ON ALL TABLES IN SCHEMA" operation then we need to check if
Hyper-Verbose Identifiers3 hits · 3 pts
SeverityFileLineSnippet
LOWscripts/backport.py217def should_backport_by_labels(number, title, labels):
LOWscripts/githooks/commit_msg.py59 def check_subject_body_separtor(self):
LOWscripts/githooks/commit_msg.py70 def check_subject_capitalized(self):
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippet
MEDIUM.github/workflows/pgspot.yaml1# Test our extension sql scripts are following security best practices
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippet
LOWscripts/test_update_smoke.sh8# Usage: