Skip to content

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

42e09a9
Select commit
Loading
Failed to load commit list.
Open

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

feat(l2ps-messaging): add crypto and integration tests for messaging …
42e09a9
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 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 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 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 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 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

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 175 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=AZzX4FYYzSB7bvLMig4c&open=AZzX4FYYzSB7bvLMig4c&pullRequest=686

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import of 'Hashing'.

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

Check warning on line 147 in src/features/l2ps-messaging/L2PSMessagingService.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=AZzX4FYizSB7bvLMig4i&open=AZzX4FYizSB7bvLMig4i&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 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 warning on line 172 in scripts/l2ps-messaging-test.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this useless assignment to variable "joined".

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

Check warning on line 237 in src/features/l2ps-messaging/L2PSMessagingServer.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=AZzX4FYyzSB7bvLMig4u&open=AZzX4FYyzSB7bvLMig4u&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 171 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 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 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 37 in src/features/l2ps-messaging/tests/L2PSMessagingServer.test.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this useless assignment to variable "ws".

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

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

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Review this usage of "peers" as it can only be empty here.

See more on https://sonarcloud.io/project/issues?id=kynesyslabs_node&issues=AZzX4FYYzSB7bvLMig4e&open=AZzX4FYYzSB7bvLMig4e&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 'mock'.

See more on https://sonarcloud.io/project/issues?id=kynesyslabs_node&issues=AZzX4FYYzSB7bvLMig4W&open=AZzX4FYYzSB7bvLMig4W&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/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 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 434 in src/features/l2ps-messaging/L2PSMessagingServer.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=AZzX4FYyzSB7bvLMig4w&open=AZzX4FYyzSB7bvLMig4w&pullRequest=686