Skip to content

Unit tests

E068097 f0a2365
GitHub Advanced Security / CodeQL succeeded Nov 22, 2024 in 6s

12 new alerts

New alerts in code changed by this pull request

  • 5 warnings
  • 7 notes

See annotations below for details.

View all branch alerts.

Annotations

Check notice on line 69 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 87 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 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.