Skip to content

Redesign AssertionScope and how it travels over chained calls #1350

Redesign AssertionScope and how it travels over chained calls

Redesign AssertionScope and how it travels over chained calls #1350

Triggered via pull request April 18, 2024 18:00
@dennisdoomendennisdoomen
synchronize #2539
Status Failure
Total duration 16m 5s
Artifacts 1

code_quality.yml

on: pull_request_target
Fit to window
Zoom out
Zoom in

Annotations

1 error, 47 warnings, and 1 notice
Qodana Scan
The number of problems exceeds the failThreshold
Disposal of a variable already captured by the 'using' statement: Tests/FluentAssertions.Specs/Execution/AssertionScope.ChainingApiSpecs.cs#L200
Variable 'scope' is captured by the 'using' statement and will be automatically disposed when the execution gets out of the scope
Disposal of a variable already captured by the 'using' statement: Tests/FluentAssertions.Specs/Execution/AssertionScope.ChainingApiSpecs.cs#L546
Variable 'scope' is captured by the 'using' statement and will be automatically disposed when the execution gets out of the scope
Member hides static member from outer class: Tests/FluentAssertions.Specs/Primitives/ObjectAssertionSpecs.cs#L42
Method 'bool Equals(object, object)' hides method from outer class
Non-accessed field (private accessibility): Tests/FluentAssertions.Equivalency.Specs/SelectionRulesSpecs.Browsability.cs#L557
Field 'AdvancedBrowsableField' is assigned but its value is never used
Non-accessed field (private accessibility): Tests/FluentAssertions.Equivalency.Specs/SelectionRulesSpecs.Browsability.cs#L583
Field 'FieldThatMightBeNonBrowsable' is assigned but its value is never used
Non-accessed field (private accessibility): Tests/FluentAssertions.Equivalency.Specs/SelectionRulesSpecs.Accessibility.cs#L196
Field 'ProtectedInternalField' is assigned but its value is never used
Non-accessed field (private accessibility): Tests/FluentAssertions.Equivalency.Specs/SelectionRulesSpecs.Browsability.cs#L573
Field 'FieldThatMightBeNonBrowsable' is assigned but its value is never used
Non-accessed field (private accessibility): Tests/FluentAssertions.Equivalency.Specs/SelectionRulesSpecs.Browsability.cs#L551
Field 'ExplicitlyBrowsableField' is assigned but its value is never used
Parameter hides member: Src/FluentAssertions/Execution/Assertion.cs#L42
Parameter 'reason' hides field 'Func FluentAssertions.Execution.Assertion.reason'
Parameter hides member: Src/FluentAssertions/Execution/NewGivenSelector.cs#L52
Parameter 'selector' hides field 'T FluentAssertions.Execution.NewGivenSelector.selector'
Redundant using directive: Src/FluentAssertions/AssertionExtensions.cs#L4
Using directive is not required by the code and can be safely removed
Get-only auto-property is never assigned: Src/FluentAssertions/Execution/ContinuedAssertionScope.cs#L145
Get-only auto-property 'ContextData' is never assigned
Get-only auto-property is never assigned: Src/FluentAssertions/Execution/ContinuedAssertionScope.cs#L147
Get-only auto-property 'FormattingOptions' is never assigned

Artifacts

Produced during runtime
Name Size
qodana-report
1.88 MB