Update mcr.microsoft.com/dotnet/sdk Docker tag to v9 (#1123) #3140
build-and-analyze.yml
on: push
Build and Test
55s
Analyze
5m 43s
Annotations
20 warnings
Build and Test:
src/Authorization/Exceptions/PlatformHttpException.cs#L45
'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)
|
Build and Test:
src/Authorization/Helpers/EventLogHelper.cs#L193
Converting null literal or possible null value to non-nullable type.
|
Build and Test:
src/Authorization/Helpers/EventLogHelper.cs#L194
Possible null reference return.
|
Build and Test:
src/Authorization/Repositories/DelegationMetadataRepository.cs#L43
'NpgsqlConnection.GlobalTypeMapper' is obsolete: 'Global-level type mapping has been replaced with data source mapping, see the 7.0 release notes.'
|
Build and Test
Found version-specific or distribution-specific runtime identifier(s): win7-x64. Affected libraries: Microsoft.Azure.DocumentDB.Core. In .NET 8.0 and higher, assets for version-specific and distribution-specific runtime identifiers will not be found by default. See https://aka.ms/dotnet/rid-usage for details.
|
Build and Test:
test/IntegrationTests/Util/PrincipalUtil.cs#L50
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
|
Build and Test:
test/IntegrationTests/Util/PrincipalUtil.cs#L50
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
|
Build and Test:
test/IntegrationTests/Util/PrincipalUtil.cs#L59
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
|
Build and Test:
test/IntegrationTests/Util/PrincipalUtil.cs#L59
The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
|
Build and Test:
test/IntegrationTests/ContextHandlerTest.cs#L56
Use IHeaderDictionary.Append or the indexer to append or set headers. IDictionary.Add will throw an ArgumentException when attempting to add a duplicate key. (https://aka.ms/aspnet/analyzers)
|
Analyze:
src/Altinn.Authorization.ABAC/Constants/XmlConstants.cs#L11
Add a 'private' constructor or the 'static' keyword to the class declaration. (https://rules.sonarsource.com/csharp/RSPEC-1118)
|
Analyze:
src/Altinn.Authorization.ABAC/Xacml/XacmlAnyOf.cs#L50
Private classes which are not derived in the current assembly should be marked as 'sealed'. (https://rules.sonarsource.com/csharp/RSPEC-3260)
|
Analyze:
src/Altinn.Authorization.ABAC/Constants/XacmlConstants.cs#L11
Add a 'private' constructor or the 'static' keyword to the class declaration. (https://rules.sonarsource.com/csharp/RSPEC-1118)
|
Analyze:
src/Altinn.Authorization.ABAC/Constants/Xacml30Constants.cs#L11
Add a 'private' constructor or the 'static' keyword to the class declaration. (https://rules.sonarsource.com/csharp/RSPEC-1118)
|
Analyze:
src/Altinn.Authorization.ABAC/Xacml/AttributeMatcher.cs#L90
Update this method so that its implementation is not identical to 'MatchTime'. (https://rules.sonarsource.com/csharp/RSPEC-4144)
|
Analyze:
src/Altinn.Authorization.ABAC/Xacml/XacmlAttributeAssignment.cs#L93
Refactor this getter so that it actually refers to the field 'value'. (https://rules.sonarsource.com/csharp/RSPEC-4275)
|
Analyze:
src/Altinn.Authorization.ABAC/Xacml/XacmlAttributeAssignment.cs#L98
Refactor this setter so that it actually refers to the field 'value'. (https://rules.sonarsource.com/csharp/RSPEC-4275)
|
Analyze:
src/Altinn.Authorization.ABAC/Utils/XacmlJsonXmlConverter.cs#L13
Add a 'protected' constructor or the 'static' keyword to the class declaration. (https://rules.sonarsource.com/csharp/RSPEC-1118)
|
Analyze:
src/Altinn.Authorization.ABAC/Xacml/XacmlAttributeDesignator.cs#L120
Make this an auto-implemented property and remove its backing field. (https://rules.sonarsource.com/csharp/RSPEC-2292)
|
Analyze:
src/Altinn.Authorization.ABAC/Xacml/XacmlAttributeDesignator.cs#L136
Make this an auto-implemented property and remove its backing field. (https://rules.sonarsource.com/csharp/RSPEC-2292)
|