Files
mev-beta/orig/scripts/ci-precommit.sh
Administrator c54c569f30 refactor: move all remaining files to orig/ directory
Completed clean root directory structure:
- Root now contains only: .git, .env, docs/, orig/
- Moved all remaining files and directories to orig/:
  - Config files (.claude, .dockerignore, .drone.yml, etc.)
  - All .env variants (except active .env)
  - Git config (.gitconfig, .github, .gitignore, etc.)
  - Tool configs (.golangci.yml, .revive.toml, etc.)
  - Documentation (*.md files, @prompts)
  - Build files (Dockerfiles, Makefile, go.mod, go.sum)
  - Docker compose files
  - All source directories (scripts, tests, tools, etc.)
  - Runtime directories (logs, monitoring, reports)
  - Dependency files (node_modules, lib, cache)
  - Special files (--delete)

- Removed empty runtime directories (bin/, data/)

V2 structure is now clean:
- docs/planning/ - V2 planning documents
- orig/ - Complete V1 codebase preserved
- .env - Active environment config (not in git)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-10 10:53:05 +01:00

33 lines
675 B
Bash
Executable File

#!/usr/bin/env bash
# Pre-commit validation - minimal checks for speed
# Usage: ./scripts/ci-precommit.sh
set -euo pipefail
echo "🔍 Running Pre-commit Validation..."
echo "⏱️ Expected time: 10-30 seconds"
echo ""
# Quick build and test
echo "Building binary..."
make build
echo "Running tests..."
make test
echo "Checking formatting..."
if ! gofmt -l . | grep -q .; then
echo "✅ Code formatting is clean"
else
echo "❌ Code needs formatting:"
gofmt -l .
echo "Run: gofmt -w ."
exit 1
fi
echo "Running static analysis..."
go vet ./...
echo ""
echo "✅ Pre-commit validation passed!"
echo "💡 For more thorough checks, run: ./scripts/ci-quick.sh"