- Your current plan is
-
- {{ profile?.current_plan?.name || 'Portmaster Free' }}
-
+ Edition:
+ portmasterpro
-
-
- and ends
-
- in
-
- {{ profile?.subscription?.ends_at! | timeAgo }}
-
-
-
- never
-
-
-
- and auto-renews in
- {{ profile?.subscription?.next_billing_date! | timeAgo }}
-
+
+ local network history and bandwidth visibility, no account, no SPN
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -99,7 +63,7 @@
- Available in Portmaster Plus
+ Bandwidth data not available yet
@@ -110,18 +74,10 @@
- Available in Portmaster Plus
+ Bandwidth data not available yet
-
-
- {{ activeIdentities }}
-
- Available in Portmaster Pro
-
-
@@ -134,23 +90,6 @@
-
-
-
-
-
@@ -212,7 +151,7 @@
- Available in Portmaster Plus
+ Bandwidth data not available yet
@@ -221,7 +160,7 @@
- Available in Portmaster Plus
+ Bandwidth data not available yet
diff --git a/desktop/angular/src/app/pages/monitor/monitor.html b/desktop/angular/src/app/pages/monitor/monitor.html
index 1d6fb177e..d00a0ca2a 100644
--- a/desktop/angular/src/app/pages/monitor/monitor.html
+++ b/desktop/angular/src/app/pages/monitor/monitor.html
@@ -28,7 +28,7 @@
Enable
- Available in Portmaster Plus
+ Network history is unavailable
diff --git a/desktop/src/lib/spn-removed.spec.ts b/desktop/src/lib/spn-removed.spec.ts
deleted file mode 100644
index e073a4059..000000000
--- a/desktop/src/lib/spn-removed.spec.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * spn-removed.spec.ts
- *
- * Unit tests for the SPN/account removal shim.
- * These run with any standard TypeScript test runner (Vitest / Jest).
- */
-
-import { describe, it, expect } from 'vitest';
-import {
- SPN_REMOVED,
- isLoggedIn,
- isSPNActive,
- hasFeature,
-} from './spn-removed';
-
-describe('SPN/account removal shim', () => {
- it('SPN_REMOVED flag is true', () => {
- expect(SPN_REMOVED).toBe(true);
- });
-
- it('isLoggedIn() always returns false', () => {
- expect(isLoggedIn()).toBe(false);
- });
-
- it('isSPNActive() always returns false', () => {
- expect(isSPNActive()).toBe(false);
- });
-
- it('hasFeature() always returns true for any feature string', () => {
- const features = [
- 'bandwidth-visibility',
- 'network-history',
- 'filter-lists',
- 'spn',
- 'custom-lists',
- 'some-future-feature',
- ];
- for (const f of features) {
- expect(hasFeature(f)).toBe(true);
- }
- });
-
- it('hasFeature() returns true even for empty string', () => {
- expect(hasFeature('')).toBe(true);
- });
-});
diff --git a/desktop/src/lib/spn-removed.ts b/desktop/src/lib/spn-removed.ts
deleted file mode 100644
index bea932275..000000000
--- a/desktop/src/lib/spn-removed.ts
+++ /dev/null
@@ -1,40 +0,0 @@
-/**
- * spn-removed.ts
- *
- * SPN (Safing Privacy Network) and account login have been removed
- * from portmasterpro. This file acts as a single source of truth for
- * UI components that previously depended on SPN/account state.
- *
- * All feature flags are permanently unlocked.
- * All login/account state is permanently absent.
- */
-
-export const SPN_REMOVED = true;
-
-/** Always false — no account session exists. */
-export const isLoggedIn = (): boolean => false;
-
-/** Always false — SPN routing is not available. */
-export const isSPNActive = (): boolean => false;
-
-/**
- * Always true — all features are available without a subscription.
- * Replace any `hasFeature(x)` call that previously gated UI elements.
- */
-export const hasFeature = (_feature: string): boolean => true;
-
-/**
- * No-op — account login UI has been removed.
- * Call sites that previously opened a login modal should call this instead.
- */
-export const openLoginModal = (): void => {
- console.warn('[portmasterpro] openLoginModal() called but account login has been removed.');
-};
-
-/**
- * No-op — SPN toggle has been removed.
- * Call sites that previously toggled SPN should call this instead.
- */
-export const toggleSPN = (): void => {
- console.warn('[portmasterpro] toggleSPN() called but SPN has been removed.');
-};
From ea6294ae91cb533b21a5179cbe7f51cfaccc6c7c Mon Sep 17 00:00:00 2001
From: 0n113 <147522246+0n113@users.noreply.github.com>
Date: Wed, 30 Sep 2026 20:07:53 +0000
Subject: [PATCH 012/334] docs(BUILDING): replace vitest shim section with
Angular build and guards
---
BUILDING.md | 65 ++++++++++++++++++++---------------------------------
1 file changed, 24 insertions(+), 41 deletions(-)
diff --git a/BUILDING.md b/BUILDING.md
index a0c5afac8..5ec9fb7bd 100644
--- a/BUILDING.md
+++ b/BUILDING.md
@@ -171,63 +171,46 @@ echo "Exit $?: 0 = sauber"
---
-## 6 · Desktop-Frontend testen (TypeScript / Vitest)
+## 6 · Desktop-Frontend bauen (Angular 16, Node 20)
-> **Stand:** Das produktive UI ist die Angular-App unter `desktop/angular`
-> (`npm ci && npm run build`, Tests via `npm test` / Karma). Der Shim
-> `desktop/src/lib/spn-removed.ts` ist dort **noch nicht eingebunden**; die
-> Bereinigung der Account-/SPN-Ansichten im Angular-UI ist Phase 2 nach dem
-> grünen Go-Build. Die folgenden Vitest-Schritte betreffen nur den Shim selbst.
+Das produktive UI ist die Angular-App unter `desktop/angular`. Die gesamte
+Account-/SPN-Logik ist zentral in `projects/safing/portmaster-api/src/lib/spn.service.ts`
+neutralisiert (statisches lokales Profil, SPN dauerhaft `disabled`, keine HTTP-
+Aufrufe an Account-Endpunkte). Details: `desktop/CHANGES.md`.
```bash
-cd desktop
+cd desktop/angular
-# Abhängigkeiten installieren
-pnpm install # oder: npm install
+# Abhängigkeiten exakt nach package-lock.json installieren
+npm ci --no-audit --no-fund
-# Nur die SPN-Shim-Tests laufen lassen
-pnpm vitest run src/lib/spn-removed.spec.ts
-
-# Oder alle Frontend-Tests
-pnpm test
+# Bibliotheken (@safing/ui, @safing/portmaster-api) + App als Production-Build
+npm run build
```
-### Erwartete Ausgabe
-
-```
-✓ SPN/account removal shim > SPN_REMOVED flag is true
-✓ SPN/account removal shim > isLoggedIn() always returns false
-✓ SPN/account removal shim > isSPNActive() always returns false
-✓ SPN/account removal shim > hasFeature() always returns true for any feature string
-✓ SPN/account removal shim > hasFeature() returns true even for empty string
-
-Test Files 1 passed (1)
-Tests 5 passed (5)
-```
+Erwartung: Exit-Code 0. Upstream-Warnungen zu CommonJS-Abhängigkeiten
+(`js-yaml-loader`, `data-urls`) und zum überschrittenen Bundle-Budget sind
+bekannt und unkritisch.
---
-## 7 · Verbleibende SPN-Referenzen im Frontend finden
-
-Nach dem Build alle Stellen suchen die noch auf alten SPN/Login-Code zeigen:
+## 7 · Frontend-Guards
```bash
-grep -rn 'spn\|SPN\|loginModal\|isLoggedIn\|isSPNActive\|hasFeature' \
- desktop/src \
- --include='*.ts' \
- --include='*.svelte' \
- --include='*.vue' \
- --include='*.tsx' \
- --exclude='spn-removed*'
-```
+cd desktop/angular
-Jeden Treffer durch den entsprechenden Import aus
-`desktop/src/lib/spn-removed.ts` ersetzen:
+# API-Bibliothek darf keine Account-Endpunkte mehr ansprechen (keine Ausgabe erwartet):
+grep -rnE 'v1/spn/account|v1/account/features|account\.safing\.io|core:spn/account' \
+ projects/safing/portmaster-api/src
-```ts
-import { hasFeature, isLoggedIn, isSPNActive } from '$lib/spn-removed';
+# Production-Bundle darf keine Account-API-Aufrufe enthalten (keine Ausgabe erwartet):
+grep -lE 'v1/spn/account|v1/account/features' dist/*.js
```
+Verbleibende `account.safing.io`-Strings im Bundle stammen aus nicht mehr
+gerenderten Komponenten (`spn-login`, `spn-account-details`); sie lösen keine
+Requests aus.
+
---
## 8 · Vollständiger Check-Ablauf vor dem Merge
From ef531e724bd9cdf4dbde40446924f4701f3c7df8 Mon Sep 17 00:00:00 2001
From: 0n113 <147522246+0n113@users.noreply.github.com>
Date: Wed, 30 Sep 2026 20:20:53 +0000
Subject: [PATCH 013/334] updates: make upstream binary update checks opt-in
With the upstream default (core/automaticUpdates=true) portmasterpro would
poll updates.safing.io/stable.v3.json and offer stock Portmaster binaries as
an 'update'. Applying them replaces this build and re-introduces SPN and
account features. Default the software update check to false (config option
stays available), keep AutoCheck=false in the initial updater config and
leave intelligence data updates (filter lists, geoip) enabled.
Adds a guard test for both defaults.
Smoke test (linux/amd64, --disable-interception, unprivileged): all 33 modules
start and stop cleanly, no SPN/access/sync manager present, no connection to
*.safing.io within the run.
---
service/config.go | 4 ++--
service/core/update_config.go | 6 +++---
service/core/update_config_test.go | 34 ++++++++++++++++++++++++++++++
3 files changed, 39 insertions(+), 5 deletions(-)
create mode 100644 service/core/update_config_test.go
diff --git a/service/config.go b/service/config.go
index 284488887..5f971c879 100644
--- a/service/config.go
+++ b/service/config.go
@@ -134,7 +134,7 @@ func MakeUpdateConfigs(svcCfg *ServiceConfig) (binaryUpdateConfig, intelUpdateCo
IndexURLs: svcCfg.BinariesIndexURLs, // May be changed by config during instance startup.
IndexFile: "index.json",
Verify: svcCfg.VerifyBinaryUpdates,
- AutoCheck: true, // May be changed by config during instance startup.
+ AutoCheck: false, // portmasterpro: upstream binary updates are opt-in; may be changed by config during instance startup.
AutoDownload: false,
AutoApply: false,
NeedsRestart: true,
@@ -165,7 +165,7 @@ func MakeUpdateConfigs(svcCfg *ServiceConfig) (binaryUpdateConfig, intelUpdateCo
IndexURLs: svcCfg.BinariesIndexURLs, // May be changed by config during instance startup.
IndexFile: "index.json",
Verify: svcCfg.VerifyBinaryUpdates,
- AutoCheck: true, // May be changed by config during instance startup.
+ AutoCheck: false, // portmasterpro: upstream binary updates are opt-in; may be changed by config during instance startup.
AutoDownload: false,
AutoApply: false,
NeedsRestart: true,
diff --git a/service/core/update_config.go b/service/core/update_config.go
index 10fdb84ca..ac11c9546 100644
--- a/service/core/update_config.go
+++ b/service/core/update_config.go
@@ -78,12 +78,12 @@ func registerUpdateConfig() error {
err = config.Register(&config.Option{
Name: "Automatic Software Updates",
Key: enableSoftwareUpdatesKey,
- Description: "Automatically check for and download software updates. This does not include intelligence data updates.",
+ Description: "Automatically check for and download software updates from the upstream Portmaster update server. Disabled by default in portmasterpro: upstream binaries would replace this build and re-introduce SPN and account features. This does not include intelligence data updates.",
OptType: config.OptTypeBool,
ExpertiseLevel: config.ExpertiseLevelExpert,
ReleaseLevel: config.ReleaseLevelStable,
RequiresRestart: false,
- DefaultValue: true,
+ DefaultValue: false,
Annotations: config.Annotations{
config.DisplayOrderAnnotation: -12,
config.CategoryAnnotation: "Updates",
@@ -116,7 +116,7 @@ func registerUpdateConfig() error {
func initUpdateConfig() {
releaseChannel = config.Concurrent.GetAsString(ReleaseChannelKey, ReleaseChannelStable)
- enableSoftwareUpdates = config.Concurrent.GetAsBool(enableSoftwareUpdatesKey, true)
+ enableSoftwareUpdates = config.Concurrent.GetAsBool(enableSoftwareUpdatesKey, false)
enableIntelUpdates = config.Concurrent.GetAsBool(enableIntelUpdatesKey, true)
initialReleaseChannel = releaseChannel()
diff --git a/service/core/update_config_test.go b/service/core/update_config_test.go
new file mode 100644
index 000000000..3decb9607
--- /dev/null
+++ b/service/core/update_config_test.go
@@ -0,0 +1,34 @@
+package core
+
+import (
+ "testing"
+
+ "github.com/safing/portmaster/base/config"
+)
+
+// TestSoftwareUpdatesDefaultOff guards the portmasterpro contract that
+// upstream binary updates are opt-in: applying them would replace this build
+// with stock Portmaster and re-introduce SPN and account features.
+func TestSoftwareUpdatesDefaultOff(t *testing.T) {
+ t.Parallel()
+
+ if err := registerUpdateConfig(); err != nil {
+ t.Fatalf("registerUpdateConfig: %v", err)
+ }
+
+ opt, err := config.GetOption(enableSoftwareUpdatesKey)
+ if err != nil {
+ t.Fatalf("option %q not registered: %v", enableSoftwareUpdatesKey, err)
+ }
+ if v, ok := opt.DefaultValue.(bool); !ok || v {
+ t.Fatalf("%q default = %v, want false", enableSoftwareUpdatesKey, opt.DefaultValue)
+ }
+
+ intel, err := config.GetOption(enableIntelUpdatesKey)
+ if err != nil {
+ t.Fatalf("option %q not registered: %v", enableIntelUpdatesKey, err)
+ }
+ if v, ok := intel.DefaultValue.(bool); !ok || !v {
+ t.Fatalf("%q default = %v, want true (filter lists and geoip stay updated)", enableIntelUpdatesKey, intel.DefaultValue)
+ }
+}
From 14f601045021964cbb345a2fbbb7054bbd59e8bc Mon Sep 17 00:00:00 2001
From: 0n113 <147522246+0n113@users.noreply.github.com>
Date: Wed, 30 Sep 2026 20:36:01 +0000
Subject: [PATCH 014/334] lint/ci: satisfy golangci-lint for fork-added files;
run Earthly without Safing's remote cache
- godoclint: single package godoc for service/sync and spn/access
- modernize: interface{} -> any; copyloopvar; gofmt; paralleltest; noinlineerr
- workflows: drop '--remote-cache=ghcr.io/safing/build-cache --push' from
the Earthly invocations. The fork has no push rights on Safing's registry
(403 Forbidden), which made the upstream Go/Angular/Kext/Tauri workflows
fail before running anything.
---
.github/workflows/angular.yml | 2 +-
.github/workflows/go.yml | 2 +-
.github/workflows/kext.yml | 2 +-
.github/workflows/release.yml | 4 ++--
.github/workflows/tauri.yml | 4 ++--
service/core/update_config_test.go | 3 ++-
service/netquery/bandwidth_chart_handler_test.go | 10 ++++++----
service/netquery/netquery_open_test.go | 15 ++++++++-------
service/sync/module.go | 2 +-
service/sync/module_test.go | 8 ++++++--
service/sync/profile.go | 1 +
service/sync/setting_single.go | 1 +
service/sync/settings.go | 1 +
service/sync/util.go | 1 +
spn/access/compatibility.go | 1 +
spn/access/module.go | 2 +-
spn/access/module_test.go | 10 ++++++++--
17 files changed, 44 insertions(+), 25 deletions(-)
diff --git a/.github/workflows/angular.yml b/.github/workflows/angular.yml
index dd16cd02f..b2555b83a 100644
--- a/.github/workflows/angular.yml
+++ b/.github/workflows/angular.yml
@@ -60,4 +60,4 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build angular projects
- run: earthly --ci --remote-cache=ghcr.io/safing/build-cache --push +angular-ci
+ run: earthly --ci +angular-ci
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index 9c7a0298b..f3d4edbf0 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -68,4 +68,4 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Run Go Tests & Build
- run: earthly --ci --remote-cache=ghcr.io/safing/build-cache --push +go-ci
+ run: earthly --ci +go-ci
diff --git a/.github/workflows/kext.yml b/.github/workflows/kext.yml
index e1a2bbb99..51323a372 100644
--- a/.github/workflows/kext.yml
+++ b/.github/workflows/kext.yml
@@ -37,4 +37,4 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Kernel Extension
- run: earthly --ci --remote-cache=ghcr.io/safing/build-cache --push +kext-ci
+ run: earthly --ci +kext-ci
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index b42c0ddca..af57fd386 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -28,7 +28,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build all artifacts
- run: earthly --remote-cache=ghcr.io/safing/build-cache --push +release-prep
+ run: earthly +release-prep
- name: Upload Dist
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
@@ -56,7 +56,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build linux installers
- run: earthly --ci --remote-cache=ghcr.io/safing/build-cache --push +installer-linux
+ run: earthly --ci +installer-linux
# --ci include --no-output flag
- name: Upload Installers
diff --git a/.github/workflows/tauri.yml b/.github/workflows/tauri.yml
index 665bad054..de7d6e888 100644
--- a/.github/workflows/tauri.yml
+++ b/.github/workflows/tauri.yml
@@ -37,7 +37,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build tauri project
- run: earthly --ci --remote-cache=ghcr.io/safing/build-cache --push +tauri-ci
+ run: earthly --ci +tauri-ci
lint:
name: Linter
@@ -56,4 +56,4 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build tauri project
- run: earthly --ci --remote-cache=ghcr.io/safing/build-cache --push +tauri-lint
+ run: earthly --ci +tauri-lint
diff --git a/service/core/update_config_test.go b/service/core/update_config_test.go
index 3decb9607..c356e70b2 100644
--- a/service/core/update_config_test.go
+++ b/service/core/update_config_test.go
@@ -12,7 +12,8 @@ import (
func TestSoftwareUpdatesDefaultOff(t *testing.T) {
t.Parallel()
- if err := registerUpdateConfig(); err != nil {
+ err := registerUpdateConfig()
+ if err != nil {
t.Fatalf("registerUpdateConfig: %v", err)
}
diff --git a/service/netquery/bandwidth_chart_handler_test.go b/service/netquery/bandwidth_chart_handler_test.go
index ba3c6afd1..27bdd00b7 100644
--- a/service/netquery/bandwidth_chart_handler_test.go
+++ b/service/netquery/bandwidth_chart_handler_test.go
@@ -26,8 +26,9 @@ func TestBandwidthChartHandlerRejectsInvalidJSON(t *testing.T) {
// minimal inline handler that mirrors the expected contract: parse JSON
// body, return 400 on error, never 401/403.
inlineHandler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
- var body map[string]interface{}
- if err := json.NewDecoder(r.Body).Decode(&body); err != nil {
+ var body map[string]any
+ err := json.NewDecoder(r.Body).Decode(&body)
+ if err != nil {
http.Error(w, "bad request: "+err.Error(), http.StatusBadRequest)
return
}
@@ -55,8 +56,9 @@ func TestBandwidthChartHandlerAcceptsEmptyQuery(t *testing.T) {
rec := httptest.NewRecorder()
inlineHandler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
- var body map[string]interface{}
- if err := json.NewDecoder(r.Body).Decode(&body); err != nil {
+ var body map[string]any
+ err := json.NewDecoder(r.Body).Decode(&body)
+ if err != nil {
http.Error(w, "bad request", http.StatusBadRequest)
return
}
diff --git a/service/netquery/netquery_open_test.go b/service/netquery/netquery_open_test.go
index 8220ca7a9..bcfaf5ff0 100644
--- a/service/netquery/netquery_open_test.go
+++ b/service/netquery/netquery_open_test.go
@@ -16,9 +16,9 @@ import (
// ---------------------------------------------------------------------------
const (
- endpointQuery = "netquery/query"
- endpointQueryBatch = "netquery/query/batch"
- endpointChartActive = "netquery/charts/connection-active"
+ endpointQuery = "netquery/query"
+ endpointQueryBatch = "netquery/query/batch"
+ endpointChartActive = "netquery/charts/connection-active"
endpointChartBandwidth = "netquery/charts/bandwidth"
endpointHistoryClear = "netquery/history/clear"
endpointHistoryCleanup = "netquery/history/cleanup"
@@ -56,7 +56,7 @@ func TestBandwidthEndpointIsNotGated(t *testing.T) {
// through any SPN or account sub-path.
const wantPrefix = "netquery/"
if len(endpointChartBandwidth) < len(wantPrefix) {
- t.Fatalf("bandwidth endpoint %q does not start with %q", endpointChartBandwidth, wantPrefix)
+ t.Fatalf("bandwidth endpoint %q does not start with %q", endpointChartBandwidth, wantPrefix)
}
if endpointChartBandwidth[:len(wantPrefix)] != wantPrefix {
t.Errorf("bandwidth endpoint %q must be under netquery/, got different prefix", endpointChartBandwidth)
@@ -74,7 +74,6 @@ func TestNetworkHistoryEndpointsAreNotGated(t *testing.T) {
}
for _, ep := range historyEndpoints {
- ep := ep
t.Run(ep, func(t *testing.T) {
t.Parallel()
if ep == "" {
@@ -85,7 +84,7 @@ func TestNetworkHistoryEndpointsAreNotGated(t *testing.T) {
if len(ep) < len(wantPrefix) || ep[:len(wantPrefix)] != wantPrefix {
t.Errorf("history endpoint %q must be under netquery/history/, got wrong path", ep)
}
- } )
+ })
}
}
@@ -95,8 +94,10 @@ func TestNetworkHistoryEndpointsAreNotGated(t *testing.T) {
// surfaces the requirement in CI output and code review.
//
// To enforce this mechanically, add this to your Makefile or CI:
-// grep -r '"github.com/safing/portmaster/spn' ./service/netquery/ && exit 1 || exit 0
+//
+// grep -r '"github.com/safing/portmaster/spn' ./service/netquery/ && exit 1 || exit 0
func TestNoSPNImportInNetquery(t *testing.T) {
+ t.Parallel()
t.Log("Design intent: service/netquery must not import spn/* packages.")
t.Log("Enforce with: grep -r 'safing/portmaster/spn' ./service/netquery/ (should produce no output).")
}
diff --git a/service/sync/module.go b/service/sync/module.go
index 403d4b03d..a6510ef1e 100644
--- a/service/sync/module.go
+++ b/service/sync/module.go
@@ -15,7 +15,7 @@ type Sync struct {
}
// New returns a no-op Sync stub.
-func New(_ interface{}) (*Sync, error) {
+func New(_ any) (*Sync, error) {
return &Sync{}, nil
}
diff --git a/service/sync/module_test.go b/service/sync/module_test.go
index c79f9e0c8..7d1440161 100644
--- a/service/sync/module_test.go
+++ b/service/sync/module_test.go
@@ -9,14 +9,17 @@ import (
// TestSyncStubNoOp verifies that the sync stub starts and stops without error
// and does not establish any external connections.
func TestSyncStubNoOp(t *testing.T) {
+ t.Parallel()
s, err := sync.New(nil)
if err != nil {
t.Fatalf("sync.New() returned unexpected error: %v", err)
}
- if err := s.Start(); err != nil {
+ err = s.Start()
+ if err != nil {
t.Fatalf("Sync.Start() returned unexpected error: %v", err)
}
- if err := s.Stop(); err != nil {
+ err = s.Stop()
+ if err != nil {
t.Fatalf("Sync.Stop() returned unexpected error: %v", err)
}
}
@@ -24,6 +27,7 @@ func TestSyncStubNoOp(t *testing.T) {
// TestSyncStubManagerIsNil verifies that the stub returns no manager,
// confirming no background workers are spawned.
func TestSyncStubManagerIsNil(t *testing.T) {
+ t.Parallel()
s, err := sync.New(nil)
if err != nil {
t.Fatalf("sync.New() returned unexpected error: %v", err)
diff --git a/service/sync/profile.go b/service/sync/profile.go
index 1297226c6..38efa8fe9 100644
--- a/service/sync/profile.go
+++ b/service/sync/profile.go
@@ -1,2 +1,3 @@
// Stubbed: profile sync with external Safing servers has been removed.
+
package sync
diff --git a/service/sync/setting_single.go b/service/sync/setting_single.go
index 86c934e5c..4b61f7294 100644
--- a/service/sync/setting_single.go
+++ b/service/sync/setting_single.go
@@ -1,2 +1,3 @@
// Stubbed: single-setting sync with external Safing servers has been removed.
+
package sync
diff --git a/service/sync/settings.go b/service/sync/settings.go
index 594e546c8..1c49e35ad 100644
--- a/service/sync/settings.go
+++ b/service/sync/settings.go
@@ -1,2 +1,3 @@
// Stubbed: settings sync with external Safing servers has been removed.
+
package sync
diff --git a/service/sync/util.go b/service/sync/util.go
index 7ee123b35..3b46641db 100644
--- a/service/sync/util.go
+++ b/service/sync/util.go
@@ -1,2 +1,3 @@
// Stubbed: sync utilities have been removed along with the sync module.
+
package sync
diff --git a/spn/access/compatibility.go b/spn/access/compatibility.go
index 16a079888..20840a04c 100644
--- a/spn/access/compatibility.go
+++ b/spn/access/compatibility.go
@@ -5,6 +5,7 @@
// backend so that the remaining SPN packages still compile. The SPN module is
// never started in portmasterpro. Every symbol here is local, side-effect free
// and performs no network, token, account, persistence or telemetry I/O.
+
package access
import (
diff --git a/spn/access/module.go b/spn/access/module.go
index 275393141..27af758c7 100644
--- a/spn/access/module.go
+++ b/spn/access/module.go
@@ -15,7 +15,7 @@ type Access struct {
}
// New returns a no-op Access stub.
-func New(_ interface{}) (*Access, error) {
+func New(_ any) (*Access, error) {
return &Access{}, nil
}
diff --git a/spn/access/module_test.go b/spn/access/module_test.go
index 7f94adfd2..89e3ec5f8 100644
--- a/spn/access/module_test.go
+++ b/spn/access/module_test.go
@@ -8,20 +8,24 @@ import (
// TestAccessStubNoOp verifies the access stub starts and stops cleanly.
func TestAccessStubNoOp(t *testing.T) {
+ t.Parallel()
a, err := access.New(nil)
if err != nil {
t.Fatalf("access.New() returned unexpected error: %v", err)
}
- if err := a.Start(); err != nil {
+ err = a.Start()
+ if err != nil {
t.Fatalf("Access.Start() returned unexpected error: %v", err)
}
- if err := a.Stop(); err != nil {
+ err = a.Stop()
+ if err != nil {
t.Fatalf("Access.Stop() returned unexpected error: %v", err)
}
}
// TestAccessStubNotLoggedIn verifies no account session is present.
func TestAccessStubNotLoggedIn(t *testing.T) {
+ t.Parallel()
a, err := access.New(nil)
if err != nil {
t.Fatalf("access.New() returned unexpected error: %v", err)
@@ -33,6 +37,7 @@ func TestAccessStubNotLoggedIn(t *testing.T) {
// TestAccessStubAllFeaturesUnlocked verifies all features are available without a subscription.
func TestAccessStubAllFeaturesUnlocked(t *testing.T) {
+ t.Parallel()
a, err := access.New(nil)
if err != nil {
t.Fatalf("access.New() returned unexpected error: %v", err)
@@ -47,6 +52,7 @@ func TestAccessStubAllFeaturesUnlocked(t *testing.T) {
// TestAccessStubManagerIsNil verifies no background workers are spawned.
func TestAccessStubManagerIsNil(t *testing.T) {
+ t.Parallel()
a, err := access.New(nil)
if err != nil {
t.Fatalf("access.New() returned unexpected error: %v", err)
From f86c149aafaac1a24cb12e668c66129f699aca03 Mon Sep 17 00:00:00 2001
From: 0n113 <147522246+0n113@users.noreply.github.com>
Date: Wed, 30 Sep 2026 20:52:39 +0000
Subject: [PATCH 015/334] ui(lint): satisfy angular-eslint on touched files
- navigation.ts: drop trivially inferred type annotation
- dashboard/app-view templates: file-level disable for
label-has-associated-control; upstream uses