Files
git.stella-ops.org/docs/implplan-blocked/audits/csproj-standards/Zastava/StellaOps.Zastava.Agent/StellaOps.Zastava.Agent.md

1.8 KiB

Audit - StellaOps.Zastava.Agent

Project

  • Path: src/Zastava/StellaOps.Zastava.Agent/StellaOps.Zastava.Agent.csproj
  • Module: Zastava
  • Kind: Service
  • SDK: Microsoft.NET.Sdk
  • TargetFramework: net10.0
  • Audit date (UTC): 2026-01-30

Coding Standards Findings

  • Status: FAIL
  • Nullable: enable
  • TreatWarningsAsErrors: explicit true
  • Deterministic: inherited true
  • 100-line rule violations: 9
  • Service locator usage (BuildServiceProvider/GetService): 0
  • Analyzer enforcement: missing repo-wide (see summary).

Details

  • 100-line files:
    • src/Zastava/StellaOps.Zastava.Agent/Worker/DockerEventHostedService.cs (353 lines)
    • src/Zastava/StellaOps.Zastava.Agent/Worker/RuntimeEventBuffer.cs (304 lines)
    • src/Zastava/StellaOps.Zastava.Agent/Docker/DockerSocketClient.cs (296 lines)
    • src/Zastava/StellaOps.Zastava.Agent/Worker/HealthCheckHostedService.cs (276 lines)
    • src/Zastava/StellaOps.Zastava.Agent/Docker/DockerEventModels.cs (213 lines)
    • src/Zastava/StellaOps.Zastava.Agent/Worker/RuntimeEventDispatchService.cs (211 lines)
    • src/Zastava/StellaOps.Zastava.Agent/Configuration/ZastavaAgentOptions.cs (208 lines)
    • src/Zastava/StellaOps.Zastava.Agent/Backend/RuntimeEventsClient.cs (130 lines)
    • src/Zastava/StellaOps.Zastava.Agent/Worker/AgentServiceCollectionExtensions.cs (112 lines)
  • Service locator matches:
    • none

Fix Guidance

  • Split files over 100 lines into smaller types or partials.

Testing Fullness Findings

  • Status: FAIL
  • Expected layers: Unit
  • Detected test projects: none
  • Missing layers: Unit

Manual checks required

  • Observability contract tests for WebService/Worker.
  • Offline execution (tests must run without network access).

Fix Guidance

  • Add a unit test project named <Project>.Tests (or document exception).