Skip to content

Fixing the unit tests #203

Fixing the unit tests

Fixing the unit tests #203

Triggered via push February 4, 2024 20:51
Status Success
Total duration 4m 11s
Artifacts

sonar.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

14 warnings
Build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-dotnet@v1, actions/checkout@v2, actions/cache@v1. 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, actions/checkout@v2, actions/cache@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: src/Models/RequetObject.cs#L103
Remove this commented out code. (https://rules.sonarsource.com/csharp/RSPEC-125)
Build: src/webserver/Controllers/ChatController.cs#L23
Remove this commented out code. (https://rules.sonarsource.com/csharp/RSPEC-125)
Build: src/webserver/Program.cs#L15
Add a 'protected' constructor or the 'static' keyword to the class declaration. (https://rules.sonarsource.com/csharp/RSPEC-1118)
Build: src/webserver/Program.cs#L17
Make this field 'private' and encapsulate it in a 'public' property. (https://rules.sonarsource.com/csharp/RSPEC-1104)
Build: src/webserver/Program.cs#L17
Change the visibility of 'hubContext' or make it 'const' or 'readonly'. (https://rules.sonarsource.com/csharp/RSPEC-2223)
Build: src/live/ingest/src/Function.cs#L17
Remove the unused private field 'dynamoDBContext'. (https://rules.sonarsource.com/csharp/RSPEC-1144)
Build: src/utilities/EnvironmentVariables.cs#L31
Either remove or fill this block of code. (https://rules.sonarsource.com/csharp/RSPEC-108)
Build: src/webutils/Program.cs#L45
Indexing at Count-1 should be used instead of the "Enumerable" extension method "Last" (https://rules.sonarsource.com/csharp/RSPEC-6608)
Build: src/strategies/locked/Random/RandomRecentHighLow.cs#L20
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: src/strategies/drafts/RandomRecentHighLow copy.cs#L20
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: src/strategies/locked/Random/RandomRecentHighLow.cs#L20
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: src/strategies/drafts/RandomRecentHighLow copy.cs#L20
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.