Skip to content

fix(cs): warnings

fix(cs): warnings #51

Triggered via push November 19, 2025 12:44
Status Success
Total duration 9m 6s
Artifacts

dotnet-test.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

19 warnings
test: hosts/dotnet/Hako/Host/CModule.cs#L225
XML comment has cref attribute 'UsePrivateValue{T}' that could not be resolved
test: hosts/dotnet/Hako/Host/CModule.cs#L180
XML comment has cref attribute 'WithPrivateValue' that could not be resolved
test: hosts/dotnet/Hako/Extensions/CollectionExtensions.cs#L23
Ambiguous reference in cref attribute: 'ToJSArrayOf{T}'. Assuming 'CollectionExtensions.ToJSArrayOf<T>(T[], Realm)', but could have also matched other overloads including 'CollectionExtensions.ToJSArrayOf<T>(List<T>, Realm)'.
test: hosts/dotnet/Hako/Builders/ModuleLoaderBuilder.cs#L118
XML comment has cref attribute 'HakoException' that could not be resolved
test: hosts/dotnet/Hako/VM/JSClass.cs#L93
Non-nullable field '_name' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
test: hosts/dotnet/Hako/Host/HakoRuntime.cs#L789
Dereference of a possibly null reference.
test: hosts/dotnet/Hako/Host/CModule.cs#L163
Possible null reference argument for parameter 'moduleName' in 'void CallbackManager.UnregisterModuleInitHandler(string moduleName)'.
test: hosts/dotnet/Hako/Host/HakoRuntime.cs#L216
Unreachable code detected
test
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.
test
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context. Auto-generated code requires an explicit '#nullable' directive in source.
test: hosts/dotnet/Hako.SourceGenerator/JSBindingGenerator.cs#L11
This compiler extension should not be implemented in an assembly containing a reference to Microsoft.CodeAnalysis.Workspaces. The Microsoft.CodeAnalysis.Workspaces assembly is not provided during command line compilation scenarios, so references to it could cause the compiler extension to behave unpredictably. (https://github.com/dotnet/roslyn-analyzers/blob/main/docs/rules/RS1038.md)
test: hosts/dotnet/Hako.SourceGenerator/JSBindingGenerator.Models.cs#L295
Non-nullable property 'Symbol' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
test: hosts/dotnet/Hako.SourceGenerator/JSBindingGenerator.Documentation.cs#L390
Dereference of a possibly null reference.
test: hosts/dotnet/Hako.SourceGenerator/JSBindingGenerator.Documentation.cs#L388
Dereference of a possibly null reference.
test: hosts/dotnet/Hako.SourceGenerator/JSBindingGenerator.Documentation.cs#L75
Dereference of a possibly null reference.
test: hosts/dotnet/Hako.SourceGenerator/JSBindingGenerator.Documentation.cs#L29
Dereference of a possibly null reference.
test: hosts/dotnet/Hako.Analyzers/ModuleExportCodeFixProvider.cs#L267
Possible null reference argument for parameter 'item' in 'void List<string>.Add(string item)'.
test: hosts/dotnet/Hako.Analyzers/ModuleExportCodeFixProvider.cs#L182
Possible null reference argument for parameter 'document' in 'Task<ImmutableArray<Diagnostic>> FixAllContext.GetDocumentDiagnosticsAsync(Document document)'.
test: hosts/dotnet/Hako.Analyzers/ModuleExportCodeFixProvider.cs#L54
Possible null reference argument for parameter 'exportName' in 'Task<Document> ModuleExportCodeFixProvider.AddMissingExportAsync(Document document, InvocationExpressionSyntax setExportInvocation, string exportName, CancellationToken cancellationToken)'.