feat(SlimData): alternative to redis for plug and play use #247
Annotations
1 error and 20 warnings
Build and analyze
Process completed with exit code 1.
|
Build and analyze:
src/SlimData/Starter.cs#L39
Argument of type 'Dictionary<string, string>' cannot be used for parameter 'initialData' of type 'IEnumerable<KeyValuePair<string, string?>>' in 'IConfigurationBuilder MemoryConfigurationBuilderExtensions.AddInMemoryCollection(IConfigurationBuilder configurationBuilder, IEnumerable<KeyValuePair<string, string?>>? initialData)' due to differences in the nullability of reference types.
|
Build and analyze:
src/SlimData/SlimPersistentState.cs#L83
Possible null reference argument for parameter 'path' in 'SlimPersistentState.SlimPersistentState(string path)'.
|
Build and analyze:
src/SlimFaas/Program.cs#L163
Suggest using WebApplicationBuilder.Configuration instead of ConfigureAppConfiguration (https://aka.ms/aspnet/analyzers)
|
Build and analyze:
src/SlimFaas/Program.cs#L45
Calling 'BuildServiceProvider' from application code results in an additional copy of singleton services being created. Consider alternatives such as dependency injecting services as parameters to 'Configure'. (https://aka.ms/AA5k895)
|
Build and analyze:
tests/SlimData.Tests/RaftClusterTests.cs#L47
Nullability of reference types in type of parameter 'exception' of 'void Logger.Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)' doesn't match implicitly implemented member 'void ILogger.Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception? exception, Func<TState, Exception?, string> formatter)' (possibly because of nullability attributes).
|
Build and analyze:
tests/SlimData.Tests/RaftClusterTests.cs#L122
Cannot convert null literal to non-nullable reference type.
|
Build and analyze:
tests/SlimData.Tests/RaftClusterTests.cs#L122
Cannot convert null literal to non-nullable reference type.
|
Build and analyze:
tests/SlimData.Tests/RaftClusterTests.cs#L112
Nullability of reference types in type of parameter 'leader' of 'void LeaderChangedEvent.OnLeaderChanged(ICluster sender, IClusterMember leader)' doesn't match the target delegate 'Action<ICluster, IClusterMember?>' (possibly because of nullability attributes).
|
Build and analyze:
tests/SlimData.Tests/RaftClusterTests.cs#L115
Nullability of reference types in type of parameter 'leader' of 'void LeaderChangedEvent.OnLeaderChanged(ICluster sender, IClusterMember leader)' doesn't match the target delegate 'Action<ICluster, IClusterMember?>' (possibly because of nullability attributes).
|
Build and analyze:
tests/SlimData.Tests/RaftClusterTests.cs#L142
Argument of type 'IDictionary<string, string>' cannot be used for parameter 'initialData' of type 'IEnumerable<KeyValuePair<string, string?>>' in 'IConfigurationBuilder MemoryConfigurationBuilderExtensions.AddInMemoryCollection(IConfigurationBuilder configurationBuilder, IEnumerable<KeyValuePair<string, string?>>? initialData)' due to differences in the nullability of reference types.
|
Build and analyze:
src/SlimData/SlimPersistentState.cs#L83
Possible null reference argument for parameter 'path' in 'SlimPersistentState.SlimPersistentState(string path)'.
|
Build and analyze:
src/SlimData/Starter.cs#L39
Argument of type 'Dictionary<string, string>' cannot be used for parameter 'initialData' of type 'IEnumerable<KeyValuePair<string, string?>>' in 'IConfigurationBuilder MemoryConfigurationBuilderExtensions.AddInMemoryCollection(IConfigurationBuilder configurationBuilder, IEnumerable<KeyValuePair<string, string?>>? initialData)' due to differences in the nullability of reference types.
|
Build and analyze:
src/SlimData/SlimDataInterpreter.cs#L16
Make this field 'private' and encapsulate it in a 'public' property. (https://rules.sonarsource.com/csharp/RSPEC-1104)
|
Build and analyze:
src/SlimData/SlimDataInterpreter.cs#L14
Make this field 'private' and encapsulate it in a 'public' property. (https://rules.sonarsource.com/csharp/RSPEC-1104)
|
Build and analyze:
src/SlimData/SlimDataInterpreter.cs#L15
Make this field 'private' and encapsulate it in a 'public' property. (https://rules.sonarsource.com/csharp/RSPEC-1104)
|
Build and analyze:
src/SlimData/SlimDataInterpreter.cs#L13
Remove the unused private field 'prefix'. (https://rules.sonarsource.com/csharp/RSPEC-1144)
|
Build and analyze:
src/SlimData/Startup.cs#L289
Use an immutable collection or reduce the accessibility of the non-private readonly field 'ClusterMembers'. (https://rules.sonarsource.com/csharp/RSPEC-3887)
|
Build and analyze:
src/SlimData/Startup.cs#L289
Use an immutable collection or reduce the accessibility of the public static field 'ClusterMembers'. (https://rules.sonarsource.com/csharp/RSPEC-2386)
|
Build and analyze:
src/SlimData/Starter.cs#L7
Add a 'protected' constructor or the 'static' keyword to the class declaration. (https://rules.sonarsource.com/csharp/RSPEC-1118)
|
Build and analyze:
src/SlimData/SlimPersistentState.cs#L15
Make this field 'private' and encapsulate it in a 'public' property. (https://rules.sonarsource.com/csharp/RSPEC-1104)
|