Skip to content

refactor: remove unnecessary nullable annotations #140

refactor: remove unnecessary nullable annotations

refactor: remove unnecessary nullable annotations #140

Triggered via push September 17, 2023 10:55
Status Failure
Total duration 1m 4s
Artifacts

dotnet-build.yml

on: push
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 14 warnings
build (Release): src/YumeChan.Core/CommandHandler.cs#L47
The type 'ulong?' cannot be declared const
build (Release): src/YumeChan.Core/CommandHandler.cs#L47
The type 'ulong?' cannot be declared const
build (Release)
Process completed with exit code 1.
build (Debug): src/YumeChan.Core/Services/Config/JsonWritableConfig.cs#L16
Nullability of reference types in return type of 'string? JsonWritableConfig.CurrentPrefix.get' doesn't match implicitly implemented member 'string IWritableConfiguration.CurrentPrefix.get' (possibly because of nullability attributes).
build (Debug): src/YumeChan.Core/Services/Config/JsonWritableConfig.cs#L296
Nullability of reference types in return type of 'IChangeToken? JsonWritableConfig.GetReloadToken()' doesn't match implicitly implemented member 'IChangeToken IConfiguration.GetReloadToken()' (possibly because of nullability attributes).
build (Debug): src/YumeChan.Core/Infrastructure/SlashCommands/SlashCommandsExtensions.cs#L61
Cannot convert null literal to non-nullable reference type.
build (Debug): src/YumeChan.Core/Services/Plugins/NugetPluginsFetcher.cs#L52
Converting null literal or possible null value to non-nullable type.
build (Debug): src/YumeChan.Core/Services/Plugins/NugetPluginsFetcher.cs#L66
Possible null reference argument for parameter 'pluginsDirectory' in 'NuGetVersion? NugetPluginsFetcher.GetLocalPackageVersion(string pluginsDirectory, string packageName)'.
build (Debug): src/YumeChan.Core/Services/Config/InterfaceWritableConfigWrapper.cs#L22
Non-nullable property 'Instance' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
build (Debug): src/YumeChan.Core/Services/Config/JsonConfigProvider.cs#L79
Converting null literal or possible null value to non-nullable type.
build (Debug): src/YumeChan.Core/Services/Config/JsonConfigProvider.cs#L83
Possible null reference argument for parameter 'path' in 'DirectoryInfo Directory.CreateDirectory(string path)'.
build (Release): src/YumeChan.Core/Services/Config/JsonWritableConfig.cs#L16
Nullability of reference types in return type of 'string? JsonWritableConfig.CurrentPrefix.get' doesn't match implicitly implemented member 'string IWritableConfiguration.CurrentPrefix.get' (possibly because of nullability attributes).
build (Release): src/YumeChan.Core/Services/Config/JsonWritableConfig.cs#L296
Nullability of reference types in return type of 'IChangeToken? JsonWritableConfig.GetReloadToken()' doesn't match implicitly implemented member 'IChangeToken IConfiguration.GetReloadToken()' (possibly because of nullability attributes).
build (Release): src/YumeChan.Core/Services/Config/JsonWritableConfig.cs#L16
Nullability of reference types in return type of 'string? JsonWritableConfig.CurrentPrefix.get' doesn't match implicitly implemented member 'string IWritableConfiguration.CurrentPrefix.get' (possibly because of nullability attributes).
build (Release): src/YumeChan.Core/Services/Config/JsonWritableConfig.cs#L296
Nullability of reference types in return type of 'IChangeToken? JsonWritableConfig.GetReloadToken()' doesn't match implicitly implemented member 'IChangeToken IConfiguration.GetReloadToken()' (possibly because of nullability attributes).