Skip to content

update api

update api #29

Triggered via pull request June 29, 2024 14:21
Status Success
Total duration 40s
Artifacts

dotnet.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
build: CheckDrive.Web/CheckDrive.Web/Controllers/OperatorsController.cs#L22
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.
build: CheckDrive.Web/CheckDrive.Web/Controllers/OperatorReviewsController.cs#L41
Possible null reference argument for parameter 'source' in 'IEnumerable<<anonymous type: int Id, string OperatorName, string DriverName, double? OilAmount, DateTime? Date, string Comments, string Status>> Enumerable.Select<OperatorReviewDto, <anonymous type: int Id, string OperatorName, string DriverName, double? OilAmount, DateTime? Date, string Comments, string Status>>(IEnumerable<OperatorReviewDto> source, Func<OperatorReviewDto, <anonymous type: int Id, string OperatorName, string DriverName, double? OilAmount, DateTime? Date, string Comments, string Status>> selector)'.
build: CheckDrive.Web/CheckDrive.Web/Controllers/OperatorReviewsController.cs#L100
Possible null reference argument for parameter 'source' in 'OperatorDto? Enumerable.FirstOrDefault<OperatorDto>(IEnumerable<OperatorDto> source)'.
build: CheckDrive.Web/CheckDrive.Web/Controllers/OperatorReviewsController.cs#L104
Dereference of a possibly null reference.
build: CheckDrive.Web/CheckDrive.Web/Controllers/OperatorReviewsController.cs#L111
Possible null reference argument for parameter 'source' in 'IEnumerable<MechanicHandoverDto> Enumerable.Where<MechanicHandoverDto>(IEnumerable<MechanicHandoverDto> source, Func<MechanicHandoverDto, bool> predicate)'.
build: CheckDrive.Web/CheckDrive.Web/Controllers/OperatorReviewsController.cs#L116
Possible null reference argument for parameter 'source' in 'IEnumerable<OperatorReviewDto> Enumerable.Where<OperatorReviewDto>(IEnumerable<OperatorReviewDto> source, Func<OperatorReviewDto, bool> predicate)'.
build: CheckDrive.Web/CheckDrive.Web/Controllers/OperatorReviewsController.cs#L175
Possible null reference argument for parameter 'source' in 'MechanicHandoverDto? Enumerable.FirstOrDefault<MechanicHandoverDto>(IEnumerable<MechanicHandoverDto> source, Func<MechanicHandoverDto, bool> predicate)'.
build: CheckDrive.Web/CheckDrive.Web/Controllers/OperatorReviewsController.cs#L229
Possible null reference argument for parameter 'source' in 'IEnumerable<OilMarksForDto?> Enumerable.Select<OperatorReviewDto, OilMarksForDto?>(IEnumerable<OperatorReviewDto> source, Func<OperatorReviewDto, OilMarksForDto?> selector)'.
build: CheckDrive.Web/CheckDrive.Web/Controllers/OperatorReviewsController.cs#L306
Possible null reference argument for parameter 'source' in 'IEnumerable<SelectListItem> Enumerable.Select<DriverDto, SelectListItem>(IEnumerable<DriverDto> source, Func<DriverDto, SelectListItem> selector)'.
build: CheckDrive.Web/CheckDrive.Web/Controllers/OperatorReviewsController.cs#L319
Possible null reference argument for parameter 'source' in 'IEnumerable<SelectListItem> Enumerable.Select<OperatorDto, SelectListItem>(IEnumerable<OperatorDto> source, Func<OperatorDto, SelectListItem> selector)'.