Skip to content

feat(l2ps-messaging): enhance message processing and error handling f…

540a783
Select commit
Loading
Failed to load commit list.
Open

feat(l2ps-messaging): add crypto and integration tests for messaging … #686

feat(l2ps-messaging): enhance message processing and error handling f…
540a783
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis failed Mar 10, 2026 in 28s

Quality Gate failed

Failed conditions
3 Security Hotspots
B Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Annotations

Check warning on line 204 in src/features/l2ps-messaging/tests/L2PSMessagingService.test.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `.at(…)` over `[….length - index]`.

See more on https://sonarcloud.io/project/issues?id=kynesyslabs_node&issues=AZzX4FYOzSB7bvLMig4T&open=AZzX4FYOzSB7bvLMig4T&pullRequest=686

Check warning on line 8 in src/features/l2ps-messaging/tests/L2PSMessagingServer.test.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import of 'spyOn'.

See more on https://sonarcloud.io/project/issues?id=kynesyslabs_node&issues=AZzX4FYYzSB7bvLMig4X&open=AZzX4FYYzSB7bvLMig4X&pullRequest=686

Check warning on line 109 in src/features/l2ps-messaging/L2PSMessagingServer.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'error' will use Object's default stringification format ('[object Object]') when stringified.

See more on https://sonarcloud.io/project/issues?id=kynesyslabs_node&issues=AZzX4FYyzSB7bvLMig4s&open=AZzX4FYyzSB7bvLMig4s&pullRequest=686

Check warning on line 150 in src/features/l2ps-messaging/L2PSMessagingServer.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'error' will use Object's default stringification format ('[object Object]') when stringified.

See more on https://sonarcloud.io/project/issues?id=kynesyslabs_node&issues=AZzX4FYyzSB7bvLMig4t&open=AZzX4FYyzSB7bvLMig4t&pullRequest=686

Check warning on line 628 in src/index.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'error' will use Object's default stringification format ('[object Object]') when stringified.

See more on https://sonarcloud.io/project/issues?id=kynesyslabs_node&issues=AZzX4FZozSB7bvLMig4y&open=AZzX4FZozSB7bvLMig4y&pullRequest=686

Check warning on line 9 in src/features/l2ps-messaging/tests/L2PSMessagingServer.test.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import of 'L2PSMessagingServer'.

See more on https://sonarcloud.io/project/issues?id=kynesyslabs_node&issues=AZzX4FYYzSB7bvLMig4Y&open=AZzX4FYYzSB7bvLMig4Y&pullRequest=686

Check warning on line 8 in src/features/l2ps-messaging/tests/L2PSMessagingServer.test.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import of 'beforeEach'.

See more on https://sonarcloud.io/project/issues?id=kynesyslabs_node&issues=AZzX4FYYzSB7bvLMig4U&open=AZzX4FYYzSB7bvLMig4U&pullRequest=686

Check warning on line 435 in src/features/l2ps-messaging/L2PSMessagingServer.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

'error' will use Object's default stringification format ('[object Object]') when stringified.

See more on https://sonarcloud.io/project/issues?id=kynesyslabs_node&issues=AZzX4FYyzSB7bvLMig4v&open=AZzX4FYyzSB7bvLMig4v&pullRequest=686

Check warning on line 195 in src/features/l2ps-messaging/tests/L2PSMessagingService.test.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this useless assignment to variable "status".

See more on https://sonarcloud.io/project/issues?id=kynesyslabs_node&issues=AZzX4FYOzSB7bvLMig4S&open=AZzX4FYOzSB7bvLMig4S&pullRequest=686

Check warning on line 204 in src/features/l2ps-messaging/tests/L2PSMessagingServer.test.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This assertion is unnecessary since it does not change the type of the expression.

See more on https://sonarcloud.io/project/issues?id=kynesyslabs_node&issues=AZzX4FYYzSB7bvLMig4d&open=AZzX4FYYzSB7bvLMig4d&pullRequest=686

Check warning on line 186 in src/features/l2ps-messaging/L2PSMessagingService.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This assertion is unnecessary since the receiver accepts the original type of the expression.

See more on https://sonarcloud.io/project/issues?id=kynesyslabs_node&issues=AZzX4FYizSB7bvLMig4k&open=AZzX4FYizSB7bvLMig4k&pullRequest=686

Check warning on line 10 in src/features/l2ps-messaging/tests/L2PSMessagingServer.test.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import of 'L2PSMessagingService'.

See more on https://sonarcloud.io/project/issues?id=kynesyslabs_node&issues=AZzX4FYYzSB7bvLMig4Z&open=AZzX4FYYzSB7bvLMig4Z&pullRequest=686

Check warning on line 89 in src/features/l2ps-messaging/tests/integration.test.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This assertion is unnecessary since it does not change the type of the expression.

See more on https://sonarcloud.io/project/issues?id=kynesyslabs_node&issues=AZzX4FYEzSB7bvLMig4P&open=AZzX4FYEzSB7bvLMig4P&pullRequest=686

Check warning on line 112 in src/index.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `Number.parseInt` over `parseInt`.

See more on https://sonarcloud.io/project/issues?id=kynesyslabs_node&issues=AZzX4FZozSB7bvLMig4x&open=AZzX4FZozSB7bvLMig4x&pullRequest=686

Check warning on line 246 in scripts/l2ps-messaging-test.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer top-level await over using a promise chain.

See more on https://sonarcloud.io/project/issues?id=kynesyslabs_node&issues=AZzX4FZ7zSB7bvLMig40&open=AZzX4FZ7zSB7bvLMig40&pullRequest=686

Check warning on line 8 in src/features/l2ps-messaging/tests/L2PSMessagingService.test.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import of 'beforeEach'.

See more on https://sonarcloud.io/project/issues?id=kynesyslabs_node&issues=AZzX4FYOzSB7bvLMig4Q&open=AZzX4FYOzSB7bvLMig4Q&pullRequest=686

Check warning on line 24 in src/features/l2ps-messaging/L2PSMessagingService.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Member 'offlineMessageCounts' is never reassigned; mark it as `readonly`.

See more on https://sonarcloud.io/project/issues?id=kynesyslabs_node&issues=AZzX4FYizSB7bvLMig4h&open=AZzX4FYizSB7bvLMig4h&pullRequest=686

Check warning on line 38 in src/features/l2ps-messaging/L2PSMessagingServer.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Member 'service' is never reassigned; mark it as `readonly`.

See more on https://sonarcloud.io/project/issues?id=kynesyslabs_node&issues=AZzX4FYyzSB7bvLMig4r&open=AZzX4FYyzSB7bvLMig4r&pullRequest=686

Check warning on line 10 in src/features/l2ps-messaging/L2PSMessagingService.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import of 'getSharedState'.

See more on https://sonarcloud.io/project/issues?id=kynesyslabs_node&issues=AZzX4FYizSB7bvLMig4f&open=AZzX4FYizSB7bvLMig4f&pullRequest=686

Check warning on line 188 in src/features/l2ps-messaging/L2PSMessagingService.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This assertion is unnecessary since the receiver accepts the original type of the expression.

See more on https://sonarcloud.io/project/issues?id=kynesyslabs_node&issues=AZzX4FYizSB7bvLMig4l&open=AZzX4FYizSB7bvLMig4l&pullRequest=686

Check warning on line 36 in src/features/l2ps-messaging/L2PSMessagingServer.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Member 'peers' is never reassigned; mark it as `readonly`.

See more on https://sonarcloud.io/project/issues?id=kynesyslabs_node&issues=AZzX4FYyzSB7bvLMig4p&open=AZzX4FYyzSB7bvLMig4p&pullRequest=686

Check warning on line 199 in src/features/l2ps-messaging/L2PSMessagingService.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This assertion is unnecessary since the receiver accepts the original type of the expression.

See more on https://sonarcloud.io/project/issues?id=kynesyslabs_node&issues=AZzX4FYizSB7bvLMig4n&open=AZzX4FYizSB7bvLMig4n&pullRequest=686

Check warning on line 171 in src/features/l2ps-messaging/tests/L2PSMessagingServer.test.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

This assertion is unnecessary since it does not change the type of the expression.

See more on https://sonarcloud.io/project/issues?id=kynesyslabs_node&issues=AZzX4FYYzSB7bvLMig4b&open=AZzX4FYYzSB7bvLMig4b&pullRequest=686

Check failure on line 41 in src/features/l2ps-messaging/tests/integration.test.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Refactor this function to reduce its Cognitive Complexity from 23 to the 15 allowed.

See more on https://sonarcloud.io/project/issues?id=kynesyslabs_node&issues=AZzX4FYEzSB7bvLMig4O&open=AZzX4FYEzSB7bvLMig4O&pullRequest=686

Check warning on line 37 in src/features/l2ps-messaging/L2PSMessagingServer.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Member 'server' is never reassigned; mark it as `readonly`.

See more on https://sonarcloud.io/project/issues?id=kynesyslabs_node&issues=AZzX4FYyzSB7bvLMig4q&open=AZzX4FYyzSB7bvLMig4q&pullRequest=686