Skip to content

Update ApiClient.cs

Update ApiClient.cs #8

Triggered via push July 1, 2024 08:59
Status Success
Total duration 4m 52s
Artifacts 1
Fit to window
Zoom out
Zoom in

Annotations

15 warnings
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-dotnet@v1, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/setup-dotnet@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
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)'.
build
The "--output" option isn't supported when building a solution. Specifying a solution-level output path results in all projects copying outputs to the same directory, which can lead to inconsistent builds.
deploy
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: azure/login@v1, actions/download-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Deprecation notice: v1, v2, and v3 of the artifact actions
The following artifacts were uploaded using a version of actions/upload-artifact that is scheduled for deprecation: ".net-app". Please update your workflow to use v4 of the artifact actions. Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/

Artifacts

Produced during runtime
Name Size Digest
.net-app Expired
58.3 MB