forked from sourcegit-scm/sourcegit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_all_ide0005.sh
More file actions
executable file
·50 lines (44 loc) · 1.36 KB
/
test_all_ide0005.sh
File metadata and controls
executable file
·50 lines (44 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/bin/bash
echo "=========================================="
echo "Complete IDE0005 Check (GitHub Actions Mode)"
echo "=========================================="
echo ""
# Use exact same build command as GitHub Actions
echo "Running build with strict IDE0005 checking..."
echo "Building with: -c Release -warnaserror"
echo ""
# First, clean everything
dotnet clean src/SourceGit.csproj > /dev/null 2>&1
# Build with exact GitHub Actions settings
if dotnet build src/SourceGit.csproj \
-c Release \
-warnaserror \
--no-restore \
2>&1 | tee /tmp/build_full.log | grep "error IDE0005"; then
echo ""
echo "❌ FOUND IDE0005 ERRORS!"
echo ""
echo "Affected files:"
grep "error IDE0005" /tmp/build_full.log | cut -d'(' -f1 | sort -u
exit 1
else
echo "✅ No IDE0005 errors found!"
fi
# Also check with EnforceCodeStyleInBuild
echo ""
echo "Checking with EnforceCodeStyleInBuild=true..."
if dotnet build src/SourceGit.csproj \
-c Release \
-p:EnforceCodeStyleInBuild=true \
-warnaserror:IDE0005 \
2>&1 | grep "error IDE0005"; then
echo ""
echo "❌ Found additional IDE0005 errors with strict code style!"
exit 1
else
echo "✅ No additional IDE0005 errors!"
fi
echo ""
echo "=========================================="
echo "✅ ALL CHECKS PASSED - Ready for GitHub!"
echo "=========================================="