72 lines
2.2 KiB
YAML
72 lines
2.2 KiB
YAML
# coverage-exemptions.yaml
|
|
# Dead-path exemptions for intentionally untested code branches
|
|
# Sprint: SPRINT_20260105_002_005_TEST_cross_cutting
|
|
# Task: CCUT-016
|
|
#
|
|
# USAGE:
|
|
# ======
|
|
# Add file:line entries for code paths that are intentionally not covered.
|
|
# Each exemption MUST include a justification explaining why testing is not required.
|
|
#
|
|
# CATEGORIES:
|
|
# ===========
|
|
# - emergency: Emergency/fallback handlers that are tested manually
|
|
# - platform: Platform-specific code paths (e.g., Windows-only on Linux CI)
|
|
# - external: External system error handlers (e.g., network timeouts)
|
|
# - deprecated: Deprecated code paths scheduled for removal
|
|
# - defensive: Defensive programming that should never execute
|
|
#
|
|
# REVIEW:
|
|
# =======
|
|
# Exemptions should be reviewed quarterly. Remove exemptions for:
|
|
# - Code that has been deleted
|
|
# - Code that now has test coverage
|
|
# - Deprecated code that has been removed
|
|
|
|
version: "1.0"
|
|
|
|
# Global settings
|
|
settings:
|
|
# Require justification for all exemptions
|
|
require_justification: true
|
|
# Maximum age of exemptions before review required (days)
|
|
max_exemption_age_days: 90
|
|
# Fail CI if exemption is older than max age
|
|
fail_on_stale_exemptions: false
|
|
|
|
# Exemption entries
|
|
exemptions: []
|
|
# Example exemptions (commented out):
|
|
#
|
|
# - path: "src/Authority/Services/EmergencyAccessHandler.cs:42"
|
|
# category: emergency
|
|
# justification: "Emergency access bypass - tested manually during incident drills"
|
|
# added: "2026-01-06"
|
|
# owner: "security-team"
|
|
#
|
|
# - path: "src/Scanner/Platform/WindowsRegistryScanner.cs:128"
|
|
# category: platform
|
|
# justification: "Windows-only code path - CI runs on Linux"
|
|
# added: "2026-01-06"
|
|
# owner: "scanner-team"
|
|
#
|
|
# - path: "src/Concelier/Connectors/LegacyNvdConnector.cs:*"
|
|
# category: deprecated
|
|
# justification: "Entire file deprecated - scheduled for removal in 2026.Q2"
|
|
# added: "2026-01-06"
|
|
# owner: "concelier-team"
|
|
# removal_target: "2026-04-01"
|
|
|
|
# Patterns to ignore entirely (not counted as dead paths)
|
|
ignore_patterns:
|
|
# Generated code
|
|
- "*.Generated.cs"
|
|
- "*.Designer.cs"
|
|
# Migration files
|
|
- "**/Migrations/*.cs"
|
|
# Test infrastructure
|
|
- "**/*.Tests/**"
|
|
- "**/TestKit/**"
|
|
# Benchmark code
|
|
- "**/__Benchmarks/**"
|