[Add] GH action: codeql, Build & Test & SonarQube; fixes #277 #3
Annotations
10 warnings
Analyze (csharp):
CDP4Authentication/EncryptionUtils.cs#L54
'SHA256Managed' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.' (https://aka.ms/dotnet-warnings/SYSLIB0021)
|
Analyze (csharp):
CDP4Authentication/EncryptionUtils.cs#L160
'RNGCryptoServiceProvider' is obsolete: 'RNGCryptoServiceProvider is obsolete. To generate a random number, use one of the RandomNumberGenerator static methods instead.' (https://aka.ms/dotnet-warnings/SYSLIB0023)
|
Analyze (csharp):
CDP4Orm/AutoGenDao/ArrayParameterTypeDao.cs#L70
'ArrayParameterTypeDao.Read(NpgsqlTransaction, string, IEnumerable<Guid>, bool, DateTime?)' hides inherited member 'CompoundParameterTypeDao.Read(NpgsqlTransaction, string, IEnumerable<Guid>, bool, DateTime?)'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword.
|
Analyze (csharp):
CDP4Orm/AutoGenDao/ArrayParameterTypeDao.cs#L146
'ArrayParameterTypeDao.MapToDto(NpgsqlDataReader)' hides inherited member 'CompoundParameterTypeDao.MapToDto(NpgsqlDataReader)'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword.
|
Analyze (csharp):
CDP4Orm/AutoGenDao/CyclicRatioScaleDao.cs#L70
'CyclicRatioScaleDao.Read(NpgsqlTransaction, string, IEnumerable<Guid>, bool, DateTime?)' hides inherited member 'RatioScaleDao.Read(NpgsqlTransaction, string, IEnumerable<Guid>, bool, DateTime?)'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword.
|
Analyze (csharp):
CDP4Orm/AutoGenDao/CyclicRatioScaleDao.cs#L146
'CyclicRatioScaleDao.MapToDto(NpgsqlDataReader)' hides inherited member 'RatioScaleDao.MapToDto(NpgsqlDataReader)'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword.
|
Analyze (csharp):
CometServer/Startup.cs#L234
'HangfireApplicationBuilderExtensions.UseHangfireServer(IApplicationBuilder, BackgroundJobServerOptions, IEnumerable<IBackgroundProcess>, JobStorage)' is obsolete: 'Please use IServiceCollection.AddHangfireServer extension method instead in the ConfigureServices method. Will be removed in 2.0.0.'
|
Analyze (csharp):
CometServer/Modules/Authentication/AuthenticationModule.cs#L59
This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
|
Analyze (csharp):
CometServer/Exceptions/BadRequestException.cs#L78
'Exception.Exception(SerializationInfo, StreamingContext)' is obsolete: 'This API supports obsolete formatter-based serialization. It should not be called or extended by application code.' (https://aka.ms/dotnet-warnings/SYSLIB0051)
|
Analyze (csharp):
CometServer/Modules/10-25/ExchangeFileExportApi.cs#L119
The variable 'e' is declared but never used
|