AI Slop Code Risk Monitor

cube-js/cube

SlopCodeMonitor badge for cube-js/cube Adjusted legacy signal; badge bands: 25 / 50 / 75 (different from dashboard bands).

📊 Cube Core is open-source semantic layer for AI, BI and embedded analytics

1.0 Low pattern signal View on GitHub

Open-Source Code Quality, Security and Technical Debt Review

This report summarizes scanner evidence for cube-js/cube, a Rust project with 21,138 GitHub stars. SynthScan examined 970,330 lines of code across 3413 source files, recording 639 pattern matches distributed across 22 syntactic categories. The legacy adjusted pattern signal is 1.0 (Low 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.

1.0
Adjusted Signal
1.0
Raw Pattern Score
100%
Time Factor
2026-10-31
Last Push
21.1K
Stars
Rust
Language
970.3K
Lines of Code
3.4K
Files
639
Pattern Hits
2026-10-31
Scan Date
0.01
HC Hit Rate

Risk Review · Payload v1

Use each vector to guide manual verification of the underlying findings.

Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.

Cognitive Ownership Risk 2.9/100 · LOW

Can maintainers explain intent, assumptions, and trade-offs? 527 finding(s).

Hallucinated Dependency & Supply Chain Risk 0.6/100 · LOW

Are imports declared and package/API names verified? 26 finding(s).

Agent Over-Engineering Ratio 1.8/100 · LOW

Are wrappers, guards, and repeated structures necessary? 154 finding(s).

PR Review Velocity Impact 4.8/100 · LOW

Which changes need focused human review? 639 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

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.

Severity Breakdown

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.

CRITICAL 8HIGH 10MEDIUM 92LOW 529

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 639 distinct pattern matches across 22 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.

Over-Commented Block410 hits · 399 pts
SeverityFileLineSnippetContext
LOW.oxlintrc.json1// The rule set lives in the @cubejs-backend/linter package so it stays a publishable,COMMENT
LOWinstall-cli.sh1#!/bin/shCOMMENT
LOWlerna-publish.sh41# Cleanup below discards staged as well as unstaged changes to tracked files.COMMENT
LOWrust/cubestore/cubezetasketch/src/encoding.rs41/// *ρ(w)* can be determined from the lowest *sp-p* bits of the sparse index orCOMMENT
LOWrust/cubestore/cubezetasketch/src/sketch.rs21/// estimate as defined in hllplus-unique.proto, allowing users to merge aggregators with dataCOMMENT
LOWrust/cubestore/cubezetasketch/src/sketch.rs81 // /** The smallest normal precision supported by this aggregator. */COMMENT
LOWrust/cubestore/cubezetasketch/src/data.rs21/// We only support a small range of precisions from `MINIMUM_PRECISION` toCOMMENT
LOWrust/cubestore/cubezetasketch/src/data.rs61 }COMMENT
LOWrust/cubestore/cubezetasketch/src/data.rs161COMMENT
LOWrust/cubestore/cubezetasketch/src/data.rs441 ]COMMENT
LOWrust/cubestore/cubezetasketch/src/sparse.rs341 /// - If the sparse representation has become too large, converts to a `NormalRepresentation`.COMMENT
LOWrust/cubestore/cubestore/src/util/metrics.rs1//! DogStatsD client to report metrics over UDP.COMMENT
LOWrust/cubestore/cubestore/src/config/mod.rs561 fn repartition_chunks_time_budget_secs(&self) -> u64;COMMENT
LOWrust/cubestore/cubestore/src/config/mod.rs581 /// The group is already bounded by repartition_merge_max_input_files and the downloadCOMMENT
LOWrust/cubestore/cubestore/src/config/mod.rs601 fn repartition_check_overlapping_children(&self) -> bool;COMMENT
LOWrust/cubestore/cubestore/src/config/mod.rs1381}COMMENT
LOWrust/cubestore/cubestore/src/sys/malloc.rs1#[cfg(all(target_os = "linux", not(target_env = "musl")))] // malloc_trim is only in glibc.COMMENT
LOW…ore/cubestore/src/cachestore/cache_eviction_manager.rs141/// Higher counters have exponentially a lower probability of incrementing.COMMENT
LOWrust/cubestore/cubestore/src/http/mod.rs61/// needs it should reconnect rather than report a transport failure.COMMENT
LOWrust/cubestore/cubestore/src/http/mod.rs81/// pressure, and giving up then would quietly stop counting connectionsCOMMENT
LOWrust/cubestore/cubestore/src/http/mod.rs101/// message at the transport before the handler ever saw it, and at the defaultCOMMENT
LOWrust/cubestore/cubestore/src/http/mod.rs121) -> Option<String> {COMMENT
LOWrust/cubestore/cubestore/src/http/mod.rs221/// connection reconnects, while one that had forgotten about it simply loses it.COMMENT
LOW…ubestore/cubestore/src/queryplanner/pretty_printers.rs781 .map(|p| p.object_meta.location.to_string())COMMENT
LOWrust/cubestore/cubestore/src/queryplanner/rolling.rs741 let input = concat_batches(&plan.sorted_input.schema(), &batches)?;COMMENT
LOWrust/cubestore/cubestore/src/queryplanner/rolling.rs1001 }COMMENT
LOWrust/cubestore/cubestore/src/queryplanner/udf_xirr.rs21COMMENT
LOWrust/cubestore/cubestore/src/queryplanner/udf_xirr.rs41/// If omitted, the function will yield an error when it cannot find a solution. Must beCOMMENT
LOWrust/cubestore/cubestore/src/queryplanner/udf_xirr.rs221 on_error,COMMENT
LOWrust/cubestore/cubestore/src/queryplanner/udf_xirr.rs241// ScalarValue::Float16(o) => Ok(o.map(f64::from)),COMMENT
LOWrust/cubestore/cubestore/src/queryplanner/udf_xirr.rs261// ScalarValue::FixedSizeBinary(_, _) => err("FixedSizeBinary"),COMMENT
LOWrust/cubestore/cubestore/src/queryplanner/udf_xirr.rs281// ScalarValue::DurationSecond(_) => err("DurationSecond"),COMMENT
LOWrust/cubestore/cubestore/src/queryplanner/udf_xirr.rs301// .map(|date| date.num_days_from_ce() - EPOCH_DAYS_FROM_CE)COMMENT
LOWrust/cubestore/cubestore/src/queryplanner/udf_xirr.rs321// ScalarValue::Int16(_) => err("Int16"),COMMENT
LOWrust/cubestore/cubestore/src/queryplanner/udf_xirr.rs341// ScalarValue::Map(_) => err("Map"),COMMENT
LOW…ubestore/cubestore/src/queryplanner/serialized_plan.rs621 // right,COMMENT
LOW…ubestore/cubestore/src/queryplanner/serialized_plan.rs901 // SerializedLogicalPlan::CrossJoinAgg {COMMENT
LOW…ubestore/cubestore/src/queryplanner/serialized_plan.rs921 // agg_expr: agg_expr.clone(),COMMENT
LOW…ubestore/cubestore/src/queryplanner/serialized_plan.rs941 // input: Arc::new(input),COMMENT
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs1// TODO upgrade DFCOMMENT
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs21// fn optimize(COMMENT
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs41// let lift_up_result = lift_up_expensive_projections(input, ColumnRecorder::default());COMMENT
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs61COMMENT
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs81// Err(e) => {COMMENT
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs101// .collect::<Result<Vec<_>>>()?;COMMENT
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs121// Expr::Column(c) => {COMMENT
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs141// impl ExpressionVisitor for ExpressionCost {COMMENT
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs161// fn post_visit(mut self, expr: &Expr) -> Result<Self> {COMMENT
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs181// cost_visitor = ex.accept(cost_visitor)?;COMMENT
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs201// );COMMENT
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs221// // Columns that we are already retaining. .0 field indexes into `expr`. .1 field isCOMMENT
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs241// if used_columns.columns.contains(&field.qualified_column()) {COMMENT
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs261// if expensive_expr_list.is_empty() {COMMENT
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs281// let mut new_expr = Vec::<Expr>::new();COMMENT
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs301// pal_debug!("ar_col {:?} comparing to col {:?}", ar_col, col);COMMENT
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs321// used_field_names.insert(input_field.name().clone());COMMENT
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs341// );COMMENT
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs361// pal_debug!("Invoking DFSchema::new");COMMENT
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs381// mod tests {COMMENT
LOW…e/cubestore/src/queryplanner/projection_above_limit.rs401COMMENT
350 more matches not shown…
Decorative Section Separators75 hits · 256 pts
SeverityFileLineSnippetContext
MEDIUM…schemas/yaml_files/common/integration_multi_stage.yaml827 # ── filter: directive variants ────────────────────────────────────COMMENT
MEDIUM…schemas/yaml_files/common/integration_multi_stage.yaml1051 # ── filter on segments ────────────────────────────────────────────COMMENT
MEDIUM…esqlplanner/cubesqlplanner/src/tests/measure_symbol.rs21// ─── Per-measure property tests ─────────────────────────────────────────────COMMENT
MEDIUM…esqlplanner/cubesqlplanner/src/tests/measure_symbol.rs258// ─── patch_measure: valid type replacements ───────────────────────────────────COMMENT
MEDIUM…esqlplanner/cubesqlplanner/src/tests/measure_symbol.rs329// ─── patch_measure: invalid type replacements ─────────────────────────────────COMMENT
MEDIUM…esqlplanner/cubesqlplanner/src/tests/measure_symbol.rs372// ─── patch_measure: no type change (None) ─────────────────────────────────────COMMENT
MEDIUM…esqlplanner/cubesqlplanner/src/tests/measure_symbol.rs401// ─── patch_measure: filter addition validation ────────────────────────────────COMMENT
MEDIUM…esqlplanner/cubesqlplanner/src/tests/measure_symbol.rs464// ─── patch_measure: combined type change + filters ────────────────────────────COMMENT
MEDIUM…esqlplanner/cubesqlplanner/src/tests/measure_symbol.rs501// ─── State form ─────────────────────────────────────────────────────────────COMMENT
MEDIUM…esqlplanner/cubesqlplanner/src/tests/measure_symbol.rs553// ─── Render modifiers ───────────────────────────────────────────────────────COMMENT
MEDIUM…esqlplanner/cubesqlplanner/src/tests/measure_symbol.rs636// ─── Multi-stage properties + filter directive ──────────────────────────────COMMENT
MEDIUM…qlplanner/cubesqlplanner/src/tests/dimension_symbol.rs13// ─── Per-dimension property tests ───────────────────────────────────────────COMMENT
MEDIUM…ner/cubesqlplanner/src/tests/filter/partition_range.rs124// ── partition range + db timezone ──────────────────────────────────────────COMMENT
MEDIUM…besqlplanner/cubesqlplanner/src/tests/filter/to_sql.rs9// ── equals ──────────────────────────────────────────────────────────────────COMMENT
MEDIUM…besqlplanner/cubesqlplanner/src/tests/filter/to_sql.rs216// ── notEquals ───────────────────────────────────────────────────────────────COMMENT
MEDIUM…besqlplanner/cubesqlplanner/src/tests/filter/to_sql.rs263// ── in / notIn ──────────────────────────────────────────────────────────────COMMENT
MEDIUM…besqlplanner/cubesqlplanner/src/tests/filter/to_sql.rs385// ── set / notSet ────────────────────────────────────────────────────────────COMMENT
MEDIUM…besqlplanner/cubesqlplanner/src/tests/filter/to_sql.rs407// ── comparison operators ────────────────────────────────────────────────────COMMENT
MEDIUM…besqlplanner/cubesqlplanner/src/tests/filter/to_sql.rs593// ── contains with multiple values ───────────────────────────────────────────COMMENT
MEDIUM…besqlplanner/cubesqlplanner/src/tests/filter/to_sql.rs629// ── like with null ──────────────────────────────────────────────────────────COMMENT
MEDIUM…besqlplanner/cubesqlplanner/src/tests/filter/to_sql.rs665// ── measure filters (HAVING) ──────────────────────────────────────────────────COMMENT
MEDIUM…besqlplanner/cubesqlplanner/src/tests/filter/to_sql.rs707// ── filter groups (OR / AND) ────────────────────────────────────────────────COMMENT
MEDIUM…besqlplanner/cubesqlplanner/src/tests/filter/to_sql.rs790// ── date operators ──────────────────────────────────────────────────────────COMMENT
MEDIUM…sqlplanner/cubesqlplanner/src/tests/filter/tree_ops.rs156// ─── keep_only_members ──────────────────────────────────────────────────────COMMENT
MEDIUM…sqlplanner/cubesqlplanner/src/tests/filter/tree_ops.rs232// ─── segment handling ───────────────────────────────────────────────────────COMMENT
MEDIUM…nner/cubesqlplanner/src/tests/filter/member_operand.rs25// ── equality ────────────────────────────────────────────────────────────────COMMENT
MEDIUM…nner/cubesqlplanner/src/tests/filter/member_operand.rs93// ── nullability ─────────────────────────────────────────────────────────────COMMENT
MEDIUM…nner/cubesqlplanner/src/tests/filter/member_operand.rs119// ── comparison ──────────────────────────────────────────────────────────────COMMENT
MEDIUM…nner/cubesqlplanner/src/tests/filter/member_operand.rs153// ── like ────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…nner/cubesqlplanner/src/tests/filter/member_operand.rs187// ── date ────────────────────────────────────────────────────────────────────COMMENT
MEDIUM…nner/cubesqlplanner/src/tests/filter/member_operand.rs206// ── HAVING: measures ────────────────────────────────────────────────────────COMMENT
MEDIUM…nner/cubesqlplanner/src/tests/filter/member_operand.rs242// ── members that must NOT be wrapped ────────────────────────────────────────COMMENT
MEDIUM…nner/cubesqlplanner/src/tests/filter/member_operand.rs272// ── trailing line comment ───────────────────────────────────────────────────COMMENT
MEDIUM⚡packages/cubejs-server-core/src/core/CompilerApi.ts695 // | ┌─────────────────────────────┐COMMENT
MEDIUM⚡packages/cubejs-server-core/src/core/CompilerApi.ts697 // | ┌───┼─────────────┐ │COMMENT
MEDIUM⚡packages/cubejs-server-core/src/core/CompilerApi.ts699 // | │ └─────────────┼───────────────┘COMMENT
MEDIUM⚡packages/cubejs-server-core/src/core/CompilerApi.ts701 // | └─────────────────┘COMMENT
MEDIUM⚡packages/cubejs-server-core/src/core/CompilerApi.ts702 // └──────────────────────────────────────────> RowsCOMMENT
MEDIUM⚡packages/cubejs-server-core/src/core/CompilerApi.ts710 // ═══════════════════════════════════════════════════════════════════COMMENT
MEDIUM⚡packages/cubejs-server-core/src/core/CompilerApi.ts716 // | ┌─────────────────────────────┐COMMENT
MEDIUM⚡packages/cubejs-server-core/src/core/CompilerApi.ts718 // | ┌───┼─────────────┐ │COMMENT
MEDIUM⚡packages/cubejs-server-core/src/core/CompilerApi.ts720 // | │░░░└─────────────┼───────────────┘COMMENT
MEDIUM⚡packages/cubejs-server-core/src/core/CompilerApi.ts722 // | └─────────────────┘COMMENT
MEDIUM⚡packages/cubejs-server-core/src/core/CompilerApi.ts723 // └──────────────────────────────────────────> RowsCOMMENT
MEDIUM⚡packages/cubejs-server-core/src/core/CompilerApi.ts727 // ═══════════════════════════════════════════════════════════════════COMMENT
MEDIUM⚡packages/cubejs-server-core/src/core/CompilerApi.ts733 // | ┌─────────────────────────────┐COMMENT
MEDIUM⚡packages/cubejs-server-core/src/core/CompilerApi.ts735 // | ┌───┼─────────────┐░░░░░░░░░░░░░░░│COMMENT
MEDIUM⚡packages/cubejs-server-core/src/core/CompilerApi.ts737 // | │ └─────────────┼───────────────┘COMMENT
MEDIUM⚡packages/cubejs-server-core/src/core/CompilerApi.ts739 // | └─────────────────┘COMMENT
MEDIUM⚡packages/cubejs-server-core/src/core/CompilerApi.ts740 // └──────────────────────────────────────────> RowsCOMMENT
MEDIUM⚡packages/cubejs-server-core/src/core/CompilerApi.ts744 // ═══════════════════════════════════════════════════════════════════COMMENT
MEDIUM⚡packages/cubejs-server-core/src/core/CompilerApi.ts750 // | ┌─────────────────────────────┐COMMENT
MEDIUM⚡packages/cubejs-server-core/src/core/CompilerApi.ts752 // | ┌───┼─────────────┐ │COMMENT
MEDIUM⚡packages/cubejs-server-core/src/core/CompilerApi.ts754 // | │ └─────────────┼───────────────┘COMMENT
MEDIUM⚡packages/cubejs-server-core/src/core/CompilerApi.ts756 // | └─────────────────┘COMMENT
MEDIUM⚡packages/cubejs-server-core/src/core/CompilerApi.ts757 // └──────────────────────────────────────────> RowsCOMMENT
MEDIUM⚡packages/cubejs-server-core/src/core/CompilerApi.ts761 // ═══════════════════════════════════════════════════════════════════COMMENT
MEDIUM⚡packages/cubejs-server-core/src/core/CompilerApi.ts767 // | ┌─────────────────────────────┐COMMENT
MEDIUM⚡packages/cubejs-server-core/src/core/CompilerApi.ts769 // | ┌───┼─────────────┐ │COMMENT
MEDIUM⚡packages/cubejs-server-core/src/core/CompilerApi.ts771 // | │ └─────────────┼───────────────┘COMMENT
15 more matches not shown…
Hallucination Indicators8 hits · 80 pts
SeverityFileLineSnippetContext
CRITICALrust/cubesql/cubesql/src/compile/rewrite/converter.rs2226 self.cube_context.sessions.server.config_obj.clone(),CODE
CRITICAL…chema-compiler/test/unit/context-symbols-proxy.test.ts121 expect(proxy.a.b.c.d.e.filter('col')).toBe('1 = 1');CODE
CRITICAL…a-compiler/test/unit/filter-params-time-shifts.test.ts11const SHIFTED = '${FILTER_PARAMS.fiscal_calendar.reportD.time_shifts.prev_fy.filter('CODE
CRITICAL…a-compiler/test/unit/filter-params-time-shifts.test.ts197 FILTER_PARAMS.fiscal_calendar.report_d.time_shifts.prev_fy.filter(CODE
CRITICAL…ompiler/test/unit/member-sql-template-compiler.test.ts141 (FILTER_PARAMS) => `${FILTER_PARAMS.calendar.d.time_shifts.prev_fy.filter((from: string, to: string) => `c >= ${frCODE
CRITICAL…ompiler/test/unit/member-sql-template-compiler.test.ts154 (FILTER_PARAMS) => `${FILTER_PARAMS.calendar.d.timeShifts.prev_fy.filter('c')}`,CODE
CRITICAL…ompiler/test/unit/member-sql-template-compiler.test.ts165 FILTER_PARAMS.calendar.d.time_shifts.prev_fy.filter((from: string, to: string) => `c >= ${from} AND c <= ${to}`)CODE
CRITICAL…integration/postgres/filter-params-time-shifts.test.ts280 '${FILTER_PARAMS.fiscal_calendar.reportD.time_shifts.prev_fy.filter(\'day_d\')}'CODE
Hyper-Verbose Identifiers68 hits · 70 pts
SeverityFileLineSnippetContext
LOWrust/cubestore/js-wrapper/src/download.ts36export async function downloadBinaryFromRelease() {CODE
LOW…es/cubejs-server-core/src/core/SharedCompilerCaches.ts59export function resetSharedCompilerCaches(): void {CODE
LOWpackages/cubejs-backend-maven/src/maven.ts170export function getDependenciesFromPackage(): MavenDependency[] {CODE
LOW…src/QueryBuilderV2/utils/get-used-cubes-and-members.ts81export function extractMembersFromFilters(filters: Filter[]) {CODE
LOW…js-playground/src/QueryBuilderV2/utils/chart-colors.ts102export function getChartSolidColorByIndex(index: number) {CODE
LOW…yground/src/QueryBuilderV2/utils/graphql-converters.ts11export async function convertGraphQLToJsonQuery({CODE
LOW…yground/src/QueryBuilderV2/utils/graphql-converters.ts621export function convertJsonQueryToGraphQL({ meta, query }: { meta?: Meta | null; query: Query }) {CODE
LOW…rc/components/QueryTabs/ChartRendererStateProvider.tsx38export function ChartRendererStateProvider({CODE
LOW…rc/components/QueryTabs/ChartRendererStateProvider.tsx161export function useChartRendererStateMethods() {CODE
LOW…bejs-playground/src/components/QueryTabs/QueryTabs.tsx294 function handleDrilldownModalClose() {CODE
LOW…ents/LivePreviewContext/LivePreviewContextProvider.tsx145export function LivePreviewContextProvider({CODE
LOWpackages/cubejs-playground/src/rollup-designer/utils.ts28export function getPreAggregationReferences(CODE
LOWpackages/cubejs-playground/src/rollup-designer/utils.ts88export function getRollupDefinitionFromReferences(CODE
LOW…s/cubejs-api-gateway/src/member-expression-security.ts31export function assertSafeMemberExpressionSql(sql: string, cubeParams: string[]): void {CODE
LOW…s/cubejs-api-gateway/src/member-expression-security.ts87export function assertSafeCompiledMemberExpression(expression: string[]): void {CODE
LOWpackages/cubejs-api-gateway/src/query.ts412function parseInputMemberExpression(expression: unknown): InputMemberExpression {CODE
LOWpackages/cubejs-api-gateway/src/gateway.ts187function nonEmptyUsedPreAggregations(CODE
LOWpackages/cubejs-api-gateway/src/gateway.ts214function publicUsedPreAggregations(CODE
LOWpackages/cubejs-api-gateway/src/gateway.ts244function mergePreAggregationDescriptions(CODE
LOWpackages/cubejs-api-gateway/src/graphql.ts470export function getJsonQueryFromGraphQLQuery(query: string, metaConfig: any, variableValues: Record<string, any> = {}) {CODE
LOW…ejs-api-gateway/src/helpers/transform-meta-extended.ts22function handleDimensionCaseCondition(caseCondition: any) {CODE
LOWpackages/cubejs-schema-compiler/test/unit/utils.ts102export function createCubeSchemaWithAccessPolicy(name: string, extraPolicies: string = ''): string {CODE
LOWpackages/cubejs-schema-compiler/test/unit/utils.ts230export function createCubeSchemaWithCustomGranularitiesAndTimeShift(name: string): string {CODE
LOWpackages/cubejs-schema-compiler/test/unit/utils.ts380export function createViewSchemaWithDefaultValueFilter(): string {CODE
LOWpackages/cubejs-schema-compiler/test/unit/utils.ts442export function createSchemaYamlForGroupFilterParamsTests(cubeDefSql: string): string {CODE
LOW…kages/cubejs-schema-compiler/src/compiler/JoinGraph.ts398 function findIfMultipliedRecursive(currentCube: string): boolean {CODE
LOW…s/cubejs-schema-compiler/src/compiler/CubeValidator.ts1356function formatErrorMessageFromDetails(explain: Map<string, string>, d: Joi.ValidationErrorItem) {CODE
LOW…s/cubejs-schema-compiler/src/compiler/CubeValidator.ts1384function collectFunctionFieldsPatterns(patterns: Set<string>, path: string, o: any) {CODE
LOW…-schema-compiler/src/compiler/named-numeric-formats.ts74export function resolveNamedNumericFormat(value: string): string | undefined {CODE
LOW…es/cubejs-testing/test/smoke-graceful-shutdown.test.ts30 function unconnectedPostgresClient(user: string, password: string) {CODE
LOWpackages/cubejs-testing/src/birdbox.ts250export async function startBirdBoxFromContainer(CODE
LOWpackages/cubejs-backend-native/test/config.py56async def scheduled_refresh_time_zones(ctx):CODE
LOWpackages/cubejs-backend-native/test/config.py62async def scheduled_refresh_contexts(ctx):CODE
LOWpackages/cubejs-backend-native/test/old-config.py34async def scheduled_refresh_time_zones(ctx):CODE
LOWpackages/cubejs-backend-native/test/old-config.py41async def scheduled_refresh_contexts(ctx):CODE
LOWpackages/cubejs-backend-native/test/jinja.test.ts42function testTemplateWithPythonCtxBySnapshot(init: InitJinjaFn, templateName: string, ctx: unknown) {CODE
LOWpackages/cubejs-backend-native/test/jinja.test.ts54function testTemplateErrorWithPythonCtxBySnapshot(init: InitJinjaFn, templateName: string, ctx: unknown) {CODE
LOWpackages/cubejs-backend-native/test/jinja.test.ts71function testLoadBrokenTemplateBySnapshot(init: InitJinjaFn, templateName: string) {CODE
LOWpackages/cubejs-backend-native/test/bridge/helpers.ts18export function invokeFilterParamsCallback(CODE
LOW…ages/cubejs-backend-native/python/cube/src/__init__.py397 async def _cube_template_call_async(*args, **kwargs):CODE
LOWpackages/cubejs-backend-native/js/index.ts234function wrapNativeFunctionWithChannelCallback(CODE
LOWpackages/cubejs-backend-native/js/index.ts274function wrapRawNativeFunctionWithChannelCallback(CODE
LOWpackages/cubejs-backend-native/js/index.ts315function wrapNativeFunctionWithStream(CODE
LOW…ubejs-cubestore-driver/codegen/http-parameter-value.ts23export function unionToHttpParameterValue(CODE
LOW…ubejs-cubestore-driver/codegen/http-parameter-value.ts39export function unionListToHttpParameterValue(CODE
LOW…ejs-cubestore-driver/codegen/http-query-result-data.ts13export function unionToHttpQueryResultData(CODE
LOW…ejs-cubestore-driver/codegen/http-query-result-data.ts24export function unionListToHttpQueryResultData(CODE
LOWpackages/cubejs-clickhouse-driver/src/Transform.ts30function hasCanonicalDateTimePrefix(s: string): boolean {CODE
LOWpackages/cubejs-clickhouse-driver/src/Transform.ts142function createTruncatingDateTimeConverter(width: number): ColumnConverter {CODE
LOWpackages/cubejs-clickhouse-driver/src/Transform.ts288export function buildTransformFromNamesAndTypes(names: Array<string>, types: Array<string>): Transform {CODE
LOWpackages/cubejs-base-driver/src/driver.interface.ts111export function isDownloadTableMemoryData(tableData: any): tableData is TableMemoryData {CODE
LOW⚡packages/cubejs-databricks-jdbc-driver/src/helpers.ts9export function extractAndRemoveUidPwdFromJdbcUrl(jdbcUrl: string): [uid: string, pwd: string, cleanedUrl: string] {CODE
LOW⚡packages/cubejs-databricks-jdbc-driver/src/helpers.ts18export function validateAndRemoveGeoSpatialSupportFromJdbcUrl(jdbcUrl: string): string {CODE
LOW⚡packages/cubejs-databricks-jdbc-driver/src/helpers.ts18export function validateAndRemoveGeoSpatialSupportFromJdbcUrl(jdbcUrl: string): string {CODE
LOW…ubejs-testing-drivers/src/tests/testExternalSchemas.ts7export function redshiftExternalSchemasSuite(CODE
LOW…ting-drivers/src/tests/testIncrementalSchemaLoading.ts13export function incrementalSchemaLoadingSuite(CODE
LOW…ubejs-query-orchestrator/test/benchmarks/instrument.ts112function patchQueueDriverConnectionForTrack(connection: QueueDriverConnectionInterface, counters: BenchCounters): QueueDCODE
LOW…query-orchestrator/src/orchestrator/PreAggregations.ts65export function getLastUpdatedAtTimestamp(CODE
LOW…ery-orchestrator/src/orchestrator/QueryOrchestrator.ts49function detectQueueAndCacheDriver(options: QueryOrchestratorOptions): CacheAndQueryDriverType {CODE
LOWpackages/cubejs-client-core/src/index.ts178function pickCubeSqlResultMetadata(parsed: any): CubeSqlResultMetadata {CODE
8 more matches not shown…
Magic Placeholder Names5 hits · 25 pts
SeverityFileLineSnippetContext
HIGHdocs-mintlify/api-reference/api.yaml7968 description: 'Token authentication. Send `Authorization: Bearer <YOUR_TOKEN>`.'CODE
HIGHdocs-mintlify/api-reference/chat.yaml400 description: 'API key authentication. Send `Authorization: Api-Key <YOUR_API_KEY>`.'CODE
HIGHdocs-mintlify/api-reference/chat.yaml400 description: 'API key authentication. Send `Authorization: Api-Key <YOUR_API_KEY>`.'CODE
HIGHdocs-mintlify/scripts/extract-chat.js160 description: 'API key authentication. Send `Authorization: Api-Key <YOUR_API_KEY>`.',CODE
HIGHdocs-mintlify/scripts/extract-chat.js160 description: 'API key authentication. Send `Authorization: Api-Key <YOUR_API_KEY>`.',CODE
AI Slop Vocabulary7 hits · 20 pts
SeverityFileLineSnippetContext
MEDIUMrust/cubestore/cubestore-sql-tests/src/tests.rs2058 // change with time, though, so test is not robust.COMMENT
MEDIUMrust/cubesql/cubesql/src/compile/rewrite/converter.rs1530 // Regular join would use hash partitioning here, so it would be quicker, and utilize less CPU,COMMENT
MEDIUMpackages/cubejs-cli/src/command/token.ts59 console.log(` ${chalk.yellow(`Please refer to ${chalk.cyan('https://docs.cube.dev/cube-core/deployment#security')} foCODE
MEDIUMpackages/cubejs-api-gateway/src/graphql.ts405 // Push down all inDateRange filters to time dimensions to leverage pre-aggregationsCOMMENT
MEDIUMpackages/cubejs-backend-native/Cargo.toml58# harness. Off by default — never enable in production builds.COMMENT
MEDIUMpackages/cubejs-backend-native/src/node_export.rs1035 #[cfg(feature = "bridge-test-harness")]COMMENT
MEDIUMpackages/cubejs-backend-native/src/lib.rs7#[cfg(feature = "bridge-test-harness")]COMMENT
Verbosity Indicators9 hits · 17 pts
SeverityFileLineSnippetContext
LOW⚡…besqlplanner/src/planner/symbols/common/symbol_path.rs88 // Step 1: If current_cube set, try resolving parts[0] as memberCOMMENT
LOW⚡…besqlplanner/src/planner/symbols/common/symbol_path.rs97 // Step 2: Try resolving parts[0] as cube referenceCOMMENT
LOW…cubesqlplanner/src/planner/time_dimension/date_time.rs217 // Step 1: add years and months with fallback logic. A quarter is threeCOMMENT
LOW⚡…cubesqlplanner/src/planner/time_dimension/date_time.rs247 // Step 2: Add weeks and daysCOMMENT
LOW⚡…cubesqlplanner/src/planner/time_dimension/date_time.rs251 // Step 3: Recombine with original timeCOMMENT
LOW⚡…cubesqlplanner/src/planner/time_dimension/date_time.rs255 // Step 4: Add time-based partsCOMMENT
LOW…/cubejs-server-core/test/unit/RefreshScheduler.test.ts1294 // Step 1: Immediate retry - should skip due to backoff (10-second window)COMMENT
LOW…/cubejs-server-core/test/unit/RefreshScheduler.test.ts1315 // Step 2: Verify backoff persists - pre-aggregation is still in backoff after 500msCOMMENT
LOW…ges/cubejs-schema-compiler/src/compiler/CubeSymbols.ts1709 // so we need to check if such granularity exists in cube definition.COMMENT
Fake / Example Data12 hits · 16 pts
SeverityFileLineSnippetContext
LOWrust/cubesql/cubesql/src/compile/rewrite/analysis.rs1211 "placeholder",CODE
LOW⚡rust/cubesql/cubesql/src/compile/test/test_udfs.rs403 regexp_substr('test@test.com', '@[^.]*') as match_dot,CODE
LOW⚡rust/cubesql/cubesql/src/compile/test/test_udfs.rs407 regexp_substr('test@test.com', null) as pattern_null,CODE
LOW⚡rust/cubesql/cubesql/src/compile/test/test_udfs.rs408 regexp_substr('test@test.com', '@[^.]*', 1) as position_default,CODE
LOW⚡rust/cubesql/cubesql/src/compile/test/test_udfs.rs409 regexp_substr('test@test.com', '@[^.]*', 5) as position_no_skip,CODE
LOW⚡rust/cubesql/cubesql/src/compile/test/test_udfs.rs410 regexp_substr('test@test.com', '@[^.]*', 6) as position_skip,CODE
LOW⚡rust/cubesql/cubesql/src/compile/test/test_udfs.rs411 regexp_substr('test@test.com', '@[^.]*', 0) as position_zero,CODE
LOW⚡rust/cubesql/cubesql/src/compile/test/test_udfs.rs412 regexp_substr('test@test.com', '@[^.]*', -1) as position_negative,CODE
LOW⚡rust/cubesql/cubesql/src/compile/test/test_udfs.rs413 regexp_substr('test@test.com', '@[^.]*', 100) as position_more_then_inputCODE
LOWrust/cubesql/cubesql/src/compile/test/test_udfs.rs425 SELECT 'test@test.com' as aCODE
LOWpackages/cubejs-testing/test/smoke-links.test.ts138 expect(data[1]['users.full_name']).toBe('John Doe');CODE
LOWpackages/cubejs-testing/test/smoke-links.test.ts139 expect(data[1]['users.full_name___link_google_search_url']).toBe('John Doe');CODE
Structural Annotation Overuse8 hits · 16 pts
SeverityFileLineSnippetContext
LOW⚡…besqlplanner/src/planner/symbols/common/symbol_path.rs88 // Step 1: If current_cube set, try resolving parts[0] as memberCOMMENT
LOW⚡…besqlplanner/src/planner/symbols/common/symbol_path.rs97 // Step 2: Try resolving parts[0] as cube referenceCOMMENT
LOW…cubesqlplanner/src/planner/time_dimension/date_time.rs217 // Step 1: add years and months with fallback logic. A quarter is threeCOMMENT
LOW⚡…cubesqlplanner/src/planner/time_dimension/date_time.rs247 // Step 2: Add weeks and daysCOMMENT
LOW⚡…cubesqlplanner/src/planner/time_dimension/date_time.rs251 // Step 3: Recombine with original timeCOMMENT
LOW⚡…cubesqlplanner/src/planner/time_dimension/date_time.rs255 // Step 4: Add time-based partsCOMMENT
LOW…/cubejs-server-core/test/unit/RefreshScheduler.test.ts1294 // Step 1: Immediate retry - should skip due to backoff (10-second window)COMMENT
LOW…/cubejs-server-core/test/unit/RefreshScheduler.test.ts1315 // Step 2: Verify backoff persists - pre-aggregation is still in backoff after 500msCOMMENT
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHdocs-mintlify/scripts/rewrite_links.py0process a single mdx file. returns true if changes were made.STRING
HIGHdocs-mintlify/scripts/update_frontmatter.py0process a single mdx file. returns true if changes were made.STRING
HIGHdocs-mintlify/scripts/transform_components.py0process a single mdx file. returns true if changes were made.STRING
Modern AI Meta-Vocabulary6 hits · 14 pts
SeverityFileLineSnippetContext
MEDIUMREADME.md71[Cube](https://cube.dev?ref=github-readme) is our commercial product — an agentic analytics platform built on Cube Core.CODE
MEDIUMREADME.md83 <img src="https://img.youtube.com/vi/7ZQGGepDjUQ/maxresdefault.jpg" alt="Cube agentic analytics workshop on YouTube" wCODE
MEDIUM…ages/cubejs-playground/src/pages/CubeBI/CubeBiPage.tsx47 <Link href="https://cube.dev?ref=github-readme" target="_blank">Cube</Link> is an agentic analytics platform bCODE
MEDIUM.github/workflows/claude-code-review.yml133 # the context window. review-threads.md reads our prior threads itself,COMMENT
MEDIUMdocs-mintlify/CLAUDE.md220Every [Deployment](#product-taxonomy) ships with **one agent** by default. The agent powers AI features (Analytics Chat,CODE
MEDIUMdocs-mintlify/CLAUDE.md229#### In multi-agent contextsCOMMENT
Excessive Try-Catch Wrapping6 hits · 10 pts
SeverityFileLineSnippetContext
LOW…ages/cubejs-backend-native/python/cube/src/__init__.py334 except Exception as e:CODE
LOW…ages/cubejs-backend-native/python/cube/src/__init__.py376 except Exception as e:CODE
MEDIUMdocs-mintlify/scripts/rewrite_links.py222 print(f"Error: {target} not found", file=sys.stderr)CODE
MEDIUMdocs-mintlify/scripts/check_links.py111 print(f"Error: {docs_root} not found", file=sys.stderr)CODE
MEDIUMdocs-mintlify/scripts/update_frontmatter.py220 print(f"Error: {target} not found", file=sys.stderr)CODE
MEDIUMdocs-mintlify/scripts/transform_components.py564 print(f"Error: {target} not found", file=sys.stderr)CODE
Deep Nesting8 hits · 8 pts
SeverityFileLineSnippetContext
LOW…ages/cubejs-backend-native/test/templates/memo_leak.py33CODE
LOWdocs-mintlify/scripts/rewrite_links.py159CODE
LOWdocs-mintlify/scripts/rewrite_links.py189CODE
LOWdocs-mintlify/scripts/check_links.py64CODE
LOWdocs-mintlify/scripts/update_frontmatter.py98CODE
LOWdocs-mintlify/scripts/update_frontmatter.py187CODE
LOWdocs-mintlify/scripts/transform_components.py488CODE
LOWdocs-mintlify/scripts/transform_components.py519CODE
AI Response Leakage1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH…irdbox-fixtures/postgresql/dbt-project/dbt_project.yml31# In this example config, we tell dbt to build all models in the example/ directoryCOMMENT
Slop Phrases4 hits · 6 pts
SeverityFileLineSnippetContext
LOW.github/workflows/rust-cubesql.yml134 # package (no prebuilt binaries for Node.js 26, don't forget to uncomment excludes below!)COMMENT
LOW.github/workflows/rust-cubesql.yml134 # package (no prebuilt binaries for Node.js 26, don't forget to uncomment excludes below!)COMMENT
LOW.github/workflows/push.yml84 # Don't forget to update build-native-releaseCOMMENT
LOW.github/workflows/push.yml285 # Don't forget to align with PYTHON_VERSION_CURRENTCOMMENT
Empty Error Handlers1 hit · 5 pts
SeverityFileLineSnippetContext
HIGH…ages/cubejs-backend-native/test/templates/memo_leak.py45except ValueError:CODE
TODO Padding3 hits · 4 pts
SeverityFileLineSnippetContext
LOWrust/cubestore/cubezetasketch/src/sketch.rs190 // TODO: implement or remove.COMMENT
LOWrust/cubestore/cubehll/src/instance.rs675 // TODO: implement this for completeness. Airlift can read Dense HLL in V1 format.COMMENT
LOWpackages/cubejs-client-vue3/src/QueryBuilder.js298 // TODO: implement timezoneCOMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…es/cubejs-testing/birdbox-fixtures/rbac-python/cube.py18 # Check if any of the specified keys are in the dictionaryCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWdocs-mintlify/scripts/upload-asset.sh5# Usage:COMMENT
Overly Generic Function Names1 hit · 1 pts
SeverityFileLineSnippetContext
LOWpackages/cubejs-backend-native/test/utils.py4def test_function(query: dict) -> dict:CODE
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOW…ages/cubejs-backend-native/python/cube/src/__init__.py427__all__ = [CODE
Unused Imports1 hit · 1 pts
SeverityFileLineSnippetContext
LOWdocs-mintlify/scripts/transform_components.py20CODE