Repository Analysis

openmediavault/openmediavault

openmediavault is the next generation network attached storage (NAS) solution based on Debian Linux. Thanks to the modular design of the framework it can be enhanced via plugins. openmediavault is primarily designed to be used in home environments or small home offices.

10.5 Low AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of openmediavault/openmediavault, a PHP project with 6,892 GitHub stars. SynthScan v2.0 examined 133,440 lines of code across 1511 source files, recording 875 pattern matches distributed across 13 syntactic categories. The overall adjusted score of 10.5 places this repository in the Low AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

10.5
Adjusted Score
10.5
Raw Score
100%
Time Factor
2026-08-02
Last Push
6.9K
Stars
PHP
Language
133.4K
Lines of Code
1.5K
Files
875
Pattern Hits
2026-08-02
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.

No multi-scan history yet — run the scanner again to build trend data.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 0HIGH 4MEDIUM 241LOW 630

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 875 distinct pattern matches across 13 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Self-Referential Comments239 hits · 718 pts
SeverityFileLineSnippetContext
MEDIUMbuildenvadm.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUMinstall.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUMvagrant/debian/install.sh3# This file is part of openmediavault.COMMENT
MEDIUMvagrant/debian/patch.sh3# This file is part of openmediavault.COMMENT
MEDIUM…t/usr/share/openmediavault/mkrrdgraph/plugins.d/nut.py3# This file is part of OpenMediaVault.COMMENT
MEDIUM…diavault/confdb/migrations.d/conf.service.nut_5.1.0.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…are/openmediavault/confdb/create.d/conf.service.nut.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…openmediavault/confdb/create.d/conf.service.owntone.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…enmediavault/confdb/create.d/conf.system.apt.source.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…ault/confdb/migrations.d/conf.service.shairport_2.5.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…enmediavault/confdb/create.d/conf.service.shairport.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…/openmediavault/confdb/create.d/conf.service.podman.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…/usr/share/openmediavault/mkrrdgraph/plugins.d/disk.py3# This file is part of OpenMediaVault.COMMENT
MEDIUM…/openmediavault/confdb/create.d/conf.service.bcache.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…ult/confdb/migrations.d/conf.service.onedrive_7.1.0.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…ult/confdb/migrations.d/conf.service.onedrive_6.2.1.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…ult/confdb/migrations.d/conf.service.onedrive_6.0.1.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…ult/confdb/migrations.d/conf.service.onedrive_6.1.0.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…ult/confdb/migrations.d/conf.service.onedrive_6.2.9.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…penmediavault/confdb/create.d/conf.service.onedrive.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…re/openmediavault/confdb/create.d/conf.service.tftp.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…/confdb/migrations.d/conf.service.filebrowser_6.0.1.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…mediavault/confdb/create.d/conf.service.filebrowser.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…t/confdb/migrations.d/conf.service.photoprism_6.0.1.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…t/confdb/migrations.d/conf.service.photoprism_6.0.2.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…nmediavault/confdb/create.d/conf.service.photoprism.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…ediavault/confdb/create.d/conf.system.network.hosts.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…diavault/confdb/migrations.d/conf.service.k8s_8.1.0.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…diavault/confdb/migrations.d/conf.service.k8s_7.2.0.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…are/openmediavault/confdb/create.d/conf.service.k8s.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…ult/confdb/migrations.d/conf.service.clamav_0.3.0.1.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…iavault/confdb/migrations.d/conf.service.clamav_4.1.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…vault/confdb/migrations.d/conf.service.clamav_3.1.2.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…vault/confdb/migrations.d/conf.service.clamav_0.6.1.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…iavault/confdb/migrations.d/conf.service.clamav_3.3.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…vault/confdb/migrations.d/conf.service.clamav_3.2.3.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…ult/confdb/migrations.d/conf.service.clamav_0.4.0.1.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…vault/confdb/migrations.d/conf.service.clamav_7.0.0.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…ult/confdb/migrations.d/conf.service.clamav_0.3.0.2.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…/openmediavault/confdb/create.d/conf.service.clamav.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…re/openmediavault/confdb/create.d/conf.service.snmp.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…lt/confdb/migrations.d/conf.service.usbbackup_3.0.2.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…lt/confdb/migrations.d/conf.service.usbbackup_7.0.1.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…lt/confdb/migrations.d/conf.service.usbbackup_5.0.0.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…enmediavault/confdb/create.d/conf.service.usbbackup.sh3# This file is part of OpenMediaVault.COMMENT
MEDIUM…ib/python3/dist-packages/openmediavault/productinfo.py3# This file is part of OpenMediaVault.COMMENT
MEDIUM…lib/python3/dist-packages/openmediavault/mkrrdgraph.py3# This file is part of OpenMediaVault.COMMENT
MEDIUM…ython3/dist-packages/openmediavault/collectiontools.py3# This file is part of OpenMediaVault.COMMENT
MEDIUM…lt/usr/lib/python3/dist-packages/openmediavault/log.py3# This file is part of OpenMediaVault.COMMENT
MEDIUM…/usr/lib/python3/dist-packages/openmediavault/monit.py3# This file is part of OpenMediaVault.COMMENT
MEDIUM…sr/lib/python3/dist-packages/openmediavault/systemd.py3# This file is part of OpenMediaVault.COMMENT
MEDIUM…/lib/python3/dist-packages/openmediavault/sortutils.py3# This file is part of OpenMediaVault.COMMENT
MEDIUM…ib/python3/dist-packages/openmediavault/stringutils.py3# This file is part of OpenMediaVault.COMMENT
MEDIUM…r/lib/python3/dist-packages/openmediavault/__init__.py3# This file is part of OpenMediaVault.COMMENT
MEDIUM…/lib/python3/dist-packages/openmediavault/confdbadm.py3# This file is part of OpenMediaVault.COMMENT
MEDIUM…lt/usr/lib/python3/dist-packages/openmediavault/rpc.py3# This file is part of OpenMediaVault.COMMENT
MEDIUM…/usr/lib/python3/dist-packages/openmediavault/utils.py3# This file is part of OpenMediaVault.COMMENT
MEDIUM…r/lib/python3/dist-packages/openmediavault/settings.py3# This file is part of OpenMediaVault.COMMENT
MEDIUM…/lib/python3/dist-packages/openmediavault/procutils.py3# This file is part of OpenMediaVault.COMMENT
MEDIUM…lib/python3/dist-packages/openmediavault/exceptions.py3# This file is part of OpenMediaVault.COMMENT
179 more matches not shown…
Over-Commented Block347 hits · 346 pts
SeverityFileLineSnippetContext
LOWbuildenvadm.sh1#!/usr/bin/env bashCOMMENT
LOWinstall.sh1#!/bin/shCOMMENT
LOWvagrant/debian/install.sh1#!/bin/shCOMMENT
LOWvagrant/debian/patch.sh1#!/bin/shCOMMENT
LOW…t/usr/share/openmediavault/mkrrdgraph/plugins.d/nut.py1# -*- coding: utf-8 -*-COMMENT
LOW…diavault/confdb/migrations.d/conf.service.nut_5.1.0.sh1#!/bin/shCOMMENT
LOW…are/openmediavault/confdb/create.d/conf.service.nut.sh1#!/usr/bin/env dashCOMMENT
LOW…are/openmediavault/confdb/create.d/conf.service.nut.sh21COMMENT
LOWdeb/php-pam/pam-2.2.5/php_pam.h21COMMENT
LOWdeb/php-pam/pam-2.2.5/pam.c21#endifCOMMENT
LOW…openmediavault/confdb/create.d/conf.service.owntone.sh1#!/usr/bin/env dashCOMMENT
LOW…openmediavault/confdb/create.d/conf.service.owntone.sh21COMMENT
LOW…enmediavault/confdb/create.d/conf.system.apt.source.sh1#!/usr/bin/env dashCOMMENT
LOW…enmediavault/confdb/create.d/conf.system.apt.source.sh21COMMENT
LOW…enmediavault/confdb/create.d/conf.system.apt.source.sh41# <components>xxx</components>COMMENT
LOW…ault/confdb/migrations.d/conf.service.shairport_2.5.sh1#!/bin/shCOMMENT
LOW…enmediavault/confdb/create.d/conf.service.shairport.sh1#!/usr/bin/env dashCOMMENT
LOW…enmediavault/confdb/create.d/conf.service.shairport.sh21COMMENT
LOW…/openmediavault/confdb/create.d/conf.service.podman.sh1#!/usr/bin/env dashCOMMENT
LOW…/openmediavault/confdb/create.d/conf.service.podman.sh21COMMENT
LOW…/usr/share/openmediavault/mkrrdgraph/plugins.d/disk.py1# -*- coding: utf-8 -*-COMMENT
LOW…/openmediavault/confdb/create.d/conf.service.bcache.sh1#!/usr/bin/env dashCOMMENT
LOW…ult/confdb/migrations.d/conf.service.onedrive_7.1.0.sh1#!/usr/bin/env dashCOMMENT
LOW…ult/confdb/migrations.d/conf.service.onedrive_6.2.1.sh1#!/usr/bin/env dashCOMMENT
LOW…ult/confdb/migrations.d/conf.service.onedrive_6.0.1.sh1#!/usr/bin/env dashCOMMENT
LOW…ult/confdb/migrations.d/conf.service.onedrive_6.1.0.sh1#!/usr/bin/env dashCOMMENT
LOW…ult/confdb/migrations.d/conf.service.onedrive_6.2.9.sh1#!/usr/bin/env dashCOMMENT
LOW…penmediavault/confdb/create.d/conf.service.onedrive.sh1#!/usr/bin/env dashCOMMENT
LOW…penmediavault/confdb/create.d/conf.service.onedrive.sh21COMMENT
LOW…re/openmediavault/confdb/create.d/conf.service.tftp.sh1#!/usr/bin/env dashCOMMENT
LOW…re/openmediavault/confdb/create.d/conf.service.tftp.sh21COMMENT
LOW…/confdb/migrations.d/conf.service.filebrowser_6.0.1.sh1#!/usr/bin/env dashCOMMENT
LOW…mediavault/confdb/create.d/conf.service.filebrowser.sh1#!/usr/bin/env dashCOMMENT
LOW…mediavault/confdb/create.d/conf.service.filebrowser.sh21COMMENT
LOW…t/confdb/migrations.d/conf.service.photoprism_6.0.1.sh1#!/bin/shCOMMENT
LOW…t/confdb/migrations.d/conf.service.photoprism_6.0.2.sh1#!/bin/shCOMMENT
LOW…nmediavault/confdb/create.d/conf.service.photoprism.sh1#!/usr/bin/env dashCOMMENT
LOW…nmediavault/confdb/create.d/conf.service.photoprism.sh21COMMENT
LOW…ediavault/confdb/create.d/conf.system.network.hosts.sh1#!/usr/bin/env dashCOMMENT
LOW…ediavault/confdb/create.d/conf.system.network.hosts.sh21COMMENT
LOW…diavault/confdb/migrations.d/conf.service.k8s_8.1.0.sh1#!/bin/shCOMMENT
LOW…diavault/confdb/migrations.d/conf.service.k8s_7.2.0.sh1#!/bin/shCOMMENT
LOW…are/openmediavault/confdb/create.d/conf.service.k8s.sh1#!/usr/bin/env dashCOMMENT
LOW…are/openmediavault/confdb/create.d/conf.service.k8s.sh21COMMENT
LOW…are/openmediavault/confdb/create.d/conf.service.k8s.sh41# <expose>0|1</expose>COMMENT
LOW…ult/confdb/migrations.d/conf.service.clamav_0.3.0.1.sh1#!/bin/shCOMMENT
LOW…iavault/confdb/migrations.d/conf.service.clamav_4.1.sh1#!/bin/shCOMMENT
LOW…vault/confdb/migrations.d/conf.service.clamav_3.1.2.sh1#!/bin/shCOMMENT
LOW…vault/confdb/migrations.d/conf.service.clamav_0.6.1.sh1#!/bin/shCOMMENT
LOW…iavault/confdb/migrations.d/conf.service.clamav_3.3.sh1#!/bin/shCOMMENT
LOW…vault/confdb/migrations.d/conf.service.clamav_3.2.3.sh1#!/bin/shCOMMENT
LOW…ult/confdb/migrations.d/conf.service.clamav_0.4.0.1.sh1#!/bin/shCOMMENT
LOW…vault/confdb/migrations.d/conf.service.clamav_7.0.0.sh1#!/bin/shCOMMENT
LOW…ult/confdb/migrations.d/conf.service.clamav_0.3.0.2.sh1#!/bin/shCOMMENT
LOW…/openmediavault/confdb/create.d/conf.service.clamav.sh1#!/usr/bin/env dashCOMMENT
LOW…/openmediavault/confdb/create.d/conf.service.clamav.sh21COMMENT
LOW…/openmediavault/confdb/create.d/conf.service.clamav.sh41# <scanelf>1</scanelf>COMMENT
LOW…/openmediavault/confdb/create.d/conf.service.clamav.sh61# <job>COMMENT
LOW…/openmediavault/confdb/create.d/conf.service.clamav.sh81# </jobs>COMMENT
LOW…re/openmediavault/confdb/create.d/conf.service.snmp.sh1#!/usr/bin/env dashCOMMENT
287 more matches not shown…
Hyper-Verbose Identifiers175 hits · 200 pts
SeverityFileLineSnippetContext
LOW…tests/python/test_openmediavault_device_blockdevice.py70 def test_canonical_device_file(self, _):CODE
LOW…tests/python/test_openmediavault_device_blockdevice.py81 def test_device_name_canonical(self, _):CODE
LOW…tests/python/test_openmediavault_device_blockdevice.py98 def test_has_udev_property_exists(self, mock_from_device_file):CODE
LOW…tests/python/test_openmediavault_device_blockdevice.py106 def test_has_udev_property_not_exists(self, mock_from_device_file):CODE
LOW…tests/python/test_openmediavault_device_blockdevice.py124 def test_get_udev_property_default(self, mock_from_device_file):CODE
LOW…tests/python/test_openmediavault_device_blockdevice.py243 def test_sysfs_value_class_block(self):CODE
LOW…iavault/unittests/python/test_openmediavault_device.py55 def test_is_device_file_by_uuid(self):CODE
LOW…iavault/unittests/python/test_openmediavault_device.py75 def test_is_device_file_by_id(self):CODE
LOW…iavault/unittests/python/test_openmediavault_device.py94 def test_is_device_file_by_label(self):CODE
LOW…iavault/unittests/python/test_openmediavault_device.py114 def test_is_device_file_by_path(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py75 def test_check_format_devicefile_sata(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py79 def test_check_format_devicefile_sata_partition(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py83 def test_check_format_devicefile_nvme(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py88 def test_check_format_devicefile_nvme_partition(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py93 def test_check_format_devicefile_mmc(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py98 def test_check_format_devicefile_mmc_partition(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py103 def test_check_format_devicefile_md_raid(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py107 def test_check_format_devicefile_md_raid_subdir(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py111 def test_check_format_devicefile_device_mapper(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py115 def test_check_format_devicefile_lvm(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py120 def test_check_format_devicefile_virtio(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py124 def test_check_format_devicefile_loop(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py128 def test_check_format_devicefile_by_id_ata(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py136 def test_check_format_devicefile_by_uuid(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py144 def test_check_format_devicefile_by_id_md_name(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py152 def test_check_format_devicefile_by_id_md_uuid(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py160 def test_check_format_devicefile_by_path(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py168 def test_check_format_devicefile_fail_semicolon_injection(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py177 def test_check_format_devicefile_fail_rce_poc(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py188 def test_check_format_devicefile_fail_pipe_injection(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py198 def test_check_format_devicefile_fail_and_injection(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py207 def test_check_format_devicefile_fail_subshell_injection(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py216 def test_check_format_devicefile_fail_backtick_injection(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py225 def test_check_format_devicefile_fail_redirect_injection(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py234 def test_check_format_devicefile_fail_newline_injection(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py243 def test_check_format_devicefile_fail_variable_injection(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py252 def test_check_format_devicefile_fail_no_dev_prefix(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py261 def test_check_format_devicefile_fail_wrong_path(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py282 def test_check_format_dirpath_fail(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py291 def test_check_format_sharename(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py342 def test_check_format_domainname(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py364 def test_check_format_sshpubkey_openssh(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py369 def test_check_format_sshpubkey_openssh_fail(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py396 def test_check_format_sshprivkey_rsa(self):CODE
LOW…ittests/python/test_openmediavault_datamodel_schema.py405 def test_check_format_sshprivkey_rsa_fail(self):CODE
LOW…lt/unittests/python/test_openmediavault_collections.py166 def test_setdefault_without_default(self):CODE
LOW…lt/unittests/python/test_openmediavault_collections.py171 def test_setdefault_existing_key_unchanged(self):CODE
LOW…lt/unittests/python/test_openmediavault_collections.py181 def test_copy_top_level_is_independent(self):CODE
LOW…lt/unittests/python/test_openmediavault_collections.py188 def test_copy_nested_shares_reference(self):CODE
LOW…lt/unittests/python/test_openmediavault_collections.py201 def test_deepcopy_scalar_is_independent(self):CODE
LOW…lt/unittests/python/test_openmediavault_collections.py208 def test_deepcopy_nested_dict_is_independent(self):CODE
LOW…lt/unittests/python/test_openmediavault_collections.py214 def test_deepcopy_nested_list_is_independent(self):CODE
LOW…lt/unittests/python/test_openmediavault_json_schema.py99 def test_validate_maximum_fail(self):CODE
LOW…lt/unittests/python/test_openmediavault_json_schema.py106 def test_validate_minimum_fail(self):CODE
LOW…lt/unittests/python/test_openmediavault_json_schema.py113 def test_check_format_unknown_fail(self):CODE
LOW…lt/unittests/python/test_openmediavault_json_schema.py130 def test_check_format_hostname(self):CODE
LOW…lt/unittests/python/test_openmediavault_json_schema.py134 def test_check_format_hostname_fail(self):CODE
LOW…lt/unittests/python/test_openmediavault_json_schema.py194 def test_check_format_uri_no_path(self):CODE
LOW…lt/unittests/python/test_openmediavault_json_schema.py200 def test_check_format_uri_with_path_only(self):CODE
LOW…lt/unittests/python/test_openmediavault_json_schema.py206 def test_check_format_uri_fail_empty(self):CODE
115 more matches not shown…
Unused Imports26 hits · 26 pts
SeverityFileLineSnippetContext
LOW…b/python3/dist-packages/openmediavault/net/__init__.py21CODE
LOW…ython3/dist-packages/openmediavault/config/__init__.py21CODE
LOW…ython3/dist-packages/openmediavault/config/__init__.py22CODE
LOW…ython3/dist-packages/openmediavault/config/__init__.py23CODE
LOW…/python3/dist-packages/openmediavault/json/__init__.py21CODE
LOW…ython3/dist-packages/openmediavault/device/__init__.py21CODE
LOW…ython3/dist-packages/openmediavault/device/__init__.py22CODE
LOW…ython3/dist-packages/openmediavault/device/__init__.py22CODE
LOW…ython3/dist-packages/openmediavault/device/__init__.py23CODE
LOW…on3/dist-packages/openmediavault/device/plugins/mmc.py21CODE
LOW…hon3/dist-packages/openmediavault/device/plugins/md.py21CODE
LOW…hon3/dist-packages/openmediavault/device/plugins/hd.py21CODE
LOW…3/dist-packages/openmediavault/device/plugins/cdrom.py21CODE
LOW…hon3/dist-packages/openmediavault/device/plugins/sg.py21CODE
LOW…on3/dist-packages/openmediavault/device/plugins/rbd.py21CODE
LOW…on3/dist-packages/openmediavault/device/plugins/nvm.py21CODE
LOW…on3/dist-packages/openmediavault/device/plugins/xen.py21CODE
LOW…3/dist-packages/openmediavault/device/plugins/cciss.py21CODE
LOW…n3/dist-packages/openmediavault/device/plugins/loop.py21CODE
LOW…on3/dist-packages/openmediavault/device/plugins/fio.py21CODE
LOW…on3/dist-packages/openmediavault/device/plugins/i2o.py21CODE
LOW…/dist-packages/openmediavault/device/plugins/virtio.py21CODE
LOW…on3/dist-packages/openmediavault/datamodel/__init__.py21CODE
LOW…on3/dist-packages/openmediavault/datamodel/__init__.py22CODE
LOW…enmediavault/firstaid/modules.d/10configure_network.py25CODE
LOW…/unittests/python/test_openmediavault_config_object.py21CODE
Deep Nesting24 hits · 24 pts
SeverityFileLineSnippetContext
LOW…t/usr/share/openmediavault/mkrrdgraph/plugins.d/nut.py29CODE
LOW…lib/python3/dist-packages/openmediavault/mkrrdgraph.py62CODE
LOW…ython3/dist-packages/openmediavault/collectiontools.py129CODE
LOW…ython3/dist-packages/openmediavault/collectiontools.py172CODE
LOW…r/lib/python3/dist-packages/openmediavault/__init__.py38CODE
LOW…r/lib/python3/dist-packages/openmediavault/settings.py64CODE
LOW…ython3/dist-packages/openmediavault/config/database.py500CODE
LOW…ython3/dist-packages/openmediavault/config/database.py543CODE
LOW…ython3/dist-packages/openmediavault/config/database.py510CODE
LOW…thon3/dist-packages/openmediavault/config/datamodel.py202CODE
LOW…thon3/dist-packages/openmediavault/config/datamodel.py272CODE
LOW…ib/python3/dist-packages/openmediavault/json/schema.py90CODE
LOW…ib/python3/dist-packages/openmediavault/json/schema.py178CODE
LOW…ib/python3/dist-packages/openmediavault/json/schema.py395CODE
LOW…ib/python3/dist-packages/openmediavault/json/schema.py523CODE
LOW…ib/python3/dist-packages/openmediavault/json/schema.py110CODE
LOW…hon3/dist-packages/openmediavault/device/plugins/md.py69CODE
LOW…thon3/dist-packages/openmediavault/datamodel/schema.py31CODE
LOW…sr/share/openmediavault/confdbadm/commands.d/delete.py37CODE
LOW…enmediavault/firstaid/modules.d/10configure_network.py39CODE
LOW…penmediavault/firstaid/modules.d/20configure_webgui.py34CODE
LOW…penmediavault/firstaid/modules.d/50fix_rrd_database.py41CODE
LOWdeb/openmediavault/srv/salt/_modules/omv_utils.py403CODE
LOWdeb/openmediavault/srv/salt/_modules/omv_utils.py430CODE
Excessive Try-Catch Wrapping20 hits · 23 pts
SeverityFileLineSnippetContext
LOW…/lib/python3/dist-packages/openmediavault/confdbadm.py163 except Exception as e:CODE
LOW…ib/python3/dist-packages/openmediavault/json/schema.py427 except Exception: # pylint: disable=broad-exceptCODE
LOW…hon3/dist-packages/openmediavault/device/plugins/md.py157 except Exception:CODE
LOW…hon3/dist-packages/openmediavault/device/plugins/dm.py221 except Exception:CODE
LOW…sr/share/openmediavault/confdbadm/commands.d/delete.py75 except Exception as e:CODE
LOW…sr/share/openmediavault/confdbadm/commands.d/create.py81 except Exception as e:CODE
LOW…sr/share/openmediavault/confdbadm/commands.d/create.py93 except Exception as e:CODE
LOW…r/share/openmediavault/confdbadm/commands.d/migrate.py110 except Exception as e:CODE
MEDIUM…r/share/openmediavault/confdbadm/commands.d/migrate.py42def argparse_is_version(self, arg):CODE
LOW…enmediavault/firstaid/modules.d/10configure_network.py135 except Exception: # pylint: disable=broad-exceptCODE
LOW…enmediavault/firstaid/modules.d/10configure_network.py166 except Exception: # pylint: disable=broad-exceptCODE
LOW…enmediavault/firstaid/modules.d/10configure_network.py189 except Exception: # pylint: disable=broad-exceptCODE
LOW…enmediavault/firstaid/modules.d/10configure_network.py258 except Exception: # pylint: disable=broad-exceptCODE
LOW…enmediavault/firstaid/modules.d/10configure_network.py313 except Exception: # pylint: disable=broad-exceptCODE
LOW…enmediavault/firstaid/modules.d/10configure_network.py341 except Exception: # pylint: disable=broad-exceptCODE
LOW…share/openmediavault/firstaid/modules.d/60clean_apt.py60 except Exception as e:CODE
LOW…/openmediavault/firstaid/modules.d/70submit_sysinfo.py45 except Exception: # pylint: disable=broad-exceptCODE
LOW…iavault/firstaid/modules.d/45fix_dirty_modules_file.py51 except Exception:CODE
LOW…sr/share/openmediavault/confdb/populate.d/40netplan.sh44 except Exception as e:CODE
MEDIUM…sr/share/openmediavault/confdb/populate.d/40netplan.sh33def load_netplan_yaml(file_path) -> Optional[Dict]:CODE
Modern Structural Boilerplate20 hits · 20 pts
SeverityFileLineSnippetContext
LOW…ib/python3/dist-packages/openmediavault/productinfo.py21__all__ = ["ProductInfo"]CODE
LOW…lib/python3/dist-packages/openmediavault/mkrrdgraph.py21__all__ = ['IPlugin', 'load_collectd_config']CODE
LOW…ython3/dist-packages/openmediavault/collectiontools.py21__all__ = ["flatten", "DotDict", "DotCollapsedDict"]CODE
LOW…lt/usr/lib/python3/dist-packages/openmediavault/log.py21__all__ = ["info", "warning", "error", "debug"]CODE
LOW…/usr/lib/python3/dist-packages/openmediavault/monit.py21__all__ = ['Monit']CODE
LOW…sr/lib/python3/dist-packages/openmediavault/systemd.py21__all__ = ["SystemdException", "Properties", "Job", "Manager", "Unit"]CODE
LOW…ib/python3/dist-packages/openmediavault/stringutils.py21__all__ = [CODE
LOW…r/lib/python3/dist-packages/openmediavault/__init__.py21__all__ = ["bool", "getenv", "setenv"]CODE
LOW…/lib/python3/dist-packages/openmediavault/confdbadm.py21__all__ = ["ICommand"]CODE
LOW…/usr/lib/python3/dist-packages/openmediavault/utils.py21__all__ = ["to_bool"]CODE
LOW…r/lib/python3/dist-packages/openmediavault/settings.py21__all__ = ["Environment", "EnvironmentVariable"]CODE
LOW…/lib/python3/dist-packages/openmediavault/procutils.py33__all__ = ["Popen", "call", "check_call", "check_output"]CODE
LOW…lib/python3/dist-packages/openmediavault/exceptions.py21__all__ = ["AssertException"]CODE
LOW…r/lib/python3/dist-packages/openmediavault/firstaid.py21__all__ = ["IModule"]CODE
LOW…/python3/dist-packages/openmediavault/config/object.py21__all__ = ["Object"]CODE
LOW…ython3/dist-packages/openmediavault/config/database.py21__all__ = [CODE
LOW…thon3/dist-packages/openmediavault/config/datamodel.py21__all__ = ["Datamodel"]CODE
LOW…ib/python3/dist-packages/openmediavault/json/schema.py21__all__ = [CODE
LOW…n3/dist-packages/openmediavault/datamodel/datamodel.py21__all__ = ["Datamodel"]CODE
LOW…thon3/dist-packages/openmediavault/datamodel/schema.py21__all__ = ["Schema"]CODE
Cross-File Repetition3 hits · 15 pts
SeverityFileLineSnippetContext
HIGH…hon3/dist-packages/openmediavault/device/plugins/md.py0get the slave devices of this device. :return: a list of device files. :rtype: list[str]STRING
HIGH…hon3/dist-packages/openmediavault/device/plugins/dm.py0get the slave devices of this device. :return: a list of device files. :rtype: list[str]STRING
HIGH…/dist-packages/openmediavault/device/plugins/bcache.py0get the slave devices of this device. :return: a list of device files. :rtype: list[str]STRING
Redundant / Tautological Comments7 hits · 10 pts
SeverityFileLineSnippetContext
LOW…ib/python3/dist-packages/openmediavault/stringutils.py104 # Check if it is an UUID v4.COMMENT
LOW…ib/python3/dist-packages/openmediavault/stringutils.py107 # Check if it is a NTFS, FAT or ISO9660 filesystem identifier.COMMENT
LOW…ib/python3/dist-packages/openmediavault/json/schema.py149 # Check if the node has the requested key/value pair.COMMENT
LOW…ib/python3/dist-packages/openmediavault/json/schema.py514 # Check if the 'required' attribute is set.COMMENT
LOW…python3/dist-packages/openmediavault/device/storage.py286 # Check if a plugin implements the `StorageDevice` classCOMMENT
LOW…/openmediavault/firstaid/modules.d/70submit_sysinfo.py40 # Check if postfix is running.COMMENT
LOWdeb/openmediavault/srv/salt/_grains/omv.py24 # Check if the system is a RPi device.COMMENT
Cross-Language Confusion1 hit · 8 pts
SeverityFileLineSnippetContext
HIGH…ittests/python/test_openmediavault_datamodel_schema.py203 "/dev/sda && rm -rf /", {"format": "devicefile"}, "field1"CODE
Fake / Example Data7 hits · 8 pts
SeverityFileLineSnippetContext
LOW…lt/unittests/python/test_openmediavault_json_schema.py128 schema._check_format("test@test.com", {"format": "email"}, "field2")CODE
LOW…ault/unittests/php/test_openmediavault_json_schema.php345 $schema->validate("test@test.com");CODE
LOW…rkbench/src/app/shared/forms/custom-validators.spec.ts34 emailControl.setValue('foo@bar.com');CODE
LOW…rkbench/src/app/shared/forms/custom-validators.spec.ts40 emailControl.setValue('foo@bar.com');CODE
LOW…rkbench/src/app/shared/forms/custom-validators.spec.ts132 formControl.setValue('foo@bar.com');CODE
LOW…rkbench/src/app/shared/models/datatable-column.type.ts123 | 'placeholder'CODE
LOW…p/shared/components/datatable/datatable.component.html255 <ng-template [ngSwitchCase]="'placeholder'">CODE
Structural Annotation Overuse5 hits · 8 pts
SeverityFileLineSnippetContext
LOW…ult/usr/share/openmediavault/docs/AUTH_PLUGIN_GUIDE.md105### Step 1: Create a Plugin RPC ServiceCOMMENT
LOW…ult/usr/share/openmediavault/docs/AUTH_PLUGIN_GUIDE.md235### Step 2: Create Challenge UI ComponentCOMMENT
LOW…ult/usr/share/openmediavault/docs/AUTH_PLUGIN_GUIDE.md286### Step 3: Register Authentication RouteCOMMENT
LOW…ult/usr/share/openmediavault/docs/AUTH_PLUGIN_GUIDE.md355# Step 1: Login (store the session cookie in a cookie jar).COMMENT
LOW…ult/usr/share/openmediavault/docs/AUTH_PLUGIN_GUIDE.md375# Step 2: Complete challenge. The session cookie identifies the pending login.COMMENT
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
LOW…hon3/dist-packages/openmediavault/device/plugins/dm.py169 # Because of that we simply use device files that look likeCOMMENT