AI Slop Code RIsk Monitor

cockpit-project/cockpit

Cockpit is a web-based graphical interface for servers.

4.4 Low pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for cockpit-project/cockpit, a JavaScript project with 15,201 GitHub stars. SynthScan examined 174,366 lines of code across 878 source files, recording 445 pattern matches distributed across 17 syntactic categories. The legacy adjusted pattern signal is 4.4 (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.

4.4
Adjusted Signal
4.4
Raw Pattern Score
100%
Time Factor
2026-10-09
Last Push
15.2K
Stars
JavaScript
Language
174.4K
Lines of Code
878
Files
445
Pattern Hits
2026-10-12
Scan Date
0.08
HC Hit Rate

Risk Review · v3

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

Cognitive Ownership Risk 7.9/100 · LOW

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

Hallucinated Dependency & Supply Chain Risk 6.8/100 · LOW

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

Agent Over-Engineering Ratio 9.0/100 · LOW

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

PR Review Velocity Impact 21.5/100 · LOW

Which changes need focused human review? 445 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 3HIGH 67MEDIUM 18LOW 357

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 445 distinct pattern matches across 17 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.

Cross-Language Confusion37 hits · 190 pts
SeverityFileLineSnippetContext
HIGHtest/pytest/test_packages.py73 (confdir / 'basic.override.json').write_text('{"description": null, "priority": 5, "does-not-exist": null}')CODE
HIGH⚡test/common/storagelib.py115 ls -la /sys/block/{os.path.basename(dev)}/holders/ >&2 || trueCODE
HIGH⚡test/common/storagelib.py116 fuser -v {dev} >&2 || trueCODE
HIGH⚡test/common/storagelib.py605 ! test -f /etc/kernel/cmdline || mv /etc/kernel/cmdline /etc/kernel/cmdline.stowedCODE
HIGH⚡test/common/storagelib.py608 ! test -f /etc/kernel/cmdline.stowed || mv /etc/kernel/cmdline.stowed /etc/kernel/cmdlineCODE
HIGH⚡test/common/storagelib.py611! test -f /etc/kernel/cmdline || cp /etc/kernel/cmdline /new-root/etc/kernel/cmdlineCODE
HIGHtest/common/storagelib.py55 dev = self.machine.execute('while true; do O=$(ls /sys/bus/pseudo/drivers/scsi_debug/adapter*/host*/target*/*:*/CODE
HIGHtest/common/storagelib.py56 '[ -n "$O" ] && break || sleep 0.1; done; echo "/dev/$O"').strip()CODE
HIGHtest/common/storagelib.py103 systemctl stop udisks2 || trueCODE
HIGHtest/common/storagelib.py235 result.push(lis[i].textContent);CODE
HIGHtest/common/storagelib.py719 ver = self.machine.execute("busctl --system get-property org.freedesktop.UDisks2 /org/freedesktop/UDisks2/ManageSTRING
HIGHtest/common/storagelib.py728 crypto_types = self.machine.execute("busctl --system get-property org.freedesktop.UDisks2 /org/freedesktop/UDiskSTRING
HIGH⚡test/common/testlib.py1957 " umount $d || true; dmsetup remove --force $d || true; "CODE
HIGH⚡test/common/testlib.py1960 " umount /dev/$dev || true; "CODE
HIGH⚡test/common/testlib.py1970 loginctl terminate-user $u 2>/dev/null || trueCODE
HIGH⚡test/common/testlib.py1971 loginctl kill-user $u 2>/dev/null || trueCODE
HIGH⚡test/common/testlib.py1972 pkill -9 -u $u || trueCODE
HIGHtest/common/testlib.py276 sizzle_js = sizzle_js.replace('context = context || document;', 'context = context || window.document;')CODE
HIGHtest/common/testlib.py1946 m.execute("systemctl try-restart sssd || true")CODE
HIGHtest/common/testlib.py2466 cmd = f"umount {path} || {{ fuser -uvk {path} {path}/* >&2 || true; sleep 1; umount {path}; }}"CODE
HIGHtest/common/testlib.py2566 self.machine.execute("test -f /home/admin/.ssh/id_rsa || ssh-keygen -f /home/admin/.ssh/id_rsa -t rsa -N ''")CODE
HIGHtest/common/netlib.py112 if 'default' in m.execute("virsh net-list --name || true"):CODE
HIGHtest/common/packagelib.py58 self.addCleanup(self.machine.execute, "systemctl stop packagekit; systemctl reset-failed packagekit || true")CODE
HIGH⚡test/common/packagelib.py80 self.machine.execute("test -d /var/lib/PackageKit/alpm && rm -r /var/lib/PackageKit/alpm || true")CODE
HIGH⚡test/common/packagelib.py80 self.machine.execute("test -d /var/lib/PackageKit/alpm && rm -r /var/lib/PackageKit/alpm || true")CODE
HIGH⚡test/common/packagelib.py84 fuser -k /var/lib/pacman/db.lck || true;CODE
HIGHtest/common/packagelib.py114 self.machine.execute("systemctl kill --signal=SIGKILL packagekit || true; rm -rf /var/cache/PackageKit")STRING
HIGHtest/common/packagelib.py115 self.machine.execute("systemctl reset-failed packagekit || true")STRING
HIGH⚡test/common/packagelib.py129 self.machine.execute("rm -r /etc/systemd/system/dnf-automatic* && systemctl daemon-reload || true")STRING
HIGH⚡test/common/packagelib.py133 self.addCleanup(self.machine.execute, "systemctl disable --now dnf5-automatic.timer 2>/dev/null || true")STRING
HIGH⚡test/common/packagelib.py135 "rm -r /etc/systemd/system/dnf5-automatic*.d && systemctl daemon-reload || true")STRING
HIGH⚡test/common/packagelib.py135 "rm -r /etc/systemd/system/dnf5-automatic*.d && systemctl daemon-reload || true")STRING
HIGHtest/common/packagelib.py225 self.addCleanup(m.execute, f"dpkg -P --force-depends --force-remove-reinstreq {name} 2>/dev/null || true")STRING
HIGHtest/common/packagelib.py312 self.addCleanup(self.machine.execute, f"rpm -e --nodeps {name} 2>/dev/null || true")STRING
HIGHtest/common/packagelib.py403 self.addCleanup(self.machine.execute, f"pacman -Rdd --noconfirm {name} 2>/dev/null || true")STRING
HIGHtest/common/packagelib.py483 self.addCleanup(self.machine.execute, "kill %i || true" % pid)STRING
HIGHtest/common/packagelib.py495 if 'testrepo' not in self.machine.execute('grep testrepo /etc/pacman.conf || true'):STRING
Empty Error Handlers30 hits · 150 pts
SeverityFileLineSnippetContext
HIGHtest/pytest/conftest.py72except ChildProcessError:CODE
HIGHtest/pytest/test_bridge.py1519except KeyError:CODE
HIGHtest/pytest/test_bridge.py1524except KeyError:CODE
HIGHtest/pytest/ws/mocksessionsocket.py148except (BrokenPipeError, ConnectionResetError):CODE
HIGHtest/verify/conftest.py60except AttributeError:CODE
HIGHtest/common/testlib.py278except FileNotFoundError:CODE
HIGHtest/common/testlib.py1710except FileNotFoundError:CODE
HIGHtest/common/webdriver_bidi.py180except ProcessLookupError:CODE
HIGHpkg/storaged/mount-users.py98except OSError:CODE
HIGHpkg/storaged/crypto/luksmeta-monitor-hack.py91except (subprocess.CalledProcessError, FileNotFoundError):CODE
HIGHpkg/storaged/crypto/luksmeta-monitor-hack.py110except subprocess.CalledProcessError:CODE
HIGHpkg/storaged/nfs/nfs-mounts.py163except OSError:CODE
HIGHpkg/storaged/nfs/nfs-mounts.py181except subprocess.CalledProcessError:CODE
HIGHpkg/storaged/legacy-vdo/vdo-monitor.py106except AttributeError:CODE
HIGHpkg/apps/watch-appstream.py326except KeyError:CODE
HIGHsrc/build_backend.py24except FileNotFoundError: # ...but not present in tarball...CODE
HIGHsrc/cockpit/bridge.py198except (BrokenPipeError, ConnectionResetError):CODE
HIGHsrc/cockpit/peer.py73except asyncio.CancelledError: # we did that (below)CODE
HIGHsrc/cockpit/peer.py123except (OSError, PeerExited, CockpitProblem, asyncio.CancelledError):CODE
HIGHsrc/cockpit/polkit.py85except ProcessLookupError:CODE
HIGHsrc/cockpit/router.py343except (BrokenPipeError, ConnectionResetError):CODE
HIGHsrc/cockpit/beiboot.py490except BrokenPipeError:CODE
HIGHsrc/cockpit/misc/bootloader.py48except OSError:CODE
HIGHsrc/cockpit/misc/bootloader.py28except OSError:CODE
HIGHsrc/cockpit/misc/print.py187except EOFError:CODE
HIGHsrc/cockpit/channels/pcp.py592except IndexError:CODE
HIGHsrc/cockpit/channels/dbus.py128except KeyError:CODE
HIGHsrc/cockpit/channels/dbus.py134except BusError:CODE
HIGHsrc/cockpit/channels/dbus.py452except BusError:CODE
HIGHsrc/cockpit/channels/dbus.py282except InterruptedError:CODE
Hyper-Verbose Identifiers97 hits · 92 pts
SeverityFileLineSnippetContext
LOWtest/pytest/test_packages.py34def test_parse_accept_language(test_input: str, expected: 'tuple[str]') -> None:CODE
LOWtest/pytest/test_packages.py92def test_override_invalid_json(pkgdir: Path, caplog: pytest.LogCaptureFixture) -> None:CODE
LOWtest/pytest/test_packages.py104def test_override_invalid_json_does_not_hide_later_ones(CODE
LOWtest/pytest/test_packages.py195def test_condition_hides_priority(pkgdir: Path) -> None:CODE
LOWtest/pytest/test_packages.py272def test_conditions_any_errors(pkgdir: Path) -> None:CODE
LOWtest/pytest/test_packages.py376def test_filename_gz_suffix_only(pkgdir: Path) -> None:CODE
LOWtest/pytest/test_packages.py396def test_overlapping_minified(pkgdir: Path) -> None:CODE
LOWtest/pytest/test_http_channel.py125async def test_tls_request_no_validate(transport: MockTransport, tls_server: int) -> None:CODE
LOWtest/pytest/test_pcp.py253def unsupported_metric_archive(tmpdir_factory):CODE
LOWtest/pytest/test_pcp.py384async def test_pcp_instances_option(transport, instances_archive):CODE
LOWtest/pytest/test_pcp.py409async def test_pcp_omit_instances_option(transport, instances_archive):CODE
LOWtest/pytest/test_pcp.py483async def test_pcp_negative_timestamp(transport, timestamps_archive):CODE
LOWtest/pytest/test_pcp.py539async def test_pcp_instances_change(transport, instances_change_archive):CODE
LOWtest/pytest/test_pcp.py568async def test_pcp_scale_memory_unit(transport, mem_avail_archive):CODE
LOWtest/pytest/test_pcp.py654async def test_pcp_unsupported_metric(transport, unsupported_metric_archive):CODE
LOWtest/pytest/test_transport.py532 async def test_write_backlog_eof_and_close(self) -> None:CODE
LOWtest/pytest/test_browser.py107async def test_timeformat_timezones(CODE
LOWtest/pytest/test_peer.py84async def test_shutdown_before_init(monkeypatch, transport, rule):CODE
LOWtest/pytest/test_peer.py125async def test_await_broken_connect(bridge):CODE
LOWtest/pytest/test_peer.py137async def test_await_broken_after_connect(bridge):CODE
LOWtest/pytest/test_peer.py163async def test_await_cancellable_connect_init(bridge):CODE
LOWtest/pytest/test_peer.py173async def test_await_cancellable_connect_close(monkeypatch, bridge):CODE
LOWtest/pytest/test_samples.py119def test_temperature_descriptions():CODE
LOWtest/pytest/test_samples.py150def test_cpu_temperature_zero_reading(hwmon_mock):CODE
LOWtest/pytest/test_bridge.py177async def verify_root_bridge_not_running(bridge: Bridge, transport: MockTransport) -> None:CODE
LOWtest/pytest/test_bridge.py186async def verify_root_bridge_running(bridge: Bridge, transport: MockTransport) -> None:CODE
LOWtest/pytest/test_bridge.py267async def test_superuser_dbus_wrong_pw(bridge: Bridge, transport: MockTransport, monkeypatch) -> None:CODE
LOWtest/pytest/test_bridge.py1330async def test_fsinfo_nofollow_watch(transport: MockTransport) -> None:CODE
LOWtest/pytest/test_bridge.py1335async def test_fsinfo_nofollow_targets(transport: MockTransport) -> None:CODE
LOWtest/pytest/test_bridge.py1384async def test_fsinfo_onlydir_watch(transport: MockTransport, fsinfo_test_cases: 'dict[Path, JsonObject]') -> None:CODE
LOWtest/pytest/test_bridge.py1403async def test_fsinfo_watch_identity_changes(CODE
LOWtest/pytest/test_bridge.py1647def test_is_valid_superuser_config_sudo_askpass(tmp_path: Path, *, supports_askpass: bool) -> None:STRING
LOWtest/pytest/test_bridge.py1659def test_is_valid_superuser_config_not_sudo(tmp_path: Path) -> None:STRING
LOWtest/pytest/test_bridge.py1677async def test_is_valid_superuser_config(STRING
LOWtest/pytest/ws/test_authorize.py73def test_parse_subject_invalid(challenge: str) -> None:CODE
LOWtest/pytest/ws/test_authorize.py111def test_build_basic_roundtrip() -> None:CODE
LOWtest/pytest/ws/test_authorize.py127def test_build_basic_with_known_hosts() -> None:CODE
LOWtest/pytest/ws/test_authorize.py153def test_parse_negotiate_invalid(response: str) -> None:CODE
LOWtest/pytest/ws/test_authorize.py170def test_build_negotiate_roundtrip() -> None:CODE
LOW⚡test/pytest/ws/test_authorize.py183def test_parse_x_conversation(CODE
LOW⚡test/pytest/ws/test_authorize.py191def test_parse_x_conversation_invalid() -> None:CODE
LOW⚡test/pytest/ws/test_authorize.py196def test_build_x_conversation_with_prompt() -> None:CODE
LOW⚡test/pytest/ws/test_authorize.py202def test_build_x_conversation_no_prompt() -> None:CODE
LOW⚡test/pytest/ws/test_authorize.py208def test_build_x_conversation_generate() -> None:CODE
LOW⚡test/pytest/ws/test_authorize.py215def test_build_x_conversation_empty_invalid() -> None:CODE
LOW⚡test/pytest/ws/test_authorize.py220def test_build_x_conversation_roundtrip() -> None:CODE
LOWtest/verify/conftest.py31def pytest_collection_modifyitems(session: pytest.Session, items: List[pytest.Item]) -> None:CODE
LOWtest/common/test-functions.js348function currentFrameAbsolutePosition() {CODE
LOWtest/common/storagelib.py265 def dialog_wait_apply_enabled(self) -> None:CODE
LOWtest/common/storagelib.py268 def dialog_wait_apply_disabled(self) -> None:CODE
LOWtest/common/storagelib.py436 def assert_not_in_configuration(self, dev: str, tab: str, field: str, text: str) -> None:CODE
LOWtest/common/storagelib.py439 def child_configuration_field(self, dev: str, tab: str, field: str) -> str:CODE
LOWtest/common/storagelib.py453 def assert_in_child_configuration(self, dev: str, tab: str, field: str, text: str) -> None:CODE
LOWtest/common/storagelib.py456 def lvol_child_configuration_field(self, lvol: str, tab: str, field: str) -> str:CODE
LOWtest/common/storagelib.py469 def assert_in_lvol_child_configuration(self, lvol: str, tab: str, field: str, text: str) -> None:CODE
LOWtest/common/storagelib.py472 def setup_systemd_password_agent(self, password: str) -> None:CODE
LOW⚡test/common/storagelib.py125 def add_targetd_loopback_disk(self, index: str, size: int = 50) -> str:STRING
LOWtest/common/storagelib.py671 def check_dropdown_action_disabled(self, parent: str, title: str, expected_text: str) -> None:STRING
LOWtest/common/storagelib.py687 def wait_card_button_disabled(self, card_title: str, button_title: str) -> None:STRING
LOWtest/common/lcov.py448def prepare_for_code_coverage() -> None:CODE
37 more matches not shown…
Over-Commented Block71 hits · 68 pts
SeverityFileLineSnippetContext
LOWfiles.js181 from: path.resolve(nodedir, fontsdir, subdir, 'RedHat' + name + '.woff2'),COMMENT
LOWpackit.yaml81 trigger: commitCOMMENT
LOWtest/common/test-functions.js401 const elts = window.ph_select(sel);COMMENT
LOWtest/common/storagelib.py541 #COMMENT
LOWtest/common/lcov.py301 for r in f['ranges']:COMMENT
LOWtest/common/lcov.py321 # with count 0 for "bar" (lines 2 and 3), since it is neverCOMMENT
LOWtest/common/lcov.py341 # 5 0 bar();COMMENT
LOWtest/common/testlib.py121# "test/browser-layouts.json".COMMENT
LOWtest/common/testlib.py1381 returnCOMMENT
LOWtest/common/testlib.py1441 clip=rect)COMMENT
LOWtest/common/testlib.py1481 # - A pixel in the reference image might beCOMMENT
LOWtest/common/dialoglib.py1# Copyright (C) 2025 Red Hat, Inc.COMMENT
LOWtest/common/dialoglib.py21# You need to pass the CSS selector prefix of the <Modal> component toCOMMENT
LOWtest/common/dialoglib.py41#COMMENT
LOWtest/common/dialoglib.py61#COMMENT
LOW.github/workflows/gh-project.yml1# GitHub Projects lets you import from multiple repositories on creation, but theCOMMENT
LOWpkg/networkmanager/interfaces.js1081COMMENT
LOWpkg/storaged/pages.jsx421// another table column already.COMMENT
LOWpkg/storaged/utils.js381 let size;COMMENT
LOWpkg/storaged/btrfs/btrfs-tool.py1#! /usr/bin/python3COMMENT
LOWpkg/storaged/crypto/clevis-luks-passphrase.sh1#! /bin/shCOMMENT
LOWpkg/storaged/mdraid/mdraid.jsx81 const members = client.mdraids_members[mdraid.path];COMMENT
LOWpkg/lib/cockpit-components-plot.jsx121 // Find the highest power of the base unit that is still belowCOMMENT
LOWpkg/lib/cockpit-components-plot.jsx141 // If the highest number of would be only, say, 81, then we would getCOMMENT
LOWpkg/lib/cockpit-components-plot.jsx161 //COMMENT
LOWpkg/lib/journal.js301 a.prio == b.prio &&COMMENT
LOWpkg/lib/get-timesync-backend.py1# SPDX-License-Identifier: LGPL-2.1-or-laterCOMMENT
LOWpkg/lib/patternfly/patternfly-6-overrides.scss281.pf-v6-c-card.ct-small-table-card {COMMENT
LOWpkg/lib/patternfly/patternfly-6-overrides.scss321 font-weight: var(--pf-t--global--font--weight--body--bold);COMMENT
LOWsrc/cockpit/peer.py81 try:COMMENT
LOWsrc/cockpit/beiboot.py141 return replyCOMMENT
LOWsrc/cockpit/channels/pcp.py1#COMMENT
LOWsrc/cockpit/channels/pcp.py21# * interval - the interval on which to deliver metricsCOMMENT
LOWsrc/cockpit/channels/pcp.py41# The instance domain denotes if the metric is has multiple instances, forCOMMENT
LOWsrc/cockpit/channels/dbus.py1#COMMENT
LOWsrc/cockpit/channels/dbus.py41# This channel payload type translates JSON encoded messages on aCOMMENT
LOWsrc/cockpit/channels/dbus.py61# - The client adds a "watch" for a path namespace. There is aCOMMENT
LOWsrc/cockpit/channels/dbus.py81# channel, and will keep that mutex locked until it is done withCOMMENT
LOWsrc/common/cockpitwebcertificate.c1/*COMMENT
LOWsrc/common/cockpitauthorize.c1/*COMMENT
LOWsrc/common/test-authorize.c1/*COMMENT
LOWsrc/common/cockpitconf.c1/*COMMENT
LOWsrc/tls/client-certificate.c21 * required information for authentication, but it's not sufficient:COMMENT
LOWsrc/tls/credentials.c1/*COMMENT
LOWsrc/tls/socket-activation-helper.c1/*COMMENT
LOWsrc/tls/test-server.c1/*COMMENT
LOWsrc/tls/test-server.c21#include <gnutls/x509.h>COMMENT
LOWsrc/tls/cockpit-certificate-ensure.c1/*COMMENT
LOWsrc/tls/cockpit-certificate-ensure.c21COMMENT
LOWsrc/tls/server.c1/*COMMENT
LOWsrc/tls/main.c1/*COMMENT
LOWsrc/tls/connection.c1/*COMMENT
LOWsrc/tls/connection.c21#include <string.h>COMMENT
LOWsrc/tls/socket-io.c1/*COMMENT
LOWsrc/pam-ssh-add/pam-ssh-add.c21#include <stdio.h>COMMENT
LOWsrc/pam-ssh-add/test-ssh-add.c1/*COMMENT
LOWsrc/ws/cockpitpipe.c21#include <sys/socket.h>COMMENT
LOWsrc/ws/cockpitauth.c1/*COMMENT
LOWsrc/ws/cockpitauth.c21#include "cockpitpipetransport.h"COMMENT
LOWsrc/ws/cockpithandlers.c1/*COMMENT
11 more matches not shown…
Deep Nesting73 hits · 68 pts
SeverityFileLineSnippetContext
LOWtest/pytest/mockpeer.py11CODE
LOWtest/pytest/test_browser.py47CODE
LOWtest/pytest/test_bridge.py916CODE
LOWtest/pytest/test_bridge.py1358CODE
LOWtest/pytest/test_bridge.py1611CODE
LOWtest/common/js_coverage.py49CODE
LOWtest/common/js_coverage.py275CODE
LOWtest/common/storagelib.py196CODE
LOWtest/common/storagelib.py420CODE
LOWtest/common/storagelib.py439CODE
LOWtest/common/storagelib.py456CODE
LOWtest/common/lcov.py143CODE
LOWtest/common/lcov.py203CODE
LOWtest/common/lcov.py269CODE
LOWtest/common/lcov.py390CODE
LOWtest/common/lcov.py481CODE
LOWtest/common/lcov.py236CODE
LOWtest/common/testlib.py509CODE
LOWtest/common/testlib.py834CODE
LOWtest/common/testlib.py969CODE
LOWtest/common/testlib.py1523CODE
LOWtest/common/testlib.py2360CODE
LOWtest/common/webdriver_bidi.py226CODE
LOWtest/common/packagelib.py15CODE
LOWtest/common/pixelmatch/core.py12CODE
LOWtest/common/pixelmatch/utils.py10CODE
LOWpkg/storaged/btrfs/btrfs-tool.py148CODE
LOWpkg/storaged/btrfs/btrfs-tool.py217CODE
LOWpkg/storaged/crypto/luksmeta-monitor-hack.py24CODE
LOWpkg/storaged/crypto/luksmeta-monitor-hack.py53CODE
LOWpkg/storaged/nfs/nfs-mounts.py69CODE
LOWpkg/storaged/nfs/nfs-mounts.py167CODE
LOWpkg/storaged/nfs/nfs-mounts.py225CODE
LOWpkg/storaged/legacy-vdo/vdo-monitor.py49CODE
LOWpkg/lib/get-timesync-backend.py11CODE
LOWpkg/lib/get-timesync-backend.py49CODE
LOWpkg/apps/watch-appstream.py199CODE
LOWpkg/apps/watch-appstream.py365CODE
LOWpkg/apps/watch-appstream.py43CODE
LOWpkg/apps/watch-appstream.py314CODE
LOWpkg/apps/watch-appstream.py370CODE
LOWpkg/apps/watch-appstream.py53CODE
LOWsrc/cockpit/jsonutil.py169CODE
LOWsrc/cockpit/channel.py118CODE
LOWsrc/cockpit/bridge.py244CODE
LOWsrc/cockpit/packages.py489CODE
LOWsrc/cockpit/packages.py539CODE
LOWsrc/cockpit/packages.py573CODE
LOWsrc/cockpit/packages.py620CODE
LOWsrc/cockpit/internal_endpoints.py64CODE
LOWsrc/cockpit/polkit.py107CODE
LOWsrc/cockpit/samples.py130CODE
LOWsrc/cockpit/samples.py173CODE
LOWsrc/cockpit/samples.py336CODE
LOWsrc/cockpit/beiboot.py424CODE
LOWsrc/cockpit/misc/bootloader.py14CODE
LOWsrc/cockpit/misc/print.py177CODE
LOWsrc/cockpit/misc/print.py193CODE
LOWsrc/cockpit/channels/metrics.py115CODE
LOWsrc/cockpit/channels/pcp.py185CODE
13 more matches not shown…
Modern Structural Boilerplate47 hits · 47 pts
SeverityFileLineSnippetContext
LOWtest/pytest/ws/authorize.py9logger = logging.getLogger(__name__)CODE
LOWtest/pytest/ws/mocksessionsocket.py21logger = logging.getLogger(__name__)CODE
LOW⚡test/common/testlib.py1316 def _set_window_size(self, width: int, height: int) -> None:CODE
LOW⚡test/common/testlib.py1320 def _set_emulated_media_theme(self, name: str) -> None:CODE
LOW⚡test/common/testlib.py1325 def _set_direction(self, direction: str) -> None:CODE
LOW⚡test/common/testlib.py1332 def set_layout(self, name: str) -> None:CODE
LOWtest/common/testlib.py381 def set_user_agent(self, ua: str) -> None:CODE
LOWtest/common/testlib.py465 def set_mock(self, mock: Mapping[str, str], base: str = "") -> None:CODE
LOWtest/common/testlib.py632 def set_val(self, selector: str, val: object) -> None:CODE
LOWtest/common/testlib.py660 def set_attr(self, selector: str, attr: str, val: object) -> None:CODE
LOWtest/common/testlib.py679 def set_checked(self, selector: str, val: bool) -> None:CODE
LOWtest/common/testlib.py794 def set_file_autocomplete_val(self, group_identifier: str, location: str) -> None:CODE
LOWtest/common/dialoglib.py114 def set_TextInput(self, path: str, val: str) -> None:CODE
LOWtest/common/dialoglib.py127 def set_Checkbox(self, path: str, val: bool) -> None:CODE
LOWtest/common/dialoglib.py138 def set_RadioSelect(self, path: str, val: str) -> None:CODE
LOWtest/common/dialoglib.py149 def set_DropdownSelect(self, path: str, val: str) -> None:CODE
LOWtest/common/dialoglib.py160 def set_FileChooserInput(self, path: str, val: str) -> None:CODE
LOWtest/common/dialoglib.py177 def set_path(self, path: str) -> None:CODE
LOWtest/common/pixelmatch/__init__.py15__all__ = [CODE
LOWsrc/cockpit/config.py13logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/superuser.py30logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/superuser.py267 def set_configs(self, configs: Sequence[BridgeConfig]) -> None:CODE
LOWsrc/cockpit/remote.py18logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/protocol.py13logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/channel.py18logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/bridge.py38logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/packages.py54logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/peer.py17logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/peer.py295 def set_configs(self, bridge_configs: Sequence[BridgeConfig]) -> None:CODE
LOWsrc/cockpit/internal_endpoints.py20logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/beipack.py16logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/transports.py36logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/transports.py159 def set_write_buffer_limits(self, high: 'int | None' = None, low: 'int | None' = None) -> None:CODE
LOWsrc/cockpit/transports.py263 def set_protocol(self, protocol: asyncio.BaseProtocol) -> None:CODE
LOWsrc/cockpit/transports.py388 def set_window_size(self, size: WindowSize) -> None:CODE
LOWsrc/cockpit/polkit.py25logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/router.py14logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/samples.py22logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/channels/trivial.py12logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/channels/metrics.py18logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/channels/pcp.py76logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/channels/dbus.py37logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/channels/filesystem.py41logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/channels/session.py12logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/channels/packages.py14logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/channels/stream.py16logger = logging.getLogger(__name__)CODE
LOWsrc/cockpit/channels/http_channel.py14logger = logging.getLogger(__name__)CODE
Excessive Try-Catch Wrapping27 hits · 34 pts
SeverityFileLineSnippetContext
MEDIUMtest/common/storagelib.py354def step() -> bool:CODE
LOWtest/common/storagelib.py400 except Exception:CODE
MEDIUMtest/common/testlib.py2807 print(f"Error: '{name}' does not match a test", file=sys.stderr)CODE
LOWtest/common/testlib.py2733 except Exception:CODE
LOWtest/common/testlib.py2950 except Exception:CODE
LOWpkg/sosreport/get_report_dir.py15 except Exception as e:CODE
LOWpkg/storaged/mount-users.py115 except Exception:CODE
LOWpkg/storaged/mount-users.py164except Exception as e:CODE
MEDIUMpkg/storaged/mount-users.py111def sendsig(pid, sig):CODE
LOWpkg/storaged/btrfs/btrfs-tool.py80 except Exception as err:CODE
LOWpkg/storaged/btrfs/btrfs-tool.py91 except Exception as err:CODE
LOWpkg/storaged/btrfs/btrfs-tool.py163 except Exception as err:CODE
LOWpkg/storaged/btrfs/btrfs-tool.py232 except Exception as err:CODE
LOWpkg/storaged/nfs/nfs-mounts.py244except Exception as e:CODE
LOWpkg/storaged/legacy-vdo/vdo-monitor.py81 except Exception as e:CODE
LOWpkg/storaged/legacy-vdo/vdo-monitor.py113 except Exception as e:CODE
MEDIUMpkg/storaged/legacy-vdo/vdo-monitor.py68def query():CODE
MEDIUMpkg/storaged/legacy-vdo/vdo-monitor.py109def sample():CODE
LOWpkg/apps/watch-appstream.py378 except Exception:CODE
MEDIUMpkg/apps/watch-appstream.py370def process_file(path, callback):CODE
LOWsrc/cockpit/peer.py75 except Exception as exc:CODE
LOW⚡src/cockpit/channels/pcp.py527 except Exception as exc:CODE
LOW⚡src/cockpit/channels/pcp.py536 except Exception as exc:CODE
LOW⚡src/cockpit/channels/pcp.py545 except Exception as exc:CODE
LOWsrc/cockpit/channels/dbus.py327 except Exception as exc:CODE
LOWsrc/cockpit/channels/dbus.py345 except Exception:CODE
MEDIUMsrc/cockpit/channels/dbus.py125def get_interface(self, interface_name, bus=None, destination=None, object_path=CODE
Hallucination Indicators3 hits · 30 pts
SeverityFileLineSnippetContext
CRITICALpkg/kdump/config-client.js135 const parts = this.settings._internal.nfs.value.match(/^([^[][^:]+|\[[^\]]+\]):(.*)$/);CODE
CRITICALpkg/kdump/config-client.js185 (this.settings._internal.core_collector.value.trim().indexOf("makedumpfile") === 0)CODE
CRITICALpkg/kdump/config-client.js191 (this.settings._internal.core_collector.value.split(" ").indexOf("-c") != -1)CODE
Unused Imports25 hits · 25 pts
SeverityFileLineSnippetContext
LOWtest/pytest/test_bridge.py17CODE
LOWtest/common/pixelmatch/__init__.py1CODE
LOWtest/common/pixelmatch/__init__.py2CODE
LOWtest/common/pixelmatch/__init__.py2CODE
LOWtest/common/pixelmatch/__init__.py2CODE
LOWtest/common/pixelmatch/__init__.py2CODE
LOWtest/common/pixelmatch/__init__.py2CODE
LOWtest/common/pixelmatch/__init__.py2CODE
LOWtest/common/pixelmatch/__init__.py2CODE
LOWtest/common/pixelmatch/__init__.py2CODE
LOWtest/common/pixelmatch/__init__.py2CODE
LOWtest/common/pixelmatch/__init__.py2CODE
LOWsrc/cockpit/superuser.py26CODE
LOWsrc/cockpit/channel.py12CODE
LOWsrc/cockpit/channel.py12CODE
LOWsrc/cockpit/channel.py12CODE
LOWsrc/cockpit/channel.py12CODE
LOWsrc/cockpit/channel.py12CODE
LOWsrc/cockpit/channel.py12CODE
LOWsrc/cockpit/bridge.py30CODE
LOWsrc/cockpit/__init__.py2CODE
LOWsrc/cockpit/samples.py10CODE
LOWsrc/cockpit/beiboot.py17CODE
LOWsrc/cockpit/channels/filesystem.py20CODE
LOWsrc/cockpit/channels/filesystem.py27CODE
AI Slop Vocabulary9 hits · 22 pts
SeverityFileLineSnippetContext
MEDIUMbuild.js117 // Use createRequire to leverage Node's module resolution which searches system pathsCOMMENT
LOWtest/common/lcov.py348 # can't just add them all up. This doesn't work, however, whenCOMMENT
MEDIUMtest/common/pixelmatch/contrib/PIL.py4"""Functions to facilitate direct comparison of PIL.Image instances"""STRING
MEDIUMpkg/packagekit/updates.jsx904 // be robust, try to continue with loading updates anywayCOMMENT
MEDIUMpkg/lib/patternfly/_fonts.scss5// This allows plugins to still utilize the Red Hat fonts when testing plugins on or before Cockpit v336COMMENT
MEDIUMpkg/lib/patternfly/patternfly-6-cockpit.scss10// This allows plugins to still utilize the Red Hat fonts when testing plugins on or before Cockpit v336COMMENT
MEDIUMpkg/lib/patternfly/patternfly-6-overrides.scss55 // We utilize custom footers in dialogsCOMMENT
MEDIUMsrc/cockpit/bridge.py281 # Launch the agent so that it goes down with us on EOF; PDEATHSIG would be more robust,COMMENT
LOWsrc/cockpit/channels/pcp.py219 # just return an empty error. If we report anything with aCOMMENT
Self-Referential Comments4 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMpkg/lib/serverTime.js290 const text = `# This file is automatically generated by Cockpit\n\n[Time]\n${config.enabled ? "" : "#"}NTP=${conCODE
MEDIUMpkg/lib/serverTime.js343 const text = "# This file is automatically generated by Cockpit\n\n" + config.servers.map(s => `server ${s}\n`).CODE
MEDIUMsrc/cockpit/_version.py2# This file is only in git. It gets replaced by `make dist`.COMMENT
MEDIUMsrc/cockpit/beiboot.py46 # Create the file in $XDG_CACHE_HOME, one of the few locations that a flatpak can write toCOMMENT
Structural Annotation Overuse5 hits · 8 pts
SeverityFileLineSnippetContext
LOWpkg/shell/session.ts38 // NOTE: This function will be called many many times for aCOMMENT
LOWpkg/storaged/block/resize.jsx377 // Step 1: Find the spaces that are already used for aCOMMENT
LOWpkg/storaged/block/resize.jsx391 // Step 2: Select missing one randomly.COMMENT
LOWpkg/storaged/block/resize.jsx474 // Step 1: Find PVs that are already used by a subvolumeCOMMENT
LOWpkg/storaged/block/resize.jsx485 // Step 2: Use the rest for the leftover subvolumesCOMMENT
AI Structural Patterns9 hits · 6 pts
SeverityFileLineSnippetContext
LOWtest/common/testlib.py509CODE
LOWtest/common/testlib.py1050CODE
LOWtest/common/testlib.py1364CODE
LOWtest/common/testlib.py1523CODE
LOWtest/common/testlib.py2046CODE
LOWtest/common/netlib.py200CODE
LOWtest/common/packagelib.py146CODE
LOWtest/common/pixelmatch/core.py12CODE
LOWtest/common/pixelmatch/contrib/PIL.py16CODE
Verbosity Indicators4 hits · 6 pts
SeverityFileLineSnippetContext
LOWpkg/storaged/block/resize.jsx377 // Step 1: Find the spaces that are already used for aCOMMENT
LOWpkg/storaged/block/resize.jsx391 // Step 2: Select missing one randomly.COMMENT
LOWpkg/storaged/block/resize.jsx474 // Step 1: Find PVs that are already used by a subvolumeCOMMENT
LOWpkg/storaged/block/resize.jsx485 // Step 2: Use the rest for the leftover subvolumesCOMMENT
Redundant / Tautological Comments2 hits · 3 pts
SeverityFileLineSnippetContext
LOWsrc/cockpit/channels/pcp.py214 # Verify if the given metrics exist in the archiveCOMMENT
LOWsrc/cockpit/channels/pcp.py618 # Set metric_descriptions to the current archiveCOMMENT
Slop Phrases1 hit · 2 pts
SeverityFileLineSnippetContext
LOWtest/common/testlib.py1548 # If the page overflows make sure to not show a scrollbarCOMMENT
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippetContext
LOWdoc/extensions/man-inline-macro.rb10# Usage:COMMENT