Files
Nexus.Reader/.agent/skills/nexus-architecture-standards/scripts/arch_check.sh
T

16 lines
432 B
Bash
Executable File

#!/bin/bash
# Simple script to check for Clean Architecture violations in NexusReader
APP_DIR="src/NexusReader.Application"
VIOLATIONS=$(grep -r "using NexusReader.Infrastructure" "$APP_DIR")
if [ -n "$VIOLATIONS" ]; then
echo "ERROR: Clean Architecture violations found in $APP_DIR:"
echo "$VIOLATIONS"
exit 1
else
echo "SUCCESS: No illegal Infrastructure dependencies found in Application layer."
exit 0
fi