Skip to content

Added auditlog client, function processor #59

Added auditlog client, function processor

Added auditlog client, function processor #59

Triggered via pull request August 28, 2023 13:19
Status Success
Total duration 9m 40s
Artifacts

build-analyze.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

20 warnings
Build and Test: src/Functions/Altinn.Auth.AuditLog.Functions/Models/AuthenticationEvent.cs#L18
Non-nullable property 'UserId' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
Build and Test: src/Functions/Altinn.Auth.AuditLog.Functions/Models/AuthenticationEvent.cs#L28
Non-nullable property 'EventType' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
Build and Test: src/Functions/Altinn.Auth.AuditLog.Functions/Models/AuthenticationEvent.cs#L38
Non-nullable property 'AuthenticationMethod' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
Build and Test: src/Functions/Altinn.Auth.AuditLog.Functions/Models/AuthenticationEvent.cs#L43
Non-nullable property 'AuthenticationLevel' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
Build and Test: src/Functions/Altinn.Auth.AuditLog.Functions/Models/AuthenticationEvent.cs#L48
Non-nullable property 'SessionId' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
Build and Test: src/Functions/Altinn.Auth.AuditLog.Functions/EventsProcessor.cs#L29
Converting null literal or possible null value to non-nullable type.
Build and Test: src/Functions/Altinn.Auth.AuditLog.Functions/EventsProcessor.cs#L30
Possible null reference argument for parameter 'authEvent' in 'Task IAuditLogClient.SaveAuthenticationEvent(AuthenticationEvent authEvent)'.
Build and Test: src/Functions/Altinn.Auth.AuditLog.Functions/Configuration/PlatformSettings.cs#L11
Non-nullable property 'AuditLogApiEndpoint' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
Build and Test: src/Altinn.Auth.AuditLog.Core/Models/ContextRequest.cs#L35
Non-nullable property 'AccessSubject' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
Build and Test: src/Altinn.Auth.AuditLog.Core/Models/ContextRequest.cs#L36
Non-nullable property 'Action' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
Analyze: src/Functions/Altinn.Auth.AuditLog.Functions/Models/AuthenticationEvent.cs#L18
Non-nullable property 'UserId' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
Analyze: src/Functions/Altinn.Auth.AuditLog.Functions/Models/AuthenticationEvent.cs#L28
Non-nullable property 'EventType' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
Analyze: src/Functions/Altinn.Auth.AuditLog.Functions/Models/AuthenticationEvent.cs#L38
Non-nullable property 'AuthenticationMethod' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
Analyze: src/Functions/Altinn.Auth.AuditLog.Functions/Models/AuthenticationEvent.cs#L43
Non-nullable property 'AuthenticationLevel' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
Analyze: src/Functions/Altinn.Auth.AuditLog.Functions/Models/AuthenticationEvent.cs#L48
Non-nullable property 'SessionId' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
Analyze: src/Functions/Altinn.Auth.AuditLog.Functions/EventsProcessor.cs#L29
Converting null literal or possible null value to non-nullable type.
Analyze: src/Functions/Altinn.Auth.AuditLog.Functions/EventsProcessor.cs#L30
Possible null reference argument for parameter 'authEvent' in 'Task IAuditLogClient.SaveAuthenticationEvent(AuthenticationEvent authEvent)'.
Analyze: src/Functions/Altinn.Auth.AuditLog.Functions/Configuration/PlatformSettings.cs#L11
Non-nullable property 'AuditLogApiEndpoint' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
Analyze: src/Functions/Altinn.Auth.AuditLog.Functions/EventsProcessor.cs#L13
Remove this unread private field '_logger' or refactor the code to use its value. (https://rules.sonarsource.com/csharp/RSPEC-4487)
Analyze: src/Altinn.Auth.AuditLog.Core/Models/ContextRequest.cs#L35
Non-nullable property 'AccessSubject' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.