You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
S1313 hardcoded IPs:
- test_rest_auth.py: switch test fixture IPs from arbitrary
literals (1.1.1.1, 2.2.2.2, …) to RFC 5737 documentation ranges
(192.0.2.0/24 = TEST-NET-1) via _TEST_IP_A..F module constants.
These are reserved for documentation and never appear on the
public internet, which is exactly what the rule is meant to
encourage.
- lan_discovery.py: NOSONAR on the 8.8.8.8 anycast probe with
rationale (UDP no-traffic interface-discovery trick — the literal
is the well-known address being probed for; parameterising it
would only obscure intent).
S5332 cleartext HTTP:
- admin_client._http_request: NOSONAR — this is a scheme allow-
list check, not URL emission.
- rest_server.base_url: NOSONAR with deployment note (loopback
bind + operator-managed TLS reverse proxy is the documented
shape).
- admin_console_tab placeholder text, test_admin_client/_url +
validator-empty literals, test_usb_browser_tab fixtures: NOSONAR
with reasons (placeholder UI, validator-only literals, loopback
test server).
Web:S5725 SRI on swagger.html: per-tag NOSONAR with rationale —
already handled in the JS-smells commit; included here for
completeness.
S107 webrtc_host.__init__: NOSONAR with rationale — public
constructor; the discrete kwargs are clearer at the call sites
(GUI panel + multi_viewer) than a callbacks-bag dataclass would
be, and breaking the kwarg names would force every operator's
external embedding to change.
Copy file name to clipboardExpand all lines: je_auto_control/utils/remote_desktop/webrtc_host.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ class WebRTCDesktopHost:
55
55
"one person controls my machine" workflow and keeps the GUI simple.
56
56
"""
57
57
58
-
def__init__(self, *, token: str,
58
+
def__init__(self, *, token: str,# NOSONAR python:S107 # public constructor; callbacks/permissions are kept as discrete kwargs to keep the call site readable at the GUI layer (see gui/remote_desktop/webrtc_panel.py + utils/remote_desktop/multi_viewer.py)
0 commit comments