Skip to content

Conversation

@jnyrup
Copy link
Member

@jnyrup jnyrup commented Mar 5, 2023

IMPORTANT

  • If the PR touches the public API, the changes have been approved in a separate issue with the "api-approved" label.
  • The code complies with the Coding Guidelines for C#.
  • The changes are covered by unit tests which follow the Arrange-Act-Assert syntax and the naming conventions such as is used in these tests.
  • If the PR adds a feature or fixes a bug, please update the release notes with a functional description that explains what the change means to consumers of this library, which are published on the website.
  • If the PR changes the public API the changes needs to be included by running AcceptApiChanges.ps1 or AcceptApiChanges.sh.
  • If the PR affects the documentation, please include your changes in this pull request so the documentation will appear on the website.
    • Please also run ./build.sh --target spellcheck or .\build.ps1 --target spellcheck before pushing and check the good outcome

I'm working on migrating our code from the now deprecated Microsoft.CodeAnalysis.FxCopAnalyzers and into .NET analyzers.

This PR focuses on the lowest hanging fruit as the remaining ones might require a discussion about whether we should disable the diagnostics globally or on a case by case basis.

@coveralls
Copy link

coveralls commented Mar 5, 2023

Pull Request Test Coverage Report for Build 4336545535

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 54 of 58 (93.1%) changed or added relevant lines in 18 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.007%) to 97.15%

Changes Missing Coverage Covered Lines Changed/Added Lines %
Src/FluentAssertions/Common/FullFrameworkReflector.cs 0 2 0.0%
Src/FluentAssertions/Execution/DefaultAssertionStrategy.cs 0 2 0.0%
Files with Coverage Reduction New Missed Lines %
Src/FluentAssertions/Events/EventRecorder.cs 1 98.21%
Totals Coverage Status
Change from base Build 4332574526: 0.007%
Covered Lines: 12788
Relevant Lines: 13016

💛 - Coveralls

jnyrup added 4 commits March 8, 2023 18:48
The analyzer cannot take multi-threading into account, so it thinks that this.cleanup is *always* non-null inside the if.
dotnet/roslyn-analyzers#1649
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.

3 participants