Skip to content

fix: remove unused dependencies and update older ones #1714

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading

Unchanged files with check annotations Beta

return existsSync(filePath);
}
export function start(filePath: string, port: number = DEFAULT_PORT): void {

Check warning on line 23 in src/core/models/Studio.ts

GitHub Actions / Test NodeJS PR - ubuntu-latest

Refactor this function to reduce its Cognitive Complexity from 27 to the 15 allowed
if (filePath && !isValidFilePath(filePath)) {
throw new SpecificationFileNotFound(filePath);
}
parser = new Parser();
async run() {

Check warning on line 57 in src/commands/optimize.ts

GitHub Actions / Test NodeJS PR - ubuntu-latest

Refactor this function to reduce its Cognitive Complexity from 18 to the 15 allowed
const { args, flags } = await this.parse(Optimize); //NOSONAR
let filePath = args['spec-file'];
const proxyHost = flags['proxyHost'];
asyncapi: '2.0.0'

Check warning on line 1 in github-action/test/asyncapi.yml

GitHub Actions / Test NodeJS PR - ubuntu-latest

asyncapi2-tags

Check warning on line 1 in github-action/test/asyncapi.yml

GitHub Actions / Test NodeJS PR - ubuntu-latest

asyncapi-id

Check warning on line 1 in github-action/test/asyncapi.yml

GitHub Actions / Test NodeJS PR - ubuntu-latest

asyncapi-defaultContentType

Check warning on line 1 in github-action/test/asyncapi.yml

GitHub Actions / Test NodeJS PR - macos-13

asyncapi2-tags

Check warning on line 1 in github-action/test/asyncapi.yml

GitHub Actions / Test NodeJS PR - macos-13

asyncapi-id

Check warning on line 1 in github-action/test/asyncapi.yml

GitHub Actions / Test NodeJS PR - macos-13

asyncapi-defaultContentType

Check warning on line 1 in github-action/test/asyncapi.yml

GitHub Actions / Test NodeJS PR - windows-latest

asyncapi2-tags

Check warning on line 1 in github-action/test/asyncapi.yml

GitHub Actions / Test NodeJS PR - windows-latest

asyncapi-id

Check warning on line 1 in github-action/test/asyncapi.yml

GitHub Actions / Test NodeJS PR - windows-latest

asyncapi-defaultContentType
info:

Check warning on line 2 in github-action/test/asyncapi.yml

GitHub Actions / Test NodeJS PR - ubuntu-latest

asyncapi-info-contact Info object should have "contact" object.

Check warning on line 2 in github-action/test/asyncapi.yml

GitHub Actions / Test NodeJS PR - macos-13

asyncapi-info-contact Info object should have "contact" object.

Check warning on line 2 in github-action/test/asyncapi.yml

GitHub Actions / Test NodeJS PR - windows-latest

asyncapi-info-contact Info object should have "contact" object.
title: Streetlights API
version: '1.0.0'
description: |