Live preview while editing AXAML files #305
Annotations
1 error, 8 warnings, and 10 notices
Inspect code
Issues found.
|
The following actions uses node12 which is deprecated and will be forced to run on node16: xt0rted/pull-request-comment-branch@v1, actions/checkout@v2, actions/setup-dotnet@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
The following actions use a deprecated Node.js version and will be forced to run on node20: xt0rted/pull-request-comment-branch@v1, actions/checkout@v2, actions/setup-dotnet@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Inspect code:
src/Consolonia.Core/Drawing/DrawingContextImpl.cs#L307
"[CompareOfFloatsByEqualityOperator] Equality comparison of floating point numbers. Possible loss of precision while rounding values" on /home/runner/work/Consolonia/Consolonia/src/Consolonia.Core/Drawing/DrawingContextImpl.cs(307,17)
|
Inspect code:
src/Consolonia.Core/Drawing/DrawingContextImpl.cs#L307
"[CompareOfFloatsByEqualityOperator] Equality comparison of floating point numbers. Possible loss of precision while rounding values" on /home/runner/work/Consolonia/Consolonia/src/Consolonia.Core/Drawing/DrawingContextImpl.cs(307,56)
|
Inspect code:
src/Consolonia.Core/Drawing/PixelBufferImplementation/DrawingBoxSymbol.cs#L29
"[ConditionIsAlwaysTrueOrFalse] Expression is always false" on /home/runner/work/Consolonia/Consolonia/src/Consolonia.Core/Drawing/PixelBufferImplementation/DrawingBoxSymbol.cs(29,17)
|
Inspect code:
src/Consolonia.Core/Drawing/PixelBufferImplementation/DrawingBoxSymbol.cs#L29
"[HeuristicUnreachableCode] Code is heuristically unreachable" on /home/runner/work/Consolonia/Consolonia/src/Consolonia.Core/Drawing/PixelBufferImplementation/DrawingBoxSymbol.cs(29,40)
|
Inspect code:
src/Tests/Consolonia.Core.Tests/DrawingContextImplTests.cs#L334
"[RedundantAssignment] Value assigned is not used in any execution path" on /home/runner/work/Consolonia/Consolonia/src/Tests/Consolonia.Core.Tests/DrawingContextImplTests.cs(334,13)
|
Inspect code:
src/Tests/Consolonia.Core.Tests/DrawingContextImplTests.cs#L335
"[RedundantAssignment] Value assigned is not used in any execution path" on /home/runner/work/Consolonia/Consolonia/src/Tests/Consolonia.Core.Tests/DrawingContextImplTests.cs(335,13)
|
Inspect code:
src/Tests/Consolonia.Core.Tests/DrawingContextImplTests.cs#L445
"[ArrangeRedundantParentheses] Redundant parentheses" on /home/runner/work/Consolonia/Consolonia/src/Tests/Consolonia.Core.Tests/DrawingContextImplTests.cs(445,30)
|
Inspect code:
src/Tests/Consolonia.Core.Tests/DrawingContextImplTests.cs#L446
"[ArrangeRedundantParentheses] Redundant parentheses" on /home/runner/work/Consolonia/Consolonia/src/Tests/Consolonia.Core.Tests/DrawingContextImplTests.cs(446,30)
|
Inspect code:
src/Tests/Consolonia.Core.Tests/DrawingContextImplTests.cs#L541
"[ArrangeRedundantParentheses] Redundant parentheses" on /home/runner/work/Consolonia/Consolonia/src/Tests/Consolonia.Core.Tests/DrawingContextImplTests.cs(541,30)
|
Inspect code:
src/Tests/Consolonia.Core.Tests/DrawingContextImplTests.cs#L542
"[ArrangeRedundantParentheses] Redundant parentheses" on /home/runner/work/Consolonia/Consolonia/src/Tests/Consolonia.Core.Tests/DrawingContextImplTests.cs(542,30)
|
Inspect code:
src/Consolonia.Core/Drawing/PixelBufferImplementation/DrawingBoxSymbol.cs#L25
"[AutoPropertyCanBeMadeGetOnly.Global] Auto-property can be made get-only" on /home/runner/work/Consolonia/Consolonia/src/Consolonia.Core/Drawing/PixelBufferImplementation/DrawingBoxSymbol.cs(25,44)
|
Inspect code:
src/Consolonia.Core/Drawing/PixelBufferImplementation/Pixel.cs#L85
"[AutoPropertyCanBeMadeGetOnly.Global] Auto-property can be made get-only" on /home/runner/work/Consolonia/Consolonia/src/Consolonia.Core/Drawing/PixelBufferImplementation/Pixel.cs(85,36)
|
Inspect code:
src/Consolonia.Core/Drawing/PixelBufferImplementation/SimpleSymbol.cs#L46
"[AutoPropertyCanBeMadeGetOnly.Global] Auto-property can be made get-only" on /home/runner/work/Consolonia/Consolonia/src/Consolonia.Core/Drawing/PixelBufferImplementation/SimpleSymbol.cs(46,49)
|
Inspect code:
src/Consolonia.Core/Dummy/DummyConsole.cs#L27
"[AutoPropertyCanBeMadeGetOnly.Global] Auto-property can be made get-only" on /home/runner/work/Consolonia/Consolonia/src/Consolonia.Core/Dummy/DummyConsole.cs(27,44)
|
Inspect code:
src/Tools/Consolonia.PreviewHost/ViewModels/ProjectViewModel.cs#L72
"[AutoPropertyCanBeMadeGetOnly.Global] Auto-property can be made get-only" on /home/runner/work/Consolonia/Consolonia/src/Tools/Consolonia.PreviewHost/ViewModels/ProjectViewModel.cs(72,41)
|
Inspect code:
src/Tools/Avalonia.PreviewHost/Program.cs#L5
"[ClassNeverInstantiated.Global] Class 'Program' is never instantiated" on /home/runner/work/Consolonia/Consolonia/src/Tools/Avalonia.PreviewHost/Program.cs(5,20)
|
Loading