Skip to content

Scheduler and plannings management (#3255)

GitHub Advanced Security / CodeQL succeeded Dec 5, 2024 in 8s

11 new alerts

New alerts in code changed by this pull request

  • 5 warnings
  • 6 notes

See annotations below for details.

View all branch alerts.

Annotations

Check notice on line 68 in src/IoTHub.Portal.Client/Dialogs/Planning/DeletePlanningDialog.razor

See this annotation in the file changed.

Code scanning / CodeQL

Missed opportunity to use Select Note

This foreach loop immediately
maps its iteration variable to another variable
- consider mapping the sequence explicitly using '.Select(...)'.

Check notice on line 108 in src/IoTHub.Portal.Infrastructure/Jobs/SendPlanningCommandJob.cs

See this annotation in the file changed.

Code scanning / CodeQL

Generic catch clause Note

Generic catch clause.

Check notice on line 123 in src/IoTHub.Portal.Infrastructure/Jobs/SendPlanningCommandJob.cs

See this annotation in the file changed.

Code scanning / CodeQL

Generic catch clause Note

Generic catch clause.

Check notice on line 131 in src/IoTHub.Portal.Infrastructure/Jobs/SendPlanningCommandJob.cs

See this annotation in the file changed.

Code scanning / CodeQL

Missed opportunity to use Where Note

This foreach loop
implicitly filters its target sequence
- consider filtering the sequence explicitly using '.Where(...)'.

Check notice on line 169 in src/IoTHub.Portal.Infrastructure/Jobs/SendPlanningCommandJob.cs

See this annotation in the file changed.

Code scanning / CodeQL

Missed opportunity to use Where Note

This foreach loop
implicitly filters its target sequence
- consider filtering the sequence explicitly using '.Where(...)'.

Check notice on line 195 in src/IoTHub.Portal.Infrastructure/Jobs/SendPlanningCommandJob.cs

See this annotation in the file changed.

Code scanning / CodeQL

Missed opportunity to use Where Note

This foreach loop
implicitly filters its target sequence
- consider filtering the sequence explicitly using '.Where(...)'.

Check warning on line 566 in src/IoTHub.Portal.Tests.Unit/Client/Components/Planning/EditPlanningTest.cs

See this annotation in the file changed.

Code scanning / CodeQL

Useless assignment to local variable Warning

This assignment to
deviceModels
is useless, since its value is never read.

Check warning on line 572 in src/IoTHub.Portal.Tests.Unit/Client/Components/Planning/EditPlanningTest.cs

See this annotation in the file changed.

Code scanning / CodeQL

Useless assignment to local variable Warning

This assignment to
expectedPaginatedDeviceModels
is useless, since its value is never read.

Check warning on line 36 in src/IoTHub.Portal.Tests.Unit/Client/Dialogs/Layer/LinkDeviceLayerDialogTest.cs

See this annotation in the file changed.

Code scanning / CodeQL

Useless assignment to local variable Warning

This assignment to
searchedDevices
is useless, since its value is never read.

Check warning on line 74 in src/IoTHub.Portal.Tests.Unit/Client/Dialogs/Layer/LinkDeviceLayerDialogTest.cs

See this annotation in the file changed.

Code scanning / CodeQL

Useless assignment to local variable Warning

This assignment to
searchedDevices
is useless, since its value is never read.

Check warning on line 130 in src/IoTHub.Portal.Tests.Unit/Client/Dialogs/Layer/LinkDeviceLayerDialogTest.cs

See this annotation in the file changed.

Code scanning / CodeQL

Useless assignment to local variable Warning

This assignment to
searchedDevices
is useless, since its value is never read.