Skip to content

Refactor: Improve API usability and enforce code style #314

Refactor: Improve API usability and enforce code style

Refactor: Improve API usability and enforce code style #314

Triggered via push December 21, 2025 11:09
Status Failure
Total duration 39s
Artifacts

dotnet.yml

on: push
Matrix: build-and-test
Fit to window
Zoom out
Zoom in

Annotations

61 errors and 50 warnings
test-macos-latest-9: src/Box2D.NET.Samples/Samples/Robustness/HighMassRatio3.cs#L54
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-macos-latest-9: src/Box2D.NET.Samples/Samples/Robustness/HighMassRatio3.cs#L37
The 'ref' modifier for argument 3 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-macos-latest-9: src/Box2D.NET.Samples/Samples/Robustness/HighMassRatio3.cs#L37
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-macos-latest-9: src/Box2D.NET.Samples/Samples/Robustness/MultiplePrismatic.cs#L60
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-macos-latest-9: src/Box2D.NET.Samples/Samples/Robustness/MultiplePrismatic.cs#L57
The 'ref' modifier for argument 3 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-macos-latest-9: src/Box2D.NET.Samples/Samples/Robustness/MultiplePrismatic.cs#L57
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-macos-latest-9: src/Box2D.NET.Samples/Samples/Robustness/OverlapRecovery.cs#L91
The 'ref' modifier for argument 3 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-macos-latest-9: src/Box2D.NET.Samples/Samples/Robustness/OverlapRecovery.cs#L91
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-macos-latest-9: src/Box2D.NET.Samples/Samples/Robustness/OverlapRecovery.cs#L55
The 'ref' modifier for argument 3 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-macos-latest-9: src/Box2D.NET.Samples/Samples/Robustness/OverlapRecovery.cs#L55
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-macos-latest-10
The strategy configuration was canceled because "build-and-test._9_macos-latest" failed
test-windows-latest-9
The strategy configuration was canceled because "build-and-test._9_macos-latest" failed
test-windows-latest-9
The operation was canceled.
test-windows-latest-10
The strategy configuration was canceled because "build-and-test._9_macos-latest" failed
test-windows-latest-8
The strategy configuration was canceled because "build-and-test._9_macos-latest" failed
test-windows-latest-10
The operation was canceled.
test-windows-latest-8
The operation was canceled.
test-ubuntu-latest-10
The strategy configuration was canceled because "build-and-test._9_macos-latest" failed
test-ubuntu-latest-10: src/Box2D.NET.Samples/Samples/Joints/ScissorLift.cs#L49
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-10: src/Box2D.NET.Samples/Samples/Robustness/OverlapRecovery.cs#L91
The 'ref' modifier for argument 3 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-10: src/Box2D.NET.Samples/Samples/Robustness/OverlapRecovery.cs#L91
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-10: src/Box2D.NET.Samples/Samples/Robustness/OverlapRecovery.cs#L55
The 'ref' modifier for argument 3 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-10: src/Box2D.NET.Samples/Samples/Robustness/OverlapRecovery.cs#L55
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-10: src/Box2D.NET.Samples/Samples/Joints/SoftBody.cs#L35
The 'ref' modifier for argument 3 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-10: src/Box2D.NET.Samples/Samples/Joints/SoftBody.cs#L35
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-10: src/Box2D.NET.Samples/Samples/Joints/BallAndChain.cs#L78
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-10: src/Box2D.NET.Samples/Samples/Joints/BallAndChain.cs#L67
The 'ref' modifier for argument 3 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-10: src/Box2D.NET.Samples/Samples/Joints/BallAndChain.cs#L67
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-9
The strategy configuration was canceled because "build-and-test._9_macos-latest" failed
test-ubuntu-latest-9: src/Box2D.NET.Samples/Samples/Collisions/Manifold.cs#L438
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-9: src/Box2D.NET.Samples/Samples/Collisions/Manifold.cs#L419
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-9: src/Box2D.NET.Samples/Samples/Collisions/Manifold.cs#L418
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-9: src/Box2D.NET.Samples/Samples/Collisions/Manifold.cs#L400
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-9: src/Box2D.NET.Samples/Samples/Collisions/Manifold.cs#L399
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-9: src/Box2D.NET.Samples/Samples/Collisions/Manifold.cs#L351
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-9: src/Box2D.NET.Samples/Samples/Collisions/Manifold.cs#L310
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-9: src/Box2D.NET.Samples/Samples/Joints/BallAndChain.cs#L78
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-9: src/Box2D.NET.Samples/Samples/Joints/BallAndChain.cs#L67
The 'ref' modifier for argument 3 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-9: src/Box2D.NET.Samples/Samples/Joints/BallAndChain.cs#L67
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-macos-latest-8
The strategy configuration was canceled because "build-and-test._9_macos-latest" failed
test-macos-latest-8: src/Box2D.NET.Samples/Samples/Shapes/RoundedShapes.cs#L40
The 'ref' modifier for argument 3 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-macos-latest-8: src/Box2D.NET.Samples/Samples/Shapes/RoundedShapes.cs#L40
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-macos-latest-8: src/Box2D.NET.Samples/Samples/Shapes/RoundedShapes.cs#L37
The 'ref' modifier for argument 3 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-macos-latest-8: src/Box2D.NET.Samples/Samples/Shapes/RoundedShapes.cs#L37
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-macos-latest-8: src/Box2D.NET.Samples/Samples/Shapes/ShapeFilter.cs#L87
The 'ref' modifier for argument 3 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-macos-latest-8: src/Box2D.NET.Samples/Samples/Shapes/ShapeFilter.cs#L87
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-macos-latest-8: src/Box2D.NET.Samples/Samples/Shapes/ShapeFilter.cs#L83
The 'ref' modifier for argument 3 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-macos-latest-8: src/Box2D.NET.Samples/Samples/Shapes/ShapeFilter.cs#L83
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-macos-latest-8: src/Box2D.NET.Samples/Samples/Shapes/ShapeFilter.cs#L79
The 'ref' modifier for argument 3 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-macos-latest-8: src/Box2D.NET.Samples/Samples/Shapes/ShapeFilter.cs#L79
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-8
The strategy configuration was canceled because "build-and-test._9_macos-latest" failed
test-ubuntu-latest-8: src/Box2D.NET.Samples/Samples/Shapes/RoundedShapes.cs#L40
The 'ref' modifier for argument 3 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-8: src/Box2D.NET.Samples/Samples/Shapes/RoundedShapes.cs#L40
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-8: src/Box2D.NET.Samples/Samples/Shapes/RoundedShapes.cs#L37
The 'ref' modifier for argument 3 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-8: src/Box2D.NET.Samples/Samples/Shapes/RoundedShapes.cs#L37
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-8: src/Box2D.NET.Samples/Samples/Shapes/ShapeFilter.cs#L87
The 'ref' modifier for argument 3 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-8: src/Box2D.NET.Samples/Samples/Shapes/ShapeFilter.cs#L87
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-8: src/Box2D.NET.Samples/Samples/Shapes/ShapeFilter.cs#L83
The 'ref' modifier for argument 3 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-8: src/Box2D.NET.Samples/Samples/Shapes/ShapeFilter.cs#L83
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-8: src/Box2D.NET.Samples/Samples/Shapes/ShapeFilter.cs#L79
The 'ref' modifier for argument 3 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-8: src/Box2D.NET.Samples/Samples/Shapes/ShapeFilter.cs#L79
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-macos-latest-9: test/Box2D.NET.Test/B2WorldTest.cs#L51
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-macos-latest-9: test/Box2D.NET.Test/B2WorldTest.cs#L43
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-macos-latest-9: test/Box2D.NET.Test/Helpers/B2TestHelper.cs#L27
The 'ref' modifier for argument 3 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-macos-latest-9: test/Box2D.NET.Test/Helpers/B2TestHelper.cs#L27
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-macos-latest-9: src/Box2D.NET/B2Solvers.cs#L60
Unreachable code detected
test-macos-latest-9: src/Box2D.NET/B2Solvers.cs#L52
Unreachable code detected
test-macos-latest-9: src/Box2D.NET/B2Vec2.cs#L13
'B2Vec2' defines operator == or operator != but does not override Object.GetHashCode()
test-macos-latest-9: src/Box2D.NET/B2Vec2.cs#L13
'B2Vec2' defines operator == or operator != but does not override Object.Equals(object o)
test-macos-latest-9: src/Box2D.NET/B2BodyId.cs#L11
'B2BodyId' defines operator == or operator != but does not override Object.GetHashCode()
test-macos-latest-9: src/Box2D.NET/B2BodyId.cs#L11
'B2BodyId' defines operator == or operator != but does not override Object.Equals(object o)
test-ubuntu-latest-10: src/Box2D.NET.Samples/Graphics/FontsV1.cs#L152
The variable 'pw' is assigned but its value is never used
test-ubuntu-latest-10: src/Box2D.NET.Samples/Graphics/FontsV1.cs#L65
The variable 'fileBufferCapacity' is assigned but its value is never used
test-ubuntu-latest-10: src/Box2D.NET.Samples/Samples/Characters/Mover.cs#L310
The variable 'noWalkSteer' is assigned but its value is never used
test-ubuntu-latest-10: src/Box2D.NET.Samples/Primitives/TaskScheduler.cs#L40
The variable 'loop' is assigned but its value is never used
test-ubuntu-latest-10: src/Box2D.NET/B2Solvers.cs#L60
Unreachable code detected
test-ubuntu-latest-10: src/Box2D.NET/B2Solvers.cs#L52
Unreachable code detected
test-ubuntu-latest-10: src/Box2D.NET/B2Vec2.cs#L13
'B2Vec2' defines operator == or operator != but does not override Object.GetHashCode()
test-ubuntu-latest-10: src/Box2D.NET/B2Vec2.cs#L13
'B2Vec2' defines operator == or operator != but does not override Object.Equals(object o)
test-ubuntu-latest-10: src/Box2D.NET/B2BodyId.cs#L11
'B2BodyId' defines operator == or operator != but does not override Object.GetHashCode()
test-ubuntu-latest-10: src/Box2D.NET/B2BodyId.cs#L11
'B2BodyId' defines operator == or operator != but does not override Object.Equals(object o)
test-ubuntu-latest-9: test/Box2D.NET.Test/B2WorldTest.cs#L51
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-9: test/Box2D.NET.Test/B2WorldTest.cs#L43
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-9: test/Box2D.NET.Test/Helpers/B2TestHelper.cs#L27
The 'ref' modifier for argument 3 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-9: test/Box2D.NET.Test/Helpers/B2TestHelper.cs#L27
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-9: src/Box2D.NET/B2Solvers.cs#L60
Unreachable code detected
test-ubuntu-latest-9: src/Box2D.NET/B2Solvers.cs#L52
Unreachable code detected
test-ubuntu-latest-9: src/Box2D.NET/B2Vec2.cs#L13
'B2Vec2' defines operator == or operator != but does not override Object.GetHashCode()
test-ubuntu-latest-9: src/Box2D.NET/B2Vec2.cs#L13
'B2Vec2' defines operator == or operator != but does not override Object.Equals(object o)
test-ubuntu-latest-9: src/Box2D.NET/B2BodyId.cs#L11
'B2BodyId' defines operator == or operator != but does not override Object.GetHashCode()
test-ubuntu-latest-9: src/Box2D.NET/B2BodyId.cs#L11
'B2BodyId' defines operator == or operator != but does not override Object.Equals(object o)
test-macos-latest-8: test/Box2D.NET.Test/B2WorldTest.cs#L51
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-macos-latest-8: test/Box2D.NET.Test/B2WorldTest.cs#L43
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-macos-latest-8: test/Box2D.NET.Test/Helpers/B2TestHelper.cs#L27
The 'ref' modifier for argument 3 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-macos-latest-8: test/Box2D.NET.Test/Helpers/B2TestHelper.cs#L27
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-macos-latest-8: src/Box2D.NET/B2Solvers.cs#L60
Unreachable code detected
test-macos-latest-8: src/Box2D.NET/B2Solvers.cs#L52
Unreachable code detected
test-macos-latest-8: src/Box2D.NET/B2Vec2.cs#L13
'B2Vec2' defines operator == or operator != but does not override Object.GetHashCode()
test-macos-latest-8: src/Box2D.NET/B2Vec2.cs#L13
'B2Vec2' defines operator == or operator != but does not override Object.Equals(object o)
test-macos-latest-8: src/Box2D.NET/B2BodyId.cs#L11
'B2BodyId' defines operator == or operator != but does not override Object.GetHashCode()
test-macos-latest-8: src/Box2D.NET/B2BodyId.cs#L11
'B2BodyId' defines operator == or operator != but does not override Object.Equals(object o)
test-ubuntu-latest-8: test/Box2D.NET.Test/B2WorldTest.cs#L51
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-8: test/Box2D.NET.Test/B2WorldTest.cs#L43
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-8: test/Box2D.NET.Test/Helpers/B2TestHelper.cs#L27
The 'ref' modifier for argument 3 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-8: test/Box2D.NET.Test/Helpers/B2TestHelper.cs#L27
The 'ref' modifier for argument 2 corresponding to 'in' parameter is equivalent to 'in'. Consider using 'in' instead.
test-ubuntu-latest-8: src/Box2D.NET/B2Solvers.cs#L60
Unreachable code detected
test-ubuntu-latest-8: src/Box2D.NET/B2Solvers.cs#L52
Unreachable code detected
test-ubuntu-latest-8: src/Box2D.NET/B2Vec2.cs#L13
'B2Vec2' defines operator == or operator != but does not override Object.GetHashCode()
test-ubuntu-latest-8: src/Box2D.NET/B2Vec2.cs#L13
'B2Vec2' defines operator == or operator != but does not override Object.Equals(object o)
test-ubuntu-latest-8: src/Box2D.NET/B2BodyId.cs#L11
'B2BodyId' defines operator == or operator != but does not override Object.GetHashCode()
test-ubuntu-latest-8: src/Box2D.NET/B2BodyId.cs#L11
'B2BodyId' defines operator == or operator != but does not override Object.Equals(object o)