chore: update .codecov.yml, .dockerignore, and .gitignore for improved coverage and build context exclusions
This commit is contained in:
88
.codecov.yml
88
.codecov.yml
@@ -1,5 +1,7 @@
|
||||
# Codecov configuration - require 75% overall coverage by default
|
||||
# Adjust target as needed
|
||||
# =============================================================================
|
||||
# Codecov Configuration
|
||||
# Require 75% overall coverage, exclude test files and non-source code
|
||||
# =============================================================================
|
||||
|
||||
coverage:
|
||||
status:
|
||||
@@ -11,30 +13,78 @@ coverage:
|
||||
# Fail CI if Codecov upload/report indicates a problem
|
||||
require_ci_to_pass: yes
|
||||
|
||||
# Exclude folders from Codecov
|
||||
# -----------------------------------------------------------------------------
|
||||
# Exclude from coverage reporting
|
||||
# -----------------------------------------------------------------------------
|
||||
ignore:
|
||||
- "**/tests/*"
|
||||
- "**/test/*"
|
||||
- "**/__tests__/*"
|
||||
# Test files
|
||||
- "**/tests/**"
|
||||
- "**/test/**"
|
||||
- "**/__tests__/**"
|
||||
- "**/test_*.go"
|
||||
- "**/*_test.go"
|
||||
- "**/*.test.ts"
|
||||
- "**/*.test.tsx"
|
||||
- "docs/*"
|
||||
- ".github/*"
|
||||
- "scripts/*"
|
||||
- "tools/*"
|
||||
- "frontend/node_modules/*"
|
||||
- "frontend/dist/*"
|
||||
- "frontend/coverage/*"
|
||||
- "backend/cmd/seed/*"
|
||||
- "backend/cmd/api/*"
|
||||
- "backend/data/*"
|
||||
- "backend/coverage/*"
|
||||
- "**/*.spec.ts"
|
||||
- "**/*.spec.tsx"
|
||||
- "**/vitest.config.ts"
|
||||
- "**/vitest.setup.ts"
|
||||
|
||||
# E2E tests
|
||||
- "**/e2e/**"
|
||||
- "**/integration/**"
|
||||
|
||||
# Documentation
|
||||
- "docs/**"
|
||||
- "*.md"
|
||||
|
||||
# CI/CD & Config
|
||||
- ".github/**"
|
||||
- "scripts/**"
|
||||
- "tools/**"
|
||||
- "*.yml"
|
||||
- "*.yaml"
|
||||
- "*.json"
|
||||
|
||||
# Frontend build artifacts & dependencies
|
||||
- "frontend/node_modules/**"
|
||||
- "frontend/dist/**"
|
||||
- "frontend/coverage/**"
|
||||
- "frontend/test-results/**"
|
||||
- "frontend/public/**"
|
||||
|
||||
# Backend non-source files
|
||||
- "backend/cmd/seed/**"
|
||||
- "backend/cmd/api/**"
|
||||
- "backend/data/**"
|
||||
- "backend/coverage/**"
|
||||
- "backend/bin/**"
|
||||
- "backend/*.cover"
|
||||
- "backend/*.out"
|
||||
- "backend/*.html"
|
||||
- "backend/codeql-db/**"
|
||||
|
||||
# Docker-only code (not testable in CI)
|
||||
- "backend/internal/services/docker_service.go"
|
||||
- "backend/internal/api/handlers/docker_handler.go"
|
||||
- "codeql-db/*"
|
||||
|
||||
# CodeQL artifacts
|
||||
- "codeql-db/**"
|
||||
- "codeql-db-*/**"
|
||||
- "codeql-agent-results/**"
|
||||
- "codeql-custom-queries-*/**"
|
||||
- "*.sarif"
|
||||
- "*.md"
|
||||
|
||||
# Config files (no logic)
|
||||
- "**/tailwind.config.js"
|
||||
- "**/postcss.config.js"
|
||||
- "**/eslint.config.js"
|
||||
- "**/vite.config.ts"
|
||||
- "**/tsconfig*.json"
|
||||
|
||||
# Type definitions only
|
||||
- "**/*.d.ts"
|
||||
|
||||
# Import/data directories
|
||||
- "import/**"
|
||||
- "data/**"
|
||||
|
||||
154
.dockerignore
154
.dockerignore
@@ -1,9 +1,22 @@
|
||||
# Version control
|
||||
.git
|
||||
# =============================================================================
|
||||
# .dockerignore - Exclude files from Docker build context
|
||||
# Keep this file in sync with .gitignore where applicable
|
||||
# =============================================================================
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Version Control & CI/CD
|
||||
# -----------------------------------------------------------------------------
|
||||
.git/
|
||||
.gitignore
|
||||
.github/
|
||||
.pre-commit-config.yaml
|
||||
.codecov.yml
|
||||
.goreleaser.yaml
|
||||
.sourcery.yml
|
||||
|
||||
# Python
|
||||
# -----------------------------------------------------------------------------
|
||||
# Python (pre-commit, tooling)
|
||||
# -----------------------------------------------------------------------------
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
@@ -15,99 +28,172 @@ env/
|
||||
ENV/
|
||||
.pytest_cache/
|
||||
.coverage
|
||||
*.cover
|
||||
.hypothesis/
|
||||
htmlcov/
|
||||
*.egg-info/
|
||||
|
||||
# Node/Frontend build artifacts
|
||||
# -----------------------------------------------------------------------------
|
||||
# Node/Frontend - Build in Docker, not from host
|
||||
# -----------------------------------------------------------------------------
|
||||
frontend/node_modules/
|
||||
frontend/coverage/
|
||||
frontend/coverage.out
|
||||
frontend/test-results/
|
||||
frontend/dist/
|
||||
frontend/.vite/
|
||||
frontend/*.tsbuildinfo
|
||||
frontend/frontend/
|
||||
frontend/e2e/
|
||||
|
||||
# Go/Backend
|
||||
backend/coverage.txt
|
||||
# Root-level node artifacts (eslint config runner)
|
||||
node_modules/
|
||||
package-lock.json
|
||||
package.json
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Go/Backend - Build artifacts & coverage
|
||||
# -----------------------------------------------------------------------------
|
||||
backend/bin/
|
||||
backend/api
|
||||
backend/*.out
|
||||
backend/*.cover
|
||||
backend/*.html
|
||||
backend/coverage/
|
||||
backend/coverage.*.out
|
||||
backend/coverage_*.out
|
||||
backend/coverage*.out
|
||||
backend/coverage*.txt
|
||||
backend/*.coverage.out
|
||||
backend/handler_coverage.txt
|
||||
backend/handlers.out
|
||||
backend/services.test
|
||||
backend/test-output.txt
|
||||
backend/tr_no_cover.txt
|
||||
backend/nohup.out
|
||||
backend/package.json
|
||||
backend/package-lock.json
|
||||
|
||||
# Databases (runtime)
|
||||
backend/data/*.db
|
||||
backend/data/**/*.db
|
||||
backend/cmd/api/data/*.db
|
||||
# Backend data (created at runtime)
|
||||
backend/data/
|
||||
backend/codeql-db/
|
||||
backend/.venv/
|
||||
backend/.vscode/
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Databases (created at runtime)
|
||||
# -----------------------------------------------------------------------------
|
||||
*.db
|
||||
*.sqlite
|
||||
*.sqlite3
|
||||
cpm.db
|
||||
data/
|
||||
charon.db
|
||||
cpm.db
|
||||
|
||||
# IDE
|
||||
# -----------------------------------------------------------------------------
|
||||
# IDE & Editor
|
||||
# -----------------------------------------------------------------------------
|
||||
.vscode/
|
||||
.vscode.backup*/
|
||||
.idea/
|
||||
*.swp
|
||||
*.swo
|
||||
*~
|
||||
*.xcf
|
||||
Chiron.code-workspace
|
||||
|
||||
# Logs
|
||||
# -----------------------------------------------------------------------------
|
||||
# Logs & Temp Files
|
||||
# -----------------------------------------------------------------------------
|
||||
.trivy_logs/
|
||||
*.log
|
||||
logs/
|
||||
nohup.out
|
||||
|
||||
# Environment
|
||||
# -----------------------------------------------------------------------------
|
||||
# Environment Files
|
||||
# -----------------------------------------------------------------------------
|
||||
.env
|
||||
.env.local
|
||||
.env.*.local
|
||||
!.env.example
|
||||
|
||||
# OS
|
||||
# -----------------------------------------------------------------------------
|
||||
# OS Files
|
||||
# -----------------------------------------------------------------------------
|
||||
.DS_Store
|
||||
Thumbs.db
|
||||
|
||||
# Documentation
|
||||
# -----------------------------------------------------------------------------
|
||||
# Documentation (not needed in image)
|
||||
# -----------------------------------------------------------------------------
|
||||
docs/
|
||||
*.md
|
||||
!README.md
|
||||
!CONTRIBUTING.md
|
||||
!LICENSE
|
||||
|
||||
# Docker
|
||||
# -----------------------------------------------------------------------------
|
||||
# Docker Compose (not needed inside image)
|
||||
# -----------------------------------------------------------------------------
|
||||
docker-compose*.yml
|
||||
**/Dockerfile.*
|
||||
|
||||
# CI/CD
|
||||
.github/
|
||||
.pre-commit-config.yaml
|
||||
.codecov.yml
|
||||
.goreleaser.yaml
|
||||
|
||||
# GoReleaser artifacts
|
||||
# -----------------------------------------------------------------------------
|
||||
# GoReleaser & dist artifacts
|
||||
# -----------------------------------------------------------------------------
|
||||
dist/
|
||||
|
||||
# Scripts
|
||||
# -----------------------------------------------------------------------------
|
||||
# Scripts & Tools (not needed in image)
|
||||
# -----------------------------------------------------------------------------
|
||||
scripts/
|
||||
tools/
|
||||
create_issues.sh
|
||||
cookies.txt
|
||||
cookies.txt.bak
|
||||
test.caddyfile
|
||||
Makefile
|
||||
|
||||
# Testing artifacts
|
||||
# -----------------------------------------------------------------------------
|
||||
# Testing & Coverage Artifacts
|
||||
# -----------------------------------------------------------------------------
|
||||
coverage/
|
||||
coverage.out
|
||||
*.cover
|
||||
*.crdownload
|
||||
*.sarif
|
||||
|
||||
# Project Documentation
|
||||
ACME_STAGING_IMPLEMENTATION.md
|
||||
# -----------------------------------------------------------------------------
|
||||
# CodeQL & Security Scanning (large, not needed)
|
||||
# -----------------------------------------------------------------------------
|
||||
codeql-db/
|
||||
codeql-db-*/
|
||||
codeql-agent-results/
|
||||
codeql-custom-queries-*/
|
||||
codeql-*.sarif
|
||||
codeql-results*.sarif
|
||||
.codeql/
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Import Directory (user data)
|
||||
# -----------------------------------------------------------------------------
|
||||
import/
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Project Documentation & Planning (not needed in image)
|
||||
# -----------------------------------------------------------------------------
|
||||
*.md.bak
|
||||
ACME_STAGING_IMPLEMENTATION.md*
|
||||
ARCHITECTURE_PLAN.md
|
||||
BULK_ACL_FEATURE.md
|
||||
DOCKER_TASKS.md
|
||||
DOCKER_TASKS.md*
|
||||
DOCUMENTATION_POLISH_SUMMARY.md
|
||||
GHCR_MIGRATION_SUMMARY.md
|
||||
ISSUE_*_IMPLEMENTATION.md
|
||||
ISSUE_*_IMPLEMENTATION.md*
|
||||
PHASE_*_SUMMARY.md
|
||||
PROJECT_BOARD_SETUP.md
|
||||
PROJECT_PLANNING.md
|
||||
SECURITY_IMPLEMENTATION_PLAN.md
|
||||
VERSIONING_IMPLEMENTATION.md
|
||||
QA_AUDIT_REPORT*.md
|
||||
VERSION.md
|
||||
eslint.config.js
|
||||
go.work
|
||||
go.work.sum
|
||||
|
||||
119
.gitignore
vendored
119
.gitignore
vendored
@@ -1,4 +1,10 @@
|
||||
# Python
|
||||
# =============================================================================
|
||||
# .gitignore - Files to exclude from version control
|
||||
# =============================================================================
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Python (pre-commit, tooling)
|
||||
# -----------------------------------------------------------------------------
|
||||
__pycache__/
|
||||
*.py[cod]
|
||||
*$py.class
|
||||
@@ -14,25 +20,44 @@ ENV/
|
||||
.hypothesis/
|
||||
htmlcov/
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Node/Frontend
|
||||
# -----------------------------------------------------------------------------
|
||||
node_modules/
|
||||
frontend/node_modules/
|
||||
backend/node_modules/
|
||||
frontend/dist/
|
||||
frontend/coverage/
|
||||
frontend/test-results/
|
||||
frontend/.vite/
|
||||
frontend/*.tsbuildinfo
|
||||
frontend/frontend/
|
||||
|
||||
# Go/Backend
|
||||
# -----------------------------------------------------------------------------
|
||||
# Go/Backend - Build artifacts & coverage
|
||||
# -----------------------------------------------------------------------------
|
||||
backend/api
|
||||
backend/bin/
|
||||
backend/*.out
|
||||
backend/*.cover
|
||||
backend/*.html
|
||||
backend/coverage/
|
||||
backend/coverage.*.out
|
||||
backend/coverage_*.out
|
||||
backend/coverage*.out
|
||||
backend/coverage*.txt
|
||||
backend/*.coverage.out
|
||||
backend/handler_coverage.txt
|
||||
backend/handlers.out
|
||||
backend/services.test
|
||||
backend/test-output.txt
|
||||
backend/tr_no_cover.txt
|
||||
backend/nohup.out
|
||||
backend/charon
|
||||
backend/codeql-db/
|
||||
backend/.venv/
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Databases
|
||||
# -----------------------------------------------------------------------------
|
||||
*.db
|
||||
*.sqlite
|
||||
*.sqlite3
|
||||
@@ -42,80 +67,104 @@ backend/cmd/api/data/*.db
|
||||
cpm.db
|
||||
charon.db
|
||||
|
||||
# IDE
|
||||
# -----------------------------------------------------------------------------
|
||||
# IDE & Editor
|
||||
# -----------------------------------------------------------------------------
|
||||
.idea/
|
||||
*.swp
|
||||
*.swo
|
||||
*~
|
||||
.DS_Store
|
||||
*.xcf
|
||||
.vscode/launch.json
|
||||
.vscode.backup*/
|
||||
|
||||
|
||||
# Logs
|
||||
.trivy_logs
|
||||
# -----------------------------------------------------------------------------
|
||||
# Logs & Temp Files
|
||||
# -----------------------------------------------------------------------------
|
||||
.trivy_logs/
|
||||
*.log
|
||||
logs/
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
nohup.out
|
||||
|
||||
# Environment
|
||||
# -----------------------------------------------------------------------------
|
||||
# Environment Files
|
||||
# -----------------------------------------------------------------------------
|
||||
.env
|
||||
.env.*
|
||||
!.env.example
|
||||
|
||||
# OS
|
||||
# -----------------------------------------------------------------------------
|
||||
# OS Files
|
||||
# -----------------------------------------------------------------------------
|
||||
Thumbs.db
|
||||
*.xcf
|
||||
|
||||
# Caddy
|
||||
# -----------------------------------------------------------------------------
|
||||
# Caddy Runtime Data
|
||||
# -----------------------------------------------------------------------------
|
||||
backend/data/caddy/
|
||||
data/
|
||||
|
||||
# Docker
|
||||
# -----------------------------------------------------------------------------
|
||||
# Docker Overrides
|
||||
# -----------------------------------------------------------------------------
|
||||
docker-compose.override.yml
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# GoReleaser
|
||||
# -----------------------------------------------------------------------------
|
||||
dist/
|
||||
|
||||
# Testing
|
||||
# -----------------------------------------------------------------------------
|
||||
# Testing & Coverage
|
||||
# -----------------------------------------------------------------------------
|
||||
coverage/
|
||||
coverage.out
|
||||
*.xml
|
||||
.trivy_logs/
|
||||
.trivy_logs/trivy-report.txt
|
||||
backend/coverage.txt
|
||||
|
||||
# CodeQL
|
||||
codeql-db/
|
||||
codeql-results.sarif
|
||||
**.sarif
|
||||
codeql-results-js.sarif
|
||||
codeql-results-go.sarif
|
||||
*.crdownload
|
||||
.vscode/launch.json
|
||||
|
||||
# More CodeQL/analysis artifacts and DBs
|
||||
# -----------------------------------------------------------------------------
|
||||
# CodeQL & Security Scanning
|
||||
# -----------------------------------------------------------------------------
|
||||
codeql-db/
|
||||
codeql-db-*/
|
||||
codeql-db-js/
|
||||
codeql-db-go/
|
||||
codeql-agent-results/
|
||||
codeql-custom-queries-*/
|
||||
codeql-results*.sarif
|
||||
codeql-*.sarif
|
||||
*.sarif
|
||||
.codeql/
|
||||
.codeql/**
|
||||
|
||||
# Scripts (project-specific)
|
||||
# -----------------------------------------------------------------------------
|
||||
# Scripts & Temp Files (project-specific)
|
||||
# -----------------------------------------------------------------------------
|
||||
create_issues.sh
|
||||
cookies.txt
|
||||
cookies.txt.bak
|
||||
test.caddyfile
|
||||
|
||||
# Project Documentation (keep important docs, ignore implementation notes)
|
||||
ACME_STAGING_IMPLEMENTATION.md
|
||||
# -----------------------------------------------------------------------------
|
||||
# Project Documentation (implementation notes - not needed in repo)
|
||||
# -----------------------------------------------------------------------------
|
||||
*.md.bak
|
||||
ACME_STAGING_IMPLEMENTATION.md*
|
||||
ARCHITECTURE_PLAN.md
|
||||
BULK_ACL_FEATURE.md
|
||||
DOCKER_TASKS.md
|
||||
DOCKER_TASKS.md*
|
||||
DOCUMENTATION_POLISH_SUMMARY.md
|
||||
GHCR_MIGRATION_SUMMARY.md
|
||||
ISSUE_*_IMPLEMENTATION.md
|
||||
ISSUE_*_IMPLEMENTATION.md*
|
||||
PHASE_*_SUMMARY.md
|
||||
PROJECT_BOARD_SETUP.md
|
||||
PROJECT_PLANNING.md
|
||||
SECURITY_IMPLEMENTATION_PLAN.md
|
||||
VERSIONING_IMPLEMENTATION.md
|
||||
backend/internal/api/handlers/import_handler.go.bak
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Import Directory (user uploads)
|
||||
# -----------------------------------------------------------------------------
|
||||
import/
|
||||
test-results/charon.hatfieldhosted.com.har
|
||||
|
||||
Reference in New Issue
Block a user