#!/bin/bash
# Простая версия lint.sh для базовой проверки

echo "🔍 Basic code quality check..."

# Проверка Python файлов
echo "📋 Python files found:"
python_count=$(find . -name "*.py" | wc -l)
echo "Total Python files: $python_count"

# Проверка JavaScript/TypeScript файлов  
echo "📋 JS/TS files found:"
js_count=$(find . -name "*.js" -o -name "*.ts" -o -name "*.tsx" | wc -l)
echo "Total JS/TS files: $js_count"

# Проверка структуры проекта
echo "� Project structure check:"
[ -d "backend" ] && echo "✅ Backend directory found" || echo "❌ Backend directory missing"
[ -d "frontend" ] && echo "✅ Frontend directory found" || echo "❌ Frontend directory missing"
[ -f "docker-compose.yml" ] && echo "✅ docker-compose.yml found" || echo "❌ docker-compose.yml missing"
[ -f "Makefile" ] && echo "✅ Makefile found" || echo "❌ Makefile missing"

# Базовая проверка важных файлов
echo "📋 Configuration files:"
[ -f "backend/requirements.txt" ] && echo "✅ Backend requirements.txt" || echo "❌ Backend requirements.txt missing"
[ -f "frontend/linktree-frontend/package.json" ] && echo "✅ Frontend package.json" || echo "❌ Frontend package.json missing"

echo "✅ Basic lint check completed"