Files
Charon/.gitignore
GitHub Actions 9eb0f31e75 chore: Refactor patch coverage remediation plan and create dedicated spec file
- Moved the existing patch coverage remediation plan from `current_spec.md` to a new file `patch_coverage_spec.md` for better organization and focus on security remediation.
- Updated the goal to emphasize restoring Codecov patch coverage to green by ensuring 100% of modified lines are executed by tests.
- Defined two workstreams: one for fixing patch coverage in specific backend files and another for updating prevention measures in instructions and agent files.
- Added a detailed missing files table to track Codecov patch report line ranges and corresponding test strategies.
- Included guidance on handling partial patch lines and common patterns for missed coverage.
- Specified a remediation plan with a test-first approach and per-file testing strategies for targeted coverage improvements.
- Updated relevant instructions and agent files to enforce patch coverage requirements and improve validation processes.
2026-01-10 03:06:07 +00:00

249 lines
7.1 KiB
Plaintext

# =============================================================================
# .gitignore - Files to exclude from version control
# =============================================================================
# -----------------------------------------------------------------------------
# Python (pre-commit, tooling)
# -----------------------------------------------------------------------------
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
.venv/
venv/
env/
ENV/
.pytest_cache/
.coverage
*.cover
.hypothesis/
htmlcov/
# -----------------------------------------------------------------------------
# Node/Frontend
# -----------------------------------------------------------------------------
node_modules/
frontend/node_modules/
backend/node_modules/
frontend/dist/
frontend/coverage/
frontend/test-results/
frontend/.vite/
frontend/*.tsbuildinfo
/frontend/.cache/
/frontend/.eslintcache
/backend/.vscode/
/data/geoip/
/frontend/frontend/
# -----------------------------------------------------------------------------
# Go/Backend - Build artifacts & coverage
# -----------------------------------------------------------------------------
backend/api
backend/bin/
backend/*.out
backend/*.cover
backend/*.html
backend/coverage/
backend/coverage*.out
backend/coverage*.txt
backend/*.coverage.out
backend/handler_coverage.txt
backend/handlers.out
backend/services.test
backend/*.test
backend/test-output.txt
backend/tr_no_cover.txt
backend/nohup.out
backend/charon
backend/codeql-db/
backend/.venv/
backend/internal/api/tests/data/
# -----------------------------------------------------------------------------
# Databases
# -----------------------------------------------------------------------------
*.db
*.sqlite
*.sqlite3
backend/data/
backend/data/*.db
backend/data/**/*.db
backend/cmd/api/data/*.db
cpm.db
charon.db
# -----------------------------------------------------------------------------
# IDE & Editor
# -----------------------------------------------------------------------------
.idea/
*.swp
*.swo
*~
.DS_Store
*.xcf
**.code-workspace
# -----------------------------------------------------------------------------
# Logs & Temp Files
# -----------------------------------------------------------------------------
.trivy_logs/
*.log
logs/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
nohup.out
hub_index.json
temp_index.json
backend/temp_index.json
# -----------------------------------------------------------------------------
# Environment Files
# -----------------------------------------------------------------------------
.env
.env.*
!.env.example
# -----------------------------------------------------------------------------
# OS Files
# -----------------------------------------------------------------------------
Thumbs.db
# -----------------------------------------------------------------------------
# Caddy Runtime Data
# -----------------------------------------------------------------------------
backend/data/caddy/
/data/
/data/backups/
# -----------------------------------------------------------------------------
# CrowdSec Runtime Data
# -----------------------------------------------------------------------------
*.key
# -----------------------------------------------------------------------------
# Docker Overrides
# -----------------------------------------------------------------------------
docker-compose.override.yml
# -----------------------------------------------------------------------------
# GoReleaser
# -----------------------------------------------------------------------------
dist/
# -----------------------------------------------------------------------------
# Testing & Coverage
# -----------------------------------------------------------------------------
coverage/
coverage.out
*.xml
*.crdownload
# -----------------------------------------------------------------------------
# CodeQL & Security Scanning
# -----------------------------------------------------------------------------
codeql-db/
codeql-db-*/
codeql-agent-results/
codeql-custom-queries-*/
codeql-results*.sarif
codeql-*.sarif
*.sarif
.codeql/
.codeql/**
# -----------------------------------------------------------------------------
# Scripts & Temp Files (project-specific)
# -----------------------------------------------------------------------------
create_issues.sh
cookies.txt
cookies.txt.bak
test.caddyfile
# -----------------------------------------------------------------------------
# Project Documentation (implementation notes - not needed in repo)
# -----------------------------------------------------------------------------
*.md.bak
ACME_STAGING_IMPLEMENTATION.md*
ARCHITECTURE_PLAN.md
DOCKER_TASKS.md*
DOCUMENTATION_POLISH_SUMMARY.md
GHCR_MIGRATION_SUMMARY.md
ISSUE_*_IMPLEMENTATION.md*
PHASE_*_SUMMARY.md
PROJECT_BOARD_SETUP.md
PROJECT_PLANNING.md
VERSIONING_IMPLEMENTATION.md
backend/internal/api/handlers/import_handler.go.bak
# -----------------------------------------------------------------------------
# Agent Skills - Runtime Data Only (DO NOT ignore skill definitions)
# -----------------------------------------------------------------------------
# ⚠️ IMPORTANT: Only runtime artifacts are ignored. All .SKILL.md files and
# scripts MUST be committed for CI/CD workflows to function.
# Runtime temporary files
.github/skills/.cache/
.github/skills/temp/
.github/skills/tmp/
.github/skills/**/*.tmp
# Execution logs
.github/skills/logs/
.github/skills/**/*.log
.github/skills/**/nohup.out
# Test/coverage artifacts
.github/skills/coverage/
.github/skills/**/*.cover
.github/skills/**/*.html
.github/skills/**/test-output*.txt
.github/skills/**/*.db
# OS and editor files
.github/skills/**/.DS_Store
.github/skills/**/Thumbs.db
# -----------------------------------------------------------------------------
# Import Directory (user uploads)
# -----------------------------------------------------------------------------
import/
test-results/charon.hatfieldhosted.com.har
test-results/local.har
.cache
# -----------------------------------------------------------------------------
# Test artifacts at root
# -----------------------------------------------------------------------------
/block*.txt
/final_block_test.txt
# -----------------------------------------------------------------------------
# Debug/temp config files at root
# -----------------------------------------------------------------------------
/caddy_*.json
# -----------------------------------------------------------------------------
# Trivy scan outputs at root
# -----------------------------------------------------------------------------
/trivy-*.txt
# -----------------------------------------------------------------------------
# SBOM artifacts
# -----------------------------------------------------------------------------
sbom*.json
# -----------------------------------------------------------------------------
# Docker Overrides (new location)
# -----------------------------------------------------------------------------
.docker/compose/docker-compose.override.yml
docker-compose.test.yml
.github/agents/prompt_template/
my-codeql-db/**
codeql-linux64.zip
backend/main
**.out
docs/plans/supply_chain_security_implementation.md.backup