Skip to content

fix: resolve error in AsyncAPI optimize #4490

fix: resolve error in AsyncAPI optimize

fix: resolve error in AsyncAPI optimize #4490

Triggered via pull request January 25, 2025 14:46
Status Failure
Total duration 3m 47s
Artifacts

if-nodejs-pr-testing.yml

on: pull_request
Matrix: test-nodejs-pr
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 11 warnings
Test NodeJS PR - ubuntu-latest: src/commands/optimize.ts#L74
Unexpected if as the only statement in an else block
Test NodeJS PR - ubuntu-latest: src/commands/optimize.ts#L74
Expected space(s) after "if"
Test NodeJS PR - ubuntu-latest: src/commands/optimize.ts#L74
Missing space before opening brace
Test NodeJS PR - ubuntu-latest: src/commands/optimize.ts#L81
Expected space(s) before "else"
Test NodeJS PR - ubuntu-latest: src/commands/optimize.ts#L81
Expected space(s) after "else"
Test NodeJS PR - ubuntu-latest
Process completed with exit code 1.
Test NodeJS PR - windows-latest
The job was canceled because "ubuntu-latest" failed.
Test NodeJS PR - windows-latest
The operation was canceled.
Test NodeJS PR - macos-13
The job was canceled because "ubuntu-latest" failed.
Test NodeJS PR - macos-13
The operation was canceled.
Test NodeJS PR - ubuntu-latest
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test NodeJS PR - ubuntu-latest: github-action/test/asyncapi.yml#L1
asyncapi-defaultContentType
Test NodeJS PR - ubuntu-latest: github-action/test/asyncapi.yml#L2
asyncapi-info-contact Info object should have "contact" object.
Test NodeJS PR - ubuntu-latest
asyncapi-defaultContentType
Test NodeJS PR - ubuntu-latest
asyncapi-id
Test NodeJS PR - ubuntu-latest
asyncapi2-tags
Test NodeJS PR - ubuntu-latest
asyncapi-info-contact Info object should have "contact" object.
Test NodeJS PR - ubuntu-latest: src/commands/optimize.ts#L59
Refactor this function to reduce its Cognitive Complexity from 21 to the 15 allowed
Test NodeJS PR - ubuntu-latest: src/core/models/Studio.ts#L23
Refactor this function to reduce its Cognitive Complexity from 23 to the 15 allowed