Skip to content

Commit 2264898

Browse files
committed
fix: remove final unnecessary using directives (IDE0005)
- Fixed CredentialManager.cs: removed unused System.Text - Fixed User.cs: removed unused System.Collections.Generic - Fixed Watcher.cs: removed unused System.Collections.Concurrent - Fixed Repository.State.cs: removed unused Avalonia.Collections - Fixed CommitRefsSummary.cs: removed unused System.Linq .editorconfig sets IDE0005 to error severity, enforcing clean usings
1 parent fac24a3 commit 2264898

File tree

7 files changed

+110
-5
lines changed

7 files changed

+110
-5
lines changed

create_release.sh

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#!/bin/bash
2+
3+
# GitHub CLI Installation Check
4+
if ! command -v gh &> /dev/null; then
5+
echo "GitHub CLI (gh) is not installed!"
6+
echo "Install it with: brew install gh"
7+
echo "Then authenticate with: gh auth login"
8+
exit 1
9+
fi
10+
11+
# Check if authenticated
12+
if ! gh auth status &> /dev/null; then
13+
echo "Not authenticated with GitHub!"
14+
echo "Run: gh auth login"
15+
exit 1
16+
fi
17+
18+
TAG="v2025.34-IW.7"
19+
20+
echo "Creating GitHub Release for $TAG..."
21+
22+
# Create release with release notes
23+
gh release create "$TAG" \
24+
--title "v2025.34-IW.7 - Repository Metrics Dashboard" \
25+
--notes "## Iniationware Custom Release
26+
27+
### ✨ New Features
28+
- **Repository Metrics Dashboard**
29+
- Branch Counter showing local/remote branches (7/12 format)
30+
- Commit Statistics with Today/Week/Month tracking (T:4 W:48 M:82)
31+
- Two-row status panel for better space utilization
32+
- Activity level indicators with detailed tooltips
33+
34+
### 🐛 Bug Fixes
35+
- Fixed all IDE0005 build errors across entire codebase
36+
- Improved shutdown performance (30s → 0.5s)
37+
- Enhanced memory management and cache cleanup
38+
- Fixed GitFlow sidebar refresh issues
39+
40+
### 🔧 Technical Improvements
41+
- Real Git commands (no simulations)
42+
- Comprehensive error handling
43+
- Auto-refresh on repository state changes
44+
- 100% read-only operations for safety
45+
- Added local build validation scripts
46+
47+
### 📝 Development Tools
48+
- \`check_build.sh\` - Pre-commit validation
49+
- \`test_all_ide0005.sh\` - Complete IDE0005 check
50+
51+
This release is based on SourceGit v2025.34 with Iniationware enhancements.
52+
53+
**Note**: Packages are being built by GitHub Actions and will be available shortly." \
54+
--prerelease
55+
56+
echo "✅ Release created!"
57+
echo ""
58+
echo "View it at: https://github.com/Iniationware/sourcegit/releases/tag/$TAG"
59+
echo ""
60+
echo "The GitHub Actions workflow should now build and attach the packages automatically."

src/Models/CredentialManager.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
using System.Collections.Generic;
33
using System.Diagnostics;
44
using System.IO;
5-
using System.Text;
65

76
namespace SourceGit.Models
87
{

src/Models/User.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Collections.Concurrent;
2-
using System.Collections.Generic;
32
using System.Linq;
43

54
namespace SourceGit.Models

src/Models/Watcher.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Collections.Concurrent;
32
using System.Collections.Generic;
43
using System.IO;
54
using System.Threading;

src/ViewModels/Repository.State.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Threading;
4-
using Avalonia.Collections;
54
using Avalonia.Threading;
65

76
namespace SourceGit.ViewModels

src/Views/CommitRefsSummary.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Globalization;
4-
using System.Linq;
54
using System.Text;
65

76
using Avalonia;

test_all_ide0005.sh

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#!/bin/bash
2+
3+
echo "=========================================="
4+
echo "Complete IDE0005 Check (GitHub Actions Mode)"
5+
echo "=========================================="
6+
echo ""
7+
8+
# Use exact same build command as GitHub Actions
9+
echo "Running build with strict IDE0005 checking..."
10+
echo "Building with: -c Release -warnaserror"
11+
echo ""
12+
13+
# First, clean everything
14+
dotnet clean src/SourceGit.csproj > /dev/null 2>&1
15+
16+
# Build with exact GitHub Actions settings
17+
if dotnet build src/SourceGit.csproj \
18+
-c Release \
19+
-warnaserror \
20+
--no-restore \
21+
2>&1 | tee /tmp/build_full.log | grep "error IDE0005"; then
22+
echo ""
23+
echo "❌ FOUND IDE0005 ERRORS!"
24+
echo ""
25+
echo "Affected files:"
26+
grep "error IDE0005" /tmp/build_full.log | cut -d'(' -f1 | sort -u
27+
exit 1
28+
else
29+
echo "✅ No IDE0005 errors found!"
30+
fi
31+
32+
# Also check with EnforceCodeStyleInBuild
33+
echo ""
34+
echo "Checking with EnforceCodeStyleInBuild=true..."
35+
if dotnet build src/SourceGit.csproj \
36+
-c Release \
37+
-p:EnforceCodeStyleInBuild=true \
38+
-warnaserror:IDE0005 \
39+
2>&1 | grep "error IDE0005"; then
40+
echo ""
41+
echo "❌ Found additional IDE0005 errors with strict code style!"
42+
exit 1
43+
else
44+
echo "✅ No additional IDE0005 errors!"
45+
fi
46+
47+
echo ""
48+
echo "=========================================="
49+
echo "✅ ALL CHECKS PASSED - Ready for GitHub!"
50+
echo "=========================================="

0 commit comments

Comments
 (0)