Skip to content

Add qodana CI checks (do not merge, PR for research) #1

Add qodana CI checks (do not merge, PR for research)

Add qodana CI checks (do not merge, PR for research) #1

GitHub Actions / Qodana for .NET completed Oct 31, 2024 in 0s

1057 new problems found by Qodana for .NET

Qodana for .NET

1057 new problems were found

Inspection name Severity Problems
Redundant cast 🔶 Warning 175
Redundant arithmetic overflow checking context 🔶 Warning 139
Unused parameter (private accessibility) 🔶 Warning 16
Possible 'System.NullReferenceException' 🔶 Warning 14
Redundant using directive 🔶 Warning 11
Redundant namespace alias 🔶 Warning 11
Namespace does not correspond to file location 🔶 Warning 9
Type member is never used (private accessibility) 🔶 Warning 7
Parameter hides member 🔶 Warning 5
Unresolved binding path when DataContext is known 🔶 Warning 5
Overridden property 🔶 Warning 4
Member hides static member from outer class 🔶 Warning 4
The pattern is redundant, it does not produce any runtime checks 🔶 Warning 4
Unknown property 🔶 Warning 2
Overriding property 🔶 Warning 2
Redundant explicit type in array creation 🔶 Warning 2
Unassigned readonly field 🔶 Warning 2
Missing grid column/row setter for non-first child 🔶 Warning 2
Possible 'null' assignment to non-nullable entity 🔶 Warning 1
Deprecated property 🔶 Warning 1
Redundant property 🔶 Warning 1
Empty constructor 🔶 Warning 1
Invalid XML documentation comment 🔶 Warning 1
Non-accessed field (private accessibility) 🔶 Warning 1
Private field can be converted into local variable 🔶 Warning 1
Redundant lambda expression parameter type specification 🔶 Warning 1
Type member is never used (non-private accessibility) ◽️ Notice 245
Adjust modifiers declaration order ◽️ Notice 72
Unresolved binding path when DataContext is unknown ◽️ Notice 48
Member can be made private (non-private accessibility) ◽️ Notice 38
Use explicit or implicit modifier definition for type members ◽️ Notice 27
Type is never used (non-private accessibility) ◽️ Notice 26
Remove redundant parentheses ◽️ Notice 24
Add/remove 'this.' qualifier ◽️ Notice 24
Method return value is never used (non-private accessibility) ◽️ Notice 12
Use preferred style of 'new' expression when created type is evident ◽️ Notice 10
Use preferred body style (convert into property, indexer, or event with preferred body style) ◽️ Notice 9
Field can be made readonly (private accessibility) ◽️ Notice 8
Add/remove qualifier for static members ◽️ Notice 6
Use preferred 'var' style (when type is simple) ◽️ Notice 6
Unassigned field (non-private accessibility) ◽️ Notice 6
Class is never instantiated (non-private accessibility) ◽️ Notice 5
'if-return' statement can be rewritten as 'return' statement ◽️ Notice 5
Use string interpolation expression ◽️ Notice 5
Use preferred style for trailing comma before new line in multiline lists ◽️ Notice 4
Merge null/pattern/value checks into 'or'/'and' patterns ◽️ Notice 4
Use preferred 'var' style (for built-in types) ◽️ Notice 4
RoslynAnalyzers Mark members as static ◽️ Notice 3
Convert 'if' statement into 'switch' ◽️ Notice 3
Overlapping sections ◽️ Notice 3
Inline 'out' variable declaration ◽️ Notice 3
Invert 'if' statement to reduce nesting ◽️ Notice 3
Member can be made static (shared) (non-private accessibility) ◽️ Notice 3
Property can be made init-only (non-private accessibility) ◽️ Notice 3
Redundant verbatim string prefix ◽️ Notice 3
Convert property into auto-property ◽️ Notice 2
Convert property into auto-property (when possible) ◽️ Notice 2
Field can be made readonly (non-private accessibility) ◽️ Notice 2
Type check and casts can be merged ◽️ Notice 2
Redundant semicolon after type or namespace declaration ◽️ Notice 2
Auto-property can be made get-only (private accessibility) ◽️ Notice 1
Replace built-in type reference with a CLR type name or a keyword ◽️ Notice 1
Dictionary lookup can be simplified with 'GetValueOrDefault' ◽️ Notice 1
Replace 'switch' statement with 'switch' expression ◽️ Notice 1
Convert into lambda expression ◽️ Notice 1
Merge nested property patterns ◽️ Notice 1
Non-accessed field (non-private accessibility) ◽️ Notice 1
Parameter output value is always discarded (non-private accessibility) ◽️ Notice 1
Redundant empty argument list on object creation expression ◽️ Notice 1
Redundant 'else' keyword ◽️ Notice 1
Return type can be IEnumerable<T> (non-private accessibility) ◽️ Notice 1
Replace if statement with null-propagating code ◽️ Notice 1
Grid columns/rows definitions can be converted to attribute ◽️ Notice 1

☁️ View the detailed Qodana report

Detected 71 dependencies

Third-party software list

This page lists the third-party software dependencies used in Consolonia

Dependency Version Licenses
Avalonia.Angle.Windows.Natives 2.1.0.2023020321 BSD-3-Clause
Avalonia.Controls.ColorPicker 11.0.9 MIT
Avalonia.Controls.DataGrid 11.0.9 MIT
Avalonia.Desktop 11.0.9 MIT
Avalonia.Diagnostics 11.0.9 MIT
Avalonia.FreeDesktop 11.0.9 MIT
Avalonia.Native 11.0.9 MIT
Avalonia.ReactiveUI 11.0.9 MIT
Avalonia.Remote.Protocol 11.0.9 MIT
Avalonia.Skia 11.0.9 MIT
Avalonia.Themes.Simple 11.0.9 MIT
Avalonia.Win32 11.0.9 MIT
Avalonia.X11 11.0.9 MIT
Avalonia 11.0.9 MIT
DynamicData 7.9.5 MIT
HarfBuzzSharp.NativeAssets.Linux 7.3.0 MIT
HarfBuzzSharp.NativeAssets.WebAssembly 7.3.0 MIT
HarfBuzzSharp.NativeAssets.Win32 7.3.0 MIT
HarfBuzzSharp.NativeAssets.macOS 7.3.0 MIT
HarfBuzzSharp 7.3.0 MIT
MicroCom.Runtime 0.11.0 MIT
Microsoft.CSharp 4.3.0 MIT
Microsoft.CodeAnalysis.Analyzers 3.0.0 Apache-2.0
Microsoft.CodeAnalysis.CSharp.Scripting 3.8.0 MIT
Microsoft.CodeAnalysis.CSharp 3.8.0 MIT
Microsoft.CodeAnalysis.Common 3.8.0 MIT
Microsoft.CodeAnalysis.Scripting.Common 3.8.0 MIT
Microsoft.NETCore.Platforms 2.1.2 MIT
Microsoft.NETCore.Targets 1.1.0 MIT
NullLib.ConsoleEx 1.0.4.4 Apache-2.0
ReactiveUI 18.3.1 MIT
SkiaSharp.NativeAssets.Linux 2.88.7 MIT
SkiaSharp.NativeAssets.WebAssembly 2.88.7 MIT
SkiaSharp.NativeAssets.Win32 2.88.7 MIT
SkiaSharp.NativeAssets.macOS 2.88.7 MIT
SkiaSharp 2.88.7 MIT
Splat 14.4.1 MIT
System.Collections.Immutable 5.0.0 MIT
System.Collections 4.3.0 MIT
System.ComponentModel.Annotations 4.5.0 MIT
System.Diagnostics.Debug 4.3.0 MIT
System.Dynamic.Runtime 4.3.0 MIT
System.Globalization 4.3.0 MIT
System.IO.Pipelines 6.0.0 MIT
System.IO 4.3.0 MIT
System.Linq.Expressions 4.3.0 MIT
System.Linq 4.3.0 MIT
System.Memory 4.5.4 MIT
System.Numerics.Vectors 4.5.0 MIT
System.ObjectModel 4.3.0 MIT
System.Reactive 5.0.0 MIT
System.Reflection.Emit.ILGeneration 4.3.0 MIT
System.Reflection.Emit.Lightweight 4.3.0 MIT
System.Reflection.Emit 4.3.0 MIT
System.Reflection.Extensions 4.3.0 MIT
System.Reflection.Metadata 5.0.0 MIT
System.Reflection.Primitives 4.3.0 MIT
System.Reflection.TypeExtensions 4.3.0 MIT
System.Reflection 4.3.0 MIT
System.Resources.ResourceManager 4.3.0 MIT
System.Runtime.CompilerServices.Unsafe 4.7.1 MIT
System.Runtime.Extensions 4.3.0 MIT
System.Runtime.Handles 4.3.0 MIT
System.Runtime.InteropServices 4.3.0 MIT
System.Runtime 4.3.0 MIT
System.Text.Encoding.CodePages 4.5.1 MIT
System.Text.Encoding 4.3.0 MIT
System.Threading.Tasks.Extensions 4.5.4 MIT
System.Threading.Tasks 4.3.0 MIT
System.Threading 4.3.0 MIT
Tmds.DBus.Protocol 0.15.0 MIT
Contact Qodana team

Contact us at [email protected]

Details

This result was published with Qodana GitHub Action

Annotations

Check notice on line 58 in Consolonia.GuiCS/handles.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Use preferred body style (convert into property, indexer, or event with preferred body style)

Code body does not conform to code style settings: use expression-bodied property

Check notice on line 174 in Consolonia.GuiCS/Size.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Use preferred body style (convert into property, indexer, or event with preferred body style)

Code body does not conform to code style settings: use expression body

Check notice on line 131 in Consolonia.GuiCS/binding.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Use preferred body style (convert into property, indexer, or event with preferred body style)

Code body does not conform to code style settings: use expression-bodied property

Check notice on line 141 in Consolonia.GuiCS/Size.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Use preferred body style (convert into property, indexer, or event with preferred body style)

Code body does not conform to code style settings: use expression-bodied property

Check notice on line 52 in Consolonia.GuiCS/handles.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Use preferred body style (convert into property, indexer, or event with preferred body style)

Code body does not conform to code style settings: use expression-bodied property

Check notice on line 31 in Consolonia.GuiCS/WindowsDriver.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Use preferred body style (convert into property, indexer, or event with preferred body style)

Code body does not conform to code style settings: use expression body

Check notice on line 155 in Consolonia.GuiCS/Size.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Use preferred body style (convert into property, indexer, or event with preferred body style)

Code body does not conform to code style settings: use expression body

Check notice on line 125 in Consolonia.GuiCS/binding.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Use preferred body style (convert into property, indexer, or event with preferred body style)

Code body does not conform to code style settings: use expression-bodied property

Check notice on line 164 in Consolonia.GuiCS/Point.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Use preferred body style (convert into property, indexer, or event with preferred body style)

Code body does not conform to code style settings: use expression-bodied property

Check notice on line 312 in Consolonia.GuiCS/binding.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Adjust modifiers declaration order

Inconsistent modifiers declaration order

Check notice on line 276 in Consolonia.GuiCS/binding.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Adjust modifiers declaration order

Inconsistent modifiers declaration order

Check notice on line 304 in Consolonia.GuiCS/binding.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Adjust modifiers declaration order

Inconsistent modifiers declaration order

Check notice on line 297 in Consolonia.GuiCS/binding.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Adjust modifiers declaration order

Inconsistent modifiers declaration order

Check notice on line 78 in Consolonia.GuiCS/binding.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Adjust modifiers declaration order

Inconsistent modifiers declaration order

Check notice on line 282 in Consolonia.GuiCS/binding.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Adjust modifiers declaration order

Inconsistent modifiers declaration order

Check notice on line 242 in Consolonia.GuiCS/binding.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Adjust modifiers declaration order

Inconsistent modifiers declaration order

Check notice on line 264 in Consolonia.GuiCS/binding.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Adjust modifiers declaration order

Inconsistent modifiers declaration order

Check notice on line 292 in Consolonia.GuiCS/binding.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Adjust modifiers declaration order

Inconsistent modifiers declaration order

Check notice on line 258 in Consolonia.GuiCS/binding.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Adjust modifiers declaration order

Inconsistent modifiers declaration order

Check notice on line 301 in Consolonia.GuiCS/binding.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Adjust modifiers declaration order

Inconsistent modifiers declaration order

Check notice on line 318 in Consolonia.GuiCS/binding.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Adjust modifiers declaration order

Inconsistent modifiers declaration order

Check notice on line 314 in Consolonia.GuiCS/binding.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Adjust modifiers declaration order

Inconsistent modifiers declaration order

Check notice on line 285 in Consolonia.GuiCS/binding.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Adjust modifiers declaration order

Inconsistent modifiers declaration order

Check notice on line 260 in Consolonia.GuiCS/binding.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Adjust modifiers declaration order

Inconsistent modifiers declaration order

Check notice on line 280 in Consolonia.GuiCS/binding.cs

See this annotation in the file changed.

@github-actions github-actions / Qodana for .NET

Adjust modifiers declaration order

Inconsistent modifiers declaration order