Public scan — anyone with this URL can view this analysis. Sign up to track your own repos privately, run scheduled re-scans, and get AI fix prompts via your dashboard.

diogomserino/Portugal-Data-Intelligence

https://github.com/diogomserino/Portugal-Data-Intelligence · scanned 2026-06-17 01:57 UTC (1 month, 1 week ago)

46 raw signals (0 security + 46 graph)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 1 month, 1 week ago · v2 · last Δ +17.2 (diff) · 46 actionable findings from 1 signal source. Security checks, system graph analysis, and verified AI-agent feedback are merged into one review queue.

JSON
Severity distribution — click a segment to filter
Active filters: excluding tests × Reset all
Corpus Intelligence Cross-corpus context (cohort percentile, top patterns, fix plan) is shown only on repositories you own. Sign up and connect your repo to view it.
Scan summary Repository scanned at 93.9/100 with 77.8% coverage. It contains 1288 nodes across 7 cross-layer flows, written primarily in mixed languages. Engine surfaced 46 findings — concentrated in software (30), quality (13), hardware (1). Risk profile is low: 0 critical, 0 high, 2 medium. Recommended next step: open the software layer findings first — that's where the highest-impact wins live.

Showing 42 of 46 actionable findings. Click TP / FP to vote on a finding's accuracy — votes adjust the confidence weighting and improve detection across the platform.

medium System graph cicd CI/CD security conf 1.00 GitHub Action is tag-pinned rather than SHA-pinned
codecov/codecov-action@v4 can move without a code change in this repo. Pin third-party actions to a reviewed 40-character commit SHA.
.github/workflows/ci.yml:82 CI/CD securitySupply chainGithub actions
medium System graph security Coverage conf 1.00 No auth library detected
The scanner did not find any standard auth library (JWT, OAuth, NextAuth, Auth0, etc.). The repo has auth/admin/session surface indicators, so auth may live in custom code, in a separate service, or be missing.
auth
low System graph quality Debug conf 1.00 Debug logging residue appears in source files
Found 166 console/debugger/print-style debug statements in non-test source. This is a common fast-generation residue before production cleanup.
CleanupRepo hardeningGenerated repo pattern
low System graph hardware Supply chain conf 1.00 Docker base image is tag-pinned but not digest-pinned: python:3.11-slim
Container tags can be retagged upstream. Pin production base images to a reviewed digest (`image@sha256:...`) when reproducibility and supply-chain integrity matter.
Dockerfile:1 containersPinned dependencies
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 2 places
Functions with the same first-5-line body hash: src/ai_insights/insight_engine.py:get_logger, src/ai_insights/generate_insights.py:get_logger This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai-code-hygiene). Consolidate or document why they're separ…
duplicatesduplication
low System graph quality Integrity conf 1.00 Near-duplicate function bodies in 5 places
Functions with the same first-5-line body hash: src/analysis/ensemble_forecast.py:fn, src/analysis/ensemble_forecast.py:fn, src/analysis/ensemble_forecast.py:fn, src/analysis/ensemble_forecast.py:fn This is *the* AI-coder failure mode (4× more duplication in vibe-coded repos — see https://jw.hn/ai…
duplicatesduplication
low System graph quality License conf 1.00 No license file detected
No LICENSE/COPYING/NOTICE file was found. Generated repositories often omit licensing, which blocks reuse and automated intake.
Repo hardeningGenerated repo pattern
low System graph software Dead code conf 1.00 Possibly dead Python function: analyse_credit
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/analysis/statistical_analysis.py:255
low System graph software Dead code conf 1.00 Possibly dead Python function: analyse_gdp
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/analysis/statistical_analysis.py:91
low System graph software Dead code conf 1.00 Possibly dead Python function: analyse_unemployment
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/analysis/statistical_analysis.py:167
low System graph software Dead code conf 1.00 Possibly dead Python function: fetch_credit
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/etl/fetch_real_data.py:696
low System graph software Dead code conf 1.00 Possibly dead Python function: fetch_external_accounts
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/etl/fetch_real_data.py:1329
low System graph software Dead code conf 1.00 Possibly dead Python function: fetch_fiscal
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/etl/fetch_real_data.py:1481
low System graph software Dead code conf 1.00 Possibly dead Python function: fetch_gdp
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/etl/fetch_real_data.py:292
low System graph software Dead code conf 1.00 Possibly dead Python function: fetch_housing
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/etl/fetch_real_data.py:1040
low System graph software Dead code conf 1.00 Possibly dead Python function: fetch_inequality
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/etl/fetch_real_data.py:1696
low System graph software Dead code conf 1.00 Possibly dead Python function: fetch_inflation
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/etl/fetch_real_data.py:608
low System graph software Dead code conf 1.00 Possibly dead Python function: fetch_interest_rates
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/etl/fetch_real_data.py:496
low System graph software Dead code conf 1.00 Possibly dead Python function: fetch_labor_detail
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/etl/fetch_real_data.py:1196
low System graph software Dead code conf 1.00 Possibly dead Python function: fetch_public_debt
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/etl/fetch_real_data.py:804
low System graph software Dead code conf 1.00 Possibly dead Python function: fetch_regional
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/etl/fetch_real_data.py:2208
low System graph software Dead code conf 1.00 Possibly dead Python function: fetch_unemployment
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/etl/fetch_real_data.py:380
low System graph software Dead code conf 1.00 Possibly dead Python function: load_credit
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/etl/load.py:411
low System graph software Dead code conf 1.00 Possibly dead Python function: load_external_accounts
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/etl/load.py:441
low System graph software Dead code conf 1.00 Possibly dead Python function: load_fiscal
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/etl/load.py:448
low System graph software Dead code conf 1.00 Possibly dead Python function: load_gdp
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/etl/load.py:401
low System graph software Dead code conf 1.00 Possibly dead Python function: load_housing
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/etl/load.py:431
low System graph software Dead code conf 1.00 Possibly dead Python function: load_inequality
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/etl/load.py:453
low System graph software Dead code conf 1.00 Possibly dead Python function: load_inflation
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/etl/load.py:421
low System graph software Dead code conf 1.00 Possibly dead Python function: load_interest_rates
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/etl/load.py:416
low System graph software Dead code conf 1.00 Possibly dead Python function: load_labor_detail
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/etl/load.py:436
low System graph software Dead code conf 1.00 Possibly dead Python function: load_public_debt
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/etl/load.py:426
low System graph software Dead code conf 1.00 Possibly dead Python function: load_regional
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/etl/load.py:458
low System graph software Dead code conf 1.00 Possibly dead Python function: load_unemployment
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/etl/load.py:406
low System graph software Dead code conf 1.00 Possibly dead Python function: metric_card
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
dashboard/app.py:138
low System graph software Dead code conf 1.00 Possibly dead Python function: run_scenarios
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
src/analysis/scenario_analysis.py:644
low System graph software Dead code conf 1.00 Possibly dead Python function: to_date
No callers detected by AST scan in this repo. Could be exported for external callers or a framework handler.
dashboard/app.py:125
low System graph quality Complexity conf 1.00 Very large file: dashboard/generate_report.py (2128 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: src/ai_insights/pillar_insights.py (1198 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: src/ai_insights/pillar_insights_pt.py (1285 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: src/analysis/visualisations.py (1529 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
low System graph quality Complexity conf 1.00 Very large file: src/etl/fetch_real_data.py (2418 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
For AI agents: Voting guide (TP/FP) MCP manifest Stdio wrapper SARIF Integrate Findings queue Vote TP/FP on findings to calibrate the engine.
For AI agents + API integrations
Email me when this repo regresses
Free. We re-scan periodically; new criticals → your inbox. No signup required for the scan itself.
API access

This page is publicly accessible at: https://repobility.com/scan/2eebb70f-102f-4125-90cd-decbb42ad788/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/2eebb70f-102f-4125-90cd-decbb42ad788/

Important — please don't re-submit the same URL repeatedly. The submission endpoint is idempotent: re-submitting the same git URL returns this same scan_token, not a new one. To re-scan this repo, sign up free and use the dashboard.