Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Various bugs running on large codebase

オープン
#203 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
csharp
領域
testing, tooling

調査の方向性

Steeltoe.Common.Expression.Test で、パッケージと using エントリを /shared-test.props に追加し、Steeltoe.Debug.ruleset のルールを Warning に設定して再ビルドすることで再現します。既存の Xunit テストに fixer を適用し、その後、変更されないケース、コンパイルに失敗するケース、またはテスト失敗を引き起こすケースをそれぞれ特定します。更新されたコードがコンパイルでき、テストに合格すれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug
Description

When running this analyzer on the codebase at https://github.com/SteeltoeOSS/Steeltoe, the fixers produce code that doesn't compile in several cases. After fixing them manually, various tests start to fail.

Complete minimal example reproducing the issue
  • Clone the repo at https://github.com/SteeltoeOSS/Steeltoe
  • Add the following to /shared-test.props:
    <ItemGroup>
      <PackageReference Include="FluentAssertions.Analyzers" Version="0.21.0" PrivateAssets="All" />
    </ItemGroup>
    <ItemGroup>
      <Using Include="FluentAssertions" />
      <Using Include="Xunit" />
    </ItemGroup>
    
  • Set all analyzer rules of this package to Warning severity in Steeltoe.Debug.ruleset: Open src/Steeltoe.All in Visual Studio, expand the Dependencies/Analyzers/FluentAssertions.Analyzers node in project Common/Steeltoe.Common.Expression.Test, select all rules, and right-click > Set severity > Warning.
  • Rebuild the Steeltoe.Common.Expression.Test project and use the fixers to update existing Xunit tests to FluentAssertions.
Expected behavior:

No broken code and no failing tests.

Actual behavior:

Some fixers don't actually change code; others produce code that doesn't compile. Some result in test failures.

Versions
  • Which version of Fluent Assertions Analyzers are you using? v0.21.0 with FA v6.8.0
  • Which .NET runtime and version are you targeting? .NET 6
Additional Information

I only tried running on the Steeltoe.Common.Expression.Test project. Running on the complete solution may surface additional issues.

主要言語
C#
スター
131
フォーク
25
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

fluentassertions/fluentassertions.analyzers のほかの issue

fluentassertions/fluentassertions.analyzers の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。