Repository Analysis

henrygd/beszel

Lightweight server monitoring with historical data, docker stats, and alerts.

1.1 Likely human-written View on GitHub
1.1
Adjusted Score
1.1
Raw Score
100%
Time Factor
2026-05-28
Last Push
22,238
Stars
Go
Language
71,852
Lines of Code
320
Files
60
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 6LOW 54

Pattern Findings

60 matches across 5 categories. Click a row to expand file-level details.

Over-Commented Block27 hits · 27 pts
SeverityFileLineSnippet
LOW.goreleaser.yml181# summary: 'Agent for Beszel, a lightweight server monitoring platform.'
LOWinternal/tests/api.go21
LOWinternal/tests/api.go61
LOWinternal/tests/api.go81 // map[string]int{ "*": 0 } // no hook events were fired
LOWinternal/tests/api.go101// Method: http.MethodGet,
LOWinternal/tests/api.go121 })
LOWinternal/alerts/alerts_cache_test.go181// defer hub.Cleanup()
LOWinternal/alerts/alerts_cache_test.go201// assert.Len(t, cache.Get(system1.Id), 1)
LOWinternal/site/src/components/ui/chart.tsx21// config: ChartConfig
LOWinternal/site/src/components/ui/chart.tsx61 )
LOWinternal/site/src/components/ui/alert.tsx1import * as React from "react"
LOW…src/components/systemd-table/systemd-table-columns.tsx41 },
LOW…/src/components/routes/system/charts/sensor-charts.tsx121 dataKey: dataKeys[key],
LOWinternal/site/src/lib/utils.ts301// if (uptimeSeconds < 3600) {
LOWinternal/hub/api_test.go621 "min": 10,
LOWinternal/entities/smart/smart.go41// ID int `json:"id"`
LOWinternal/entities/smart/smart.go61// Value int `json:"value"`
LOWinternal/entities/smart/smart.go101 GpLoggingSupported bool `json:"gp_logging_supported"`
LOWinternal/entities/smart/smart.go301
LOWinternal/entities/smart/smart.go341 // Wwn WwnInfo `json:"wwn"`
LOWinternal/entities/smart/smart.go441// Bytes uint64 `json:"bytes"`
LOWinternal/entities/container/container.go21 // Type string
LOWagent/connection_manager.go121}
LOWsupplemental/docker/agent/docker-compose.yml21 TOKEN: "<token>"
LOWsupplemental/scripts/install-hub.sh21 cat <<'EOF'
LOWsupplemental/scripts/install-agent.sh101# PROVIDE: beszel_agent
LOWsupplemental/kubernetes/beszel-hub/charts/values.yaml41 annotations: {}
Redundant / Tautological Comments12 hits · 18 pts
SeverityFileLineSnippet
LOWsupplemental/scripts/install-hub.sh144# Check if running as root and re-execute with sudo if needed
LOWsupplemental/scripts/install-hub.sh380 # Check if service started successfully
LOWsupplemental/scripts/install-hub.sh436 # Check if the service is running
LOWsupplemental/scripts/install-agent-brew.sh50# Check if brew is installed, prompt to install if not
LOWsupplemental/scripts/install-agent.sh40 # Check if SELinux is enabled and in enforcing or permissive mode
LOWsupplemental/scripts/install-agent.sh278# Check if running as root and re-execute with sudo if needed
LOWsupplemental/scripts/install-agent.sh318 # Check if there's a value after the = sign
LOWsupplemental/scripts/install-agent.sh341 # Check if there's a value after the = sign
LOWsupplemental/scripts/install-agent.sh490# Check if a package is installed
LOWsupplemental/scripts/install-agent.sh583 # Check if beszel is already in docker group
LOWsupplemental/scripts/install-agent.sh787 # Check if service started successfully
LOWsupplemental/scripts/install-agent.sh933 # Check if service started successfully
Self-Referential Comments6 hits · 18 pts
SeverityFileLineSnippet
MEDIUMsupplemental/scripts/install-hub.sh302# Create a dedicated user for the service if it doesn't exist
MEDIUMsupplemental/scripts/install-hub.sh314# Create the directory for the Beszel Hub
MEDIUMsupplemental/scripts/install-hub.sh366 # Create the rc service file
MEDIUMsupplemental/scripts/install-agent.sh555# Create a dedicated user for the service if it doesn't exist
MEDIUMsupplemental/scripts/install-agent.sh628# Create the directory for the Beszel Agent
MEDIUMsupplemental/scripts/install-agent.sh917 # Create the rc service file if it doesn't exist
Fake / Example Data11 hits · 11 pts
SeverityFileLineSnippet
LOWinternal/alerts/alerts_api_test.go401 adminUser, err := beszelTests.CreateUserWithRole(hub, "admin@example.com", "password123", "admin")
LOWinternal/hub/api_test.go41 adminUser, err := beszelTests.CreateUserWithRole(hub, "admin@example.com", "password123", "admin")
LOWinternal/hub/agent_connect_test.go75 "email": "test@test.com",
LOWinternal/hub/config/config_test.go72 user, err := tests.CreateUser(testHub.App, "admin@example.com", "testtesttest")
LOWinternal/hub/config/config_test.go92 - "admin@example.com"
LOWinternal/hub/config/config_test.go119 - "admin@example.com"`,
LOWinternal/hub/config/config_test.go197 user, err := tests.CreateUser(testHub.App, "admin@example.com", "testtesttest")
LOWinternal/hub/config/config_test.go219 - "admin@example.com"`
LOWinternal/hub/heartbeat/heartbeat_test.go220 user, err := beszeltests.CreateUser(app.App, "admin@example.com", "password123")
LOWinternal/hub/systems/systems_test.go29 user, err := tests.CreateUser(hub, "test@test.com", "testtesttest")
LOWinternal/hub/systems/systems_test.go141 _, err = tests.CreateUser(hub, "test@test.com", "testtesttest")
Hyper-Verbose Identifiers4 hits · 4 pts
SeverityFileLineSnippet
LOWinternal/site/src/components/ui/chart.tsx378function getPayloadConfigFromPayload(config: ChartConfig, payload: unknown, key: string) {
LOWinternal/site/src/components/ui/icons.tsx190export function SquareArrowRightEnterIcon(props: SVGProps<SVGSVGElement>) {
LOW…src/components/systems-table/systems-table-columns.tsx83function getMeterStateByThresholds(value: number, warn = 65, crit = 90): MeterState {
LOW…/site/src/components/routes/settings/notifications.tsx179function showTestNotificationError(msg: string) {