Skip to content

fix: detect and clearly reject multiple YAML documents

e3a7bec
Select commit
Loading
Failed to load commit list.
Open

fix: detect and clearly reject multiple YAML documents (#1997) #2060

fix: detect and clearly reject multiple YAML documents
e3a7bec
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Mar 19, 2026 in 22s

Annotations

Check warning on line 3 in src/apps/cli/commands/generate/fromTemplate.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import of 'load'.

See more on https://sonarcloud.io/project/issues?id=asyncapi_cli&issues=AZ0ET62eIpZiw5iiN5kA&open=AZ0ET62eIpZiw5iiN5kA&pullRequest=2060

Check warning on line 3 in src/apps/cli/commands/generate/fromTemplate.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Remove this unused import of 'Specification'.

See more on https://sonarcloud.io/project/issues?id=asyncapi_cli&issues=AZ0ET62fIpZiw5iiN5kB&open=AZ0ET62fIpZiw5iiN5kB&pullRequest=2060

Check warning on line 16 in src/utils/generate/registry.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=asyncapi_cli&issues=AZ0ET63_IpZiw5iiN5kC&open=AZ0ET63_IpZiw5iiN5kC&pullRequest=2060

Check warning on line 2 in src/domains/models/SpecificationFile.ts

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

Prefer `node:readline` over `readline`.

See more on https://sonarcloud.io/project/issues?id=asyncapi_cli&issues=AZ0ET64tIpZiw5iiN5kD&open=AZ0ET64tIpZiw5iiN5kD&pullRequest=2060

Check warning on line 142 in scripts/fetch-asyncapi-example.js

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

`args` should be a `Set`, and use `args.has()` to check existence or non-existence.

See more on https://sonarcloud.io/project/issues?id=asyncapi_cli&issues=AZ0ET65OIpZiw5iiN5kE&open=AZ0ET65OIpZiw5iiN5kE&pullRequest=2060