Skip to content

Commit c0834af

Browse files
void2610claude
andcommitted
診断: ReSharper cleanupcode の詳細な診断を追加
- .DotSettings ファイルでフォーマット設定を明示的に指定 - 詳細なデバッグ情報を追加 - フォーマット前後の状態比較 - verbosity=INFO で実行詳細を確認 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent cca14a1 commit c0834af

1 file changed

Lines changed: 26 additions & 5 deletions

File tree

.github/workflows/resharper-code-check.yml

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,23 +120,44 @@ jobs:
120120
echo " - メインゲームコードのみ対象(サンプル除外)"
121121
echo " - Unity プロジェクト最適化"
122122
123+
# ReSharper コードフォーマット設定ファイルを作成
124+
echo "📝 ReSharper設定ファイルを作成中..."
125+
cat > .DotSettings << 'EOF'
126+
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
127+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/SPACE_AFTER_COMMA/@EntryValue">True</s:Boolean>
128+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/SPACE_AROUND_BINARY_OPERATOR/@EntryValue">True</s:Boolean>
129+
<s:Boolean x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/SPACE_BEFORE_COMMA/@EntryValue">False</s:Boolean>
130+
</wpf:ResourceDictionary>
131+
EOF
132+
123133
# ReSharper cleanupcode で利用可能なプロファイルを確認
124134
echo "🔍 利用可能なプロファイルを確認中..."
125-
jb cleanupcode --help | grep -A 10 -B 5 "profile" || true
135+
jb cleanupcode --help | grep -A 20 -B 5 "profile" || true
136+
137+
# デバッグ情報の表示
138+
echo ""
139+
echo "🔬 デバッグ情報:"
140+
echo "対象ファイル(ScoreCalculator.cs)の現在の状態:"
141+
head -30 Assets/Scripts/Game/Logic/ScoreCalculator.cs | cat -n
126142

127-
# ReSharper cleanupcode の実行(フォーマット専用プロファイルを使用)
143+
# ReSharper cleanupcode の実行(詳細出力で診断)
144+
echo ""
128145
echo "⚡ ReSharper cleanupcode を実行中..."
129146
jb cleanupcode void-red-analysis.sln \
130-
--verbosity=WARN \
147+
--verbosity=INFO \
131148
--exclude="**/Library/**;**/Temp/**;**/obj/**;**/bin/**;**/Packages/**;**/Samples/**" \
132-
--profile="Built-in: Reformat Code" \
149+
--settings=.DotSettings \
133150
--properties:Configuration=Debug \
134-
2>&1 | grep -E -v "Referenced project.*not found|Unable to resolve reference|Could not resolve this reference|Could not locate the assembly" || true
151+
2>&1 | head -100
135152

136153
echo ""
137154
echo "🔄 フォーマット結果の詳細確認..."
138155
echo "現在のGit状態:"
139156
git status --porcelain || true
157+
158+
echo ""
159+
echo "対象ファイル(ScoreCalculator.cs)のフォーマット後の状態:"
160+
head -30 Assets/Scripts/Game/Logic/ScoreCalculator.cs | cat -n
140161

141162
echo "✅ ReSharper コードフォーマットが完了しました"
142163

0 commit comments

Comments
 (0)