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.

openmrs/openmrs-core

https://github.com/openmrs/openmrs-core.git · scanned 2026-05-16 10:58 UTC (1 day, 10 hours ago) · 10 languages

318 findings (30 legacy + 288 scanner) 1/10 scanners ran 0th percentile · Java · medium (20-100K LoC) Scanner says 66 (lower by 6)

UNIFIED Repobility · multi-layer engine · AI coders

Complete repo analysis

Last scanned 1 day, 10 hours ago · v3 · 119 findings from 2 sources. Findings combine the legacy security pipeline AND the multi-layer engine (atlas, wiring, flows, ranked) AND verified AI agent contributions.

JSON
{# ── 2026-05-17 R27 #5: score breakdown panel ────────────────────── Surfaces the score_breakdown JSON that's been silently stored on Repository for months. Turns hidden math into a trust signal. #}
Severity distribution — click a segment to filter
Active filters: layer: quality × excluding tests × Reset all
Scan summary Repository scanned at 65.5/100 with 100.0% coverage. It contains 1909 nodes across 0 cross-layer flows, written primarily in mixed languages. Engine surfaced 96 findings — concentrated in security (26), quality (26), cicd (24). Risk profile is high: 20 critical, 5 high, 16 medium. Recommended next step: open the security layer findings first — that's where the highest-impact wins live.

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

high Legacy quality testing No test files found
Add a test directory (tests/ or __tests__/) with unit tests for core functionality. Use pytest (Python), Jest (JS/TS), or go test (Go). Start with tests for critical business logic and security-sensitive functions.
testinglegacy
medium Legacy quality quality conf 0.86 Duplicated implementation block across source files
Duplicated blocks are a common artifact when generated code is pasted or recreated instead of reused. They increase maintenance cost because every future bug fix must be found in multiple locations.
api/src/main/java/org/openmrs/ConceptSet.java:69 qualitylegacy
medium Legacy quality quality conf 0.86 Duplicated implementation block across source files
Duplicated blocks are a common artifact when generated code is pasted or recreated instead of reused. They increase maintenance cost because every future bug fix must be found in multiple locations.
api/src/main/java/org/openmrs/ConceptNumeric.java:72 qualitylegacy
medium Legacy quality quality conf 0.86 Duplicated implementation block across source files
Duplicated blocks are a common artifact when generated code is pasted or recreated instead of reused. They increase maintenance cost because every future bug fix must be found in multiple locations.
api/src/main/java/org/openmrs/ConceptNameTag.java:137 qualitylegacy
medium Legacy quality quality conf 0.86 Duplicated implementation block across source files
Duplicated blocks are a common artifact when generated code is pasted or recreated instead of reused. They increase maintenance cost because every future bug fix must be found in multiple locations.
api/src/main/java/org/openmrs/ConceptNameTag.java:73 qualitylegacy
medium Legacy quality quality conf 0.86 Duplicated implementation block across source files
Duplicated blocks are a common artifact when generated code is pasted or recreated instead of reused. They increase maintenance cost because every future bug fix must be found in multiple locations.
api/src/main/java/org/openmrs/ConceptNameTag.java:65 qualitylegacy
medium Legacy quality quality conf 0.86 Duplicated implementation block across source files
Duplicated blocks are a common artifact when generated code is pasted or recreated instead of reused. They increase maintenance cost because every future bug fix must be found in multiple locations.
api/src/main/java/org/openmrs/ConceptNameTag.java:63 qualitylegacy
medium Legacy quality quality conf 0.86 Duplicated implementation block across source files
Duplicated blocks are a common artifact when generated code is pasted or recreated instead of reused. They increase maintenance cost because every future bug fix must be found in multiple locations.
api/src/main/java/org/openmrs/ConceptName.java:123 qualitylegacy
medium Legacy quality quality conf 0.86 Duplicated implementation block across source files
Duplicated blocks are a common artifact when generated code is pasted or recreated instead of reused. They increase maintenance cost because every future bug fix must be found in multiple locations.
api/src/main/java/org/openmrs/ConceptName.java:117 qualitylegacy
medium Legacy quality quality conf 0.86 Duplicated implementation block across source files
Duplicated blocks are a common artifact when generated code is pasted or recreated instead of reused. They increase maintenance cost because every future bug fix must be found in multiple locations.
api/src/main/java/org/openmrs/ConceptDescription.java:71 qualitylegacy
medium Legacy quality quality conf 0.86 Duplicated implementation block across source files
Duplicated blocks are a common artifact when generated code is pasted or recreated instead of reused. They increase maintenance cost because every future bug fix must be found in multiple locations.
api/src/main/java/org/openmrs/ConceptAnswer.java:74 qualitylegacy
medium Legacy quality quality conf 0.86 Duplicated implementation block across source files
Duplicated blocks are a common artifact when generated code is pasted or recreated instead of reused. They increase maintenance cost because every future bug fix must be found in multiple locations.
api/src/main/java/org/openmrs/BaseOpenmrsMetadata.java:57 qualitylegacy
medium Legacy quality quality conf 0.86 Duplicated implementation block across source files
Duplicated blocks are a common artifact when generated code is pasted or recreated instead of reused. They increase maintenance cost because every future bug fix must be found in multiple locations.
api/src/main/java/org/openmrs/BaseCustomizableMetadata.java:23 qualitylegacy
medium 9-layer quality tests conf 1.00 Very low test-to-source ratio
0 test file(s) for 18 source file(s) (ratio 0.00). Consider adding integration or unit tests for critical paths.
testscoverage
low 9-layer quality maintenance conf 1.00 150 TODO/FIXME markers
High count of TODO/FIXME/HACK markers — track them as issues so they're not forgotten.
maintenance
low 9-layer quality integrity conf 1.00 Legacy-named symbol `drag_copy` in webapp/src/main/webapp/WEB-INF/view/scripts/jquery/jsTree/jquery.tree.min.js:1
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
integritylegacy-markerdead-code
low 9-layer quality integrity conf 1.00 Legacy-named symbol `yearsOld` in webapp/src/main/webapp/WEB-INF/view/scripts/jquery/autocomplete/OpenmrsAutoComplete.js:246
Names with suffixes like `_old`, `_v1`, `_deprecated` usually indicate replaced-but-not-removed code (typical AI-coder leftover). Confirm and delete, or rename if it's the active version.
integritylegacy-markerdead-code
low 9-layer quality complexity conf 1.00 Very large file: api/src/main/java/org/openmrs/api/ConceptService.java (2202 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
complexity
low 9-layer quality complexity conf 1.00 Very large file: api/src/main/java/org/openmrs/api/db/hibernate/HibernateConceptDAO.java (2405 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
complexity
low 9-layer quality complexity conf 1.00 Very large file: api/src/main/java/org/openmrs/api/impl/ConceptServiceImpl.java (2343 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
complexity
low 9-layer quality complexity conf 1.00 Very large file: api/src/main/java/org/openmrs/api/impl/PatientServiceImpl.java (1638 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
complexity
low 9-layer quality complexity conf 1.00 Very large file: api/src/main/java/org/openmrs/Concept.java (1705 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
complexity
low 9-layer quality complexity conf 1.00 Very large file: api/src/main/java/org/openmrs/module/ModuleFactory.java (1597 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
complexity
low 9-layer quality complexity conf 1.00 Very large file: api/src/main/java/org/openmrs/util/OpenmrsConstants.java (1248 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
complexity
low 9-layer quality complexity conf 1.00 Very large file: api/src/main/java/org/openmrs/util/OpenmrsUtil.java (2160 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
complexity
low 9-layer quality complexity conf 1.00 Very large file: api/src/test/java/org/openmrs/api/ConceptServiceTest.java (4064 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
complexity
low 9-layer quality complexity conf 1.00 Very large file: api/src/test/java/org/openmrs/api/db/PatientDAOTest.java (2556 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
complexity
low 9-layer quality complexity conf 1.00 Very large file: api/src/test/java/org/openmrs/api/EncounterServiceTest.java (3395 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
complexity
low 9-layer quality complexity conf 1.00 Very large file: api/src/test/java/org/openmrs/api/ObsServiceTest.java (2165 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
complexity
low 9-layer quality complexity conf 1.00 Very large file: api/src/test/java/org/openmrs/api/OrderServiceTest.java (4451 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
complexity
low 9-layer quality complexity conf 1.00 Very large file: api/src/test/java/org/openmrs/api/PatientServiceTest.java (3380 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
complexity
low 9-layer quality complexity conf 1.00 Very large file: api/src/test/java/org/openmrs/api/PersonServiceTest.java (2481 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
complexity
low 9-layer quality complexity conf 1.00 Very large file: api/src/test/java/org/openmrs/api/UserServiceTest.java (1779 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
complexity
low 9-layer quality complexity conf 1.00 Very large file: api/src/test/java/org/openmrs/hl7/handler/ORUR01HandlerTest.java (1225 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
complexity
low 9-layer quality complexity conf 1.00 Very large file: api/src/test/java/org/openmrs/module/ModuleFileParserUnitTest.java (1414 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
complexity
low 9-layer quality complexity conf 1.00 Very large file: web/src/main/java/org/openmrs/web/filter/initialization/InitializationFilter.java (1992 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
complexity
low 9-layer quality complexity conf 1.00 Very large file: webapp/src/main/webapp/WEB-INF/view/scripts/jquery-ui/js/jquery-ui.custom.min.js (1012 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
complexity
low 9-layer quality complexity conf 1.00 Very large file: webapp/src/main/webapp/WEB-INF/view/scripts/jquery-ui/js/openmrsSearch.js (1211 lines)
Files with >800 lines often hide complexity hotspots and discourage tests.
complexity
info 9-layer quality integrity conf 1.00 Commented-code block (10 lines) in webapp/src/main/webapp/WEB-INF/view/scripts/jquery-ui/js/jquery-ui-timepicker-i18n.js:3
A long run of `//` or `#` lines usually means abandoned code. Delete or move to git history. Keeps the canvas + dead-code detection honest.
integritycommented-codedead-code
{# ── 2026-05-17 Round 14: AI-agent bridge footer ────────────────────── Discoverability: the /agents/voting/ guide + MCP manifest exist but aren't linked from anywhere users actually land. Small, opt-in footer. #}
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/beef9e59-2b65-4ca8-b71d-75f2aef97c23/

To check status programmatically (no auth required):

curl -s https://repobility.com/api/v1/public/scan/beef9e59-2b65-4ca8-b71d-75f2aef97c23/

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.