Skip to content

feat: C# linter/formatter 環境を構築#95

Merged
EbiseLutica merged 7 commits into
v2from
claude/add-csharp-linter-formatter-V1iNk
Apr 5, 2026
Merged

feat: C# linter/formatter 環境を構築#95
EbiseLutica merged 7 commits into
v2from
claude/add-csharp-linter-formatter-V1iNk

Conversation

@EbiseLutica
Copy link
Copy Markdown
Collaborator

  • StyleCop.Analyzers を Directory.Build.props で全プロジェクトに適用
    • SA1401 (public フィールド禁止) → error
    • SA1400 (アクセス修飾子省略禁止) → error
    • SA1201 (メンバー順序) → error(StyleCop 標準に統一)
  • .editorconfig に命名規則・StyleCop 診断設定を追加
    • private フィールドの _camelCase プレフィックス強制
    • file-scoped namespace の強制
  • CSharpier を dotnet local tool として登録 (.config/dotnet-tools.json)
  • CONTRIBUTING.md のメンバー順序規約を StyleCop SA1201 標準に更新
  • GitHub Actions lint ワークフローを追加 (.github/workflows/lint.yml)
    • CSharpier フォーマットチェック
    • StyleCop アナライザーによるビルドチェック

https://claude.ai/code/session_017NQxLFbtXNm8ktmUoydMad

claude added 5 commits April 5, 2026 04:57
- StyleCop.Analyzers を Directory.Build.props で全プロジェクトに適用
  - SA1401 (public フィールド禁止) → error
  - SA1400 (アクセス修飾子省略禁止) → error
  - SA1201 (メンバー順序) → error(StyleCop 標準に統一)
- .editorconfig に命名規則・StyleCop 診断設定を追加
  - private フィールドの _camelCase プレフィックス強制
  - file-scoped namespace の強制
- CSharpier を dotnet local tool として登録 (.config/dotnet-tools.json)
- CONTRIBUTING.md のメンバー順序規約を StyleCop SA1201 標準に更新
- GitHub Actions lint ワークフローを追加 (.github/workflows/lint.yml)
  - CSharpier フォーマットチェック
  - StyleCop アナライザーによるビルドチェック

https://claude.ai/code/session_017NQxLFbtXNm8ktmUoydMad
StyleCop SA1201 の標準順序(Fields → Constructors → Properties → Methods)に
合わせて以下のファイルのメンバー順序を修正:
- Promete/Angle.cs
- Promete/Rect.cs
- Promete/RectInt.cs
- Promete/Graphics/FrameBuffer.cs
- Promete/Graphics/FrameBufferManager.cs

https://claude.ai/code/session_017NQxLFbtXNm8ktmUoydMad
- オールマンスタイルから K&R スタイル(開き括弧を同一行)へ移行
- CSharpier によるフォーマット自動化の手順を CONTRIBUTING.md に記載
- 既存コードは `dotnet csharpier .` で一括整形が必要

https://claude.ai/code/session_017NQxLFbtXNm8ktmUoydMad
StyleCop SA1201 の標準順序(Fields → Constructors → Properties → Methods)に
合わせて以下のファイルのメンバー順序を修正:
- Promete/Coroutines/Coroutine.cs
- Promete/Graphics/Fonts/Font.cs
- Promete/Input/KeyEventArgs.cs
- Promete/Input/KeyPressEventArgs.cs
- Promete/Nodes/MaskedContainer.cs
- Promete/Windowing/CompatibleWindow.cs
- Promete/Windowing/Headless/DummyInputContext.cs
- Promete/Windowing/Headless/HeadlessWindow.cs
- Promete/Backends/GL/OpenGLDesktopGameView.cs
- Promete/Backends/Headless/HeadlessGameView.cs
- Promete/Backends/SilkNetCommon/SilkNetCommonTimeProvider.cs
- Promete.ImGui/ImGuiPlugin.cs
- Promete.MeltySynth/MeltySynthAudioSource.cs

https://claude.ai/code/session_017NQxLFbtXNm8ktmUoydMad
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Apr 5, 2026

Deploying promete with  Cloudflare Pages  Cloudflare Pages

Latest commit: b002e15
Status:🚫  Build failed.

View logs

@EbiseLutica EbiseLutica merged commit 4e66bb3 into v2 Apr 5, 2026
1 check failed
@EbiseLutica EbiseLutica deleted the claude/add-csharp-linter-formatter-V1iNk branch April 5, 2026 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants