Skip to content

fix: update outdated spec path and CLI installation details #3926

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

Conversation

Arijit-Char
Copy link

@Arijit-Char Arijit-Char commented Mar 20, 2025

Description:
This PR fixes issue #3721 (AsyncAPI Website Issue #3721) by updating outdated references in the /tools/generator and /tools/cli documentation.

Fixes:
Incorrect Spec Path in Generator Docs:

Updated specPath from asyncapi.yaml 2.0.0 to 3.0.0 in /tools/generator, aligning with the latest template version as per html-template README.
The previous version reference was outdated, causing issues when using the generator with v3 templates.
Incorrect Installation Instructions:

Updated descriptions in tools.json and cli.tsx to reflect the new implementation changes as per asyncapi/cli#1649.

Summary by CodeRabbit

  • New Features
    • Updated the default AsyncAPI specification link to a direct YAML file for improved relevance.
    • Expanded the CLI tool description to clarify that it now supports creating complete projects, specification files, and client/application templates.
  • Documentation
    • Updated the example description in the localization files to reflect the enhanced capabilities of the CLI tool.

Copy link
Contributor

coderabbitai bot commented Mar 20, 2025

Walkthrough

This pull request updates the default specification path in the GeneratorInstallation component by replacing a shortened URL with a direct GitHub link to a YAML file. Additionally, it expands the descriptive text for the CLI tool in both the CLI page and its corresponding localization file, indicating that the tool now supports creating projects, specification files, and templates.

Changes

File(s) Change Summary
components/GeneratorInstallation.tsx Updated the default specPath from a shortened URL to a direct GitHub link pointing to a specific AsyncAPI YAML file. Adjusted comments for grammatical correctness and clarity.
pages/tools/cli.tsx
public/locales/en/tools.json
Revised the CLI descriptive text to indicate extended functionality for creating projects, specification files, and templates for clients and applications.

Suggested labels

autoapproved, autoupdate

Suggested reviewers

  • derberg
  • akshatnema
  • anshgoyalevil
  • Mayaleeeee
  • asyncapi-bot-eve

Poem

I'm a rabbit, quick on my feet,
Hopping along to a coding beat.
Updated paths now shine so bright,
CLI texts sing a broader delight.
A joyful hop for changes done right!
🐰✨


📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d92a91f and adc8234.

📒 Files selected for processing (1)
  • pages/tools/cli.tsx (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • pages/tools/cli.tsx

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

netlify bot commented Mar 20, 2025

Deploy Preview for asyncapi-website ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit af3de5f
🔍 Latest deploy log https://app.netlify.com/sites/asyncapi-website/deploys/67de6599ca6660000836c4f1
😎 Deploy Preview https://deploy-preview-3926--asyncapi-website.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Arijit-Char
Copy link
Author

Hi @derberg , @akshatnema, @anshgoyalevil, @Mayaleeeee, and @asyncapi-bot-eve,

I have updated the code to fix issue #3721 by correcting the outdated spec path in /tools/generator and updating the CLI installation details in /tools/cli. Please review this PR when you get a chance.

Looking forward to your feedback! 😊

Thanks! 🚀

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6ec39fb and eef2be2.

📒 Files selected for processing (3)
  • components/GeneratorInstallation.tsx (1 hunks)
  • pages/tools/cli.tsx (1 hunks)
  • public/locales/en/tools.json (2 hunks)
🧰 Additional context used
🪛 ESLint
pages/tools/cli.tsx

[error] 158-158: Insert {'·'}⏎

(prettier/prettier)

components/GeneratorInstallation.tsx

[error] 27-27: Replace 'https://raw.githubusercontent.com/asyncapi/spec/refs/heads/master/examples/streetlights-kafka-asyncapi.yml' with ⏎····'https://raw.githubusercontent.com/asyncapi/spec/refs/heads/master/examples/streetlights-kafka-asyncapi.yml'⏎··

(prettier/prettier)

🪛 GitHub Actions: PR testing - if Node project
pages/tools/cli.tsx

[error] 158-158: Insert {'·'}⏎ prettier/prettier

components/GeneratorInstallation.tsx

[error] 27-27: Replace 'https://raw.githubusercontent.com/asyncapi/spec/refs/heads/master/examples/streetlights-kafka-asyncapi.yml' with ⏎····'https://raw.githubusercontent.com/asyncapi/spec/refs/heads/master/examples/streetlights-kafka-asyncapi.yml'⏎·· prettier/prettier

🔇 Additional comments (2)
public/locales/en/tools.json (1)

10-10: LGTM! Description update is consistent with UI changes.

The expanded description for the CLI tool appropriately reflects its broader functionality to create projects, specification files, and templates, aligning with the changes made in the UI component.

components/GeneratorInstallation.tsx (1)

27-27:

✅ Verification successful

Verify that the example spec URL is valid and accessible.

The direct URL to the GitHub raw content should be checked to ensure it's stable and publicly accessible.


🏁 Script executed:

#!/bin/bash
# Check if the URL returns a successful response
status_code=$(curl -s -o /dev/null -w "%{http_code}" https://raw.githubusercontent.com/asyncapi/spec/refs/heads/master/examples/streetlights-kafka-asyncapi.yml)
if [ $status_code -eq 200 ]; then
  echo "✅ URL is accessible (Status: $status_code)"
else
  echo "❌ URL is not accessible (Status: $status_code)"
fi

# Check if the content is valid YAML and contains AsyncAPI version
echo "Verifying YAML content:"
curl -s https://raw.githubusercontent.com/asyncapi/spec/refs/heads/master/examples/streetlights-kafka-asyncapi.yml | grep -q "asyncapi:"
if [ $? -eq 0 ]; then
  echo "✅ File appears to be a valid AsyncAPI specification"
else
  echo "❌ File may not be a valid AsyncAPI specification"
fi

Length of output: 590


Example spec URL verified as valid and accessible.

  • The URL returned a 200 status code, confirming public accessibility.
  • The file content contains the "asyncapi:" marker, ensuring it’s a valid AsyncAPI specification.
🧰 Tools
🪛 ESLint

[error] 27-27: Replace 'https://raw.githubusercontent.com/asyncapi/spec/refs/heads/master/examples/streetlights-kafka-asyncapi.yml' with ⏎····'https://raw.githubusercontent.com/asyncapi/spec/refs/heads/master/examples/streetlights-kafka-asyncapi.yml'⏎··

(prettier/prettier)

🪛 GitHub Actions: PR testing - if Node project

[error] 27-27: Replace 'https://raw.githubusercontent.com/asyncapi/spec/refs/heads/master/examples/streetlights-kafka-asyncapi.yml' with ⏎····'https://raw.githubusercontent.com/asyncapi/spec/refs/heads/master/examples/streetlights-kafka-asyncapi.yml'⏎·· prettier/prettier

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 5

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 9541836 and ea53d37.

📒 Files selected for processing (2)
  • components/GeneratorInstallation.tsx (2 hunks)
  • pages/tools/cli.tsx (6 hunks)
🧰 Additional context used
🪛 ESLint
components/GeneratorInstallation.tsx

[error] 24-26: Replace ⏎····'@asyncapi/[email protected]',⏎·· with '@asyncapi/[email protected]'

(prettier/prettier)


[error] 25-25: Unexpected trailing comma.

(comma-dangle)


[error] 28-30: Replace ⏎····'-o·example·--use-new-generator',⏎·· with '-o·example·--use-new-generator'

(prettier/prettier)


[error] 29-29: Unexpected trailing comma.

(comma-dangle)


[error] 32-32: Delete ,

(prettier/prettier)


[error] 32-32: Unexpected trailing comma.

(comma-dangle)


[error] 75-75: Replace "relative·mx-auto·mt-8·max-w-full" with 'relative·mx-auto·mt-8·max-w-full'

(prettier/prettier)


[error] 75-75: Unexpected usage of doublequote.

(jsx-quotes)


[error] 76-76: Replace "mb-4" with 'mb-4'

(prettier/prettier)


[error] 76-76: Unexpected usage of doublequote.

(jsx-quotes)


[error] 77-77: Replace "mr-4·inline" with 'mr-4·inline'

(prettier/prettier)


[error] 77-77: Unexpected usage of doublequote.

(jsx-quotes)


[error] 84-84: Replace "shadow-outline-blue" with 'shadow-outline-blue'

(prettier/prettier)


[error] 84-84: Unexpected usage of doublequote.

(jsx-quotes)


[error] 88-88: Replace "generator-cli" with 'generator-cli'

(prettier/prettier)


[error] 88-88: Unexpected usage of doublequote.

(jsx-quotes)


[error] 89-89: Replace "text-sm" with 'text-sm'

(prettier/prettier)


[error] 89-89: Unexpected usage of doublequote.

(jsx-quotes)


[error] 90-90: Replace "shadow-lg" with 'shadow-lg'

(prettier/prettier)


[error] 90-90: Unexpected usage of doublequote.

(jsx-quotes)


[error] 94-94: Delete ,

(prettier/prettier)


[error] 94-94: Unexpected trailing comma.

(comma-dangle)


[error] 98-98: Delete ,

(prettier/prettier)


[error] 98-98: Unexpected trailing comma.

(comma-dangle)


[error] 99-99: Delete ,

(prettier/prettier)


[error] 99-99: Unexpected trailing comma.

(comma-dangle)

pages/tools/cli.tsx

[error] 1-6: Replace ⏎··BadgeCheckIcon,⏎··CodeIcon,⏎··DocumentAddIcon,⏎··GlobeIcon,⏎ with ·BadgeCheckIcon,·CodeIcon,·DocumentAddIcon,·GlobeIcon·

(prettier/prettier)


[error] 5-5: Unexpected trailing comma.

(comma-dangle)


[error] 24-24: Delete ,

(prettier/prettier)


[error] 24-24: Unexpected trailing comma.

(comma-dangle)


[error] 30-30: Delete ,

(prettier/prettier)


[error] 30-30: Unexpected trailing comma.

(comma-dangle)


[error] 38-40: Replace "·rounded·bg-gray-200·px-1·py-0.5·font-mono·text-sm·text-gray-900">⏎··········asyncapi·start·studio⏎········ with '·rounded·bg-gray-200·px-1·py-0.5·font-mono·text-sm·text-gray-900'>asyncapi·start·studio

(prettier/prettier)


[error] 38-38: Unexpected usage of doublequote.

(jsx-quotes)


[error] 44-44: Delete ,

(prettier/prettier)


[error] 44-44: Unexpected trailing comma.

(comma-dangle)


[error] 50-50: Delete ,

(prettier/prettier)


[error] 50-50: Unexpected trailing comma.

(comma-dangle)


[error] 51-51: Delete ,

(prettier/prettier)


[error] 51-51: Unexpected trailing comma.

(comma-dangle)


[error] 59-59: Replace "mt-8" with 'mt-8'

(prettier/prettier)


[error] 59-59: Unexpected usage of doublequote.

(jsx-quotes)


[error] 61-61: Replace "View·on·Github" with 'View·on·Github'

(prettier/prettier)


[error] 61-61: Unexpected usage of doublequote.

(jsx-quotes)


[error] 62-62: Replace "mt-2·block·w-full·sm:w-auto·md:mt-0·md:inline-block" with 'mt-2·block·w-full·sm:w-auto·md:mt-0·md:inline-block'

(prettier/prettier)


[error] 62-62: Unexpected usage of doublequote.

(jsx-quotes)


[error] 63-63: Replace "https://www.github.com/asyncapi/cli" with 'https://www.github.com/asyncapi/cli'

(prettier/prettier)


[error] 63-63: Unexpected usage of doublequote.

(jsx-quotes)


[error] 66-66: Replace "View·Docs" with 'View·Docs'

(prettier/prettier)


[error] 66-66: Unexpected usage of doublequote.

(jsx-quotes)


[error] 67-67: Replace "/docs/tools/cli" with '/docs/tools/cli'

(prettier/prettier)


[error] 67-67: Unexpected usage of doublequote.

(jsx-quotes)


[error] 68-68: Replace "mt-2·block·w-full·sm:w-auto·md:ml-2·md:mt-0·md:inline-block" with 'mt-2·block·w-full·sm:w-auto·md:ml-2·md:mt-0·md:inline-block'

(prettier/prettier)


[error] 68-68: Unexpected usage of doublequote.

(jsx-quotes)


[error] 78-79: Delete ⏎···

(prettier/prettier)


[error] 95-95: Replace "CLI" with 'CLI'

(prettier/prettier)


[error] 95-95: Unexpected usage of doublequote.

(jsx-quotes)


[error] 96-96: Replace "overflow-hidden·py-12" with 'overflow-hidden·py-12'

(prettier/prettier)


[error] 96-96: Unexpected usage of doublequote.

(jsx-quotes)


[error] 97-97: Replace "relative·mx-auto·max-w-xl·px-4·sm:px-6·lg:max-w-screen-xl·lg:px-8" with 'relative·mx-auto·max-w-xl·px-4·sm:px-6·lg:max-w-screen-xl·lg:px-8'

(prettier/prettier)


[error] 97-97: Unexpected usage of doublequote.

(jsx-quotes)


[error] 98-98: Replace "relative" with 'relative'

(prettier/prettier)


[error] 98-98: Unexpected usage of doublequote.

(jsx-quotes)


[error] 99-103: Replace ⏎··············level={HeadingLevel.h1}⏎··············typeStyle={HeadingTypeStyle.lg}⏎··············className="text-center"⏎············ with ·level={HeadingLevel.h1}·typeStyle={HeadingTypeStyle.lg}·className='text-center'

(prettier/prettier)


[error] 102-102: Unexpected usage of doublequote.

(jsx-quotes)


[error] 104-106: Replace "hidden·md:block">⏎················Interact·with·AsyncAPI·from·the·comfort·of·your·CLI⏎·············· with 'hidden·md:block'>Interact·with·AsyncAPI·from·the·comfort·of·your·CLI

(prettier/prettier)


[error] 104-104: Unexpected usage of doublequote.

(jsx-quotes)


[error] 107-107: Replace "md:hidden" with 'md:hidden'

(prettier/prettier)


[error] 107-107: Unexpected usage of doublequote.

(jsx-quotes)


[error] 109-111: Replace "mx-auto·mt-4·max-w-3xl·text-center">⏎··············{description}⏎············ with 'mx-auto·mt-4·max-w-3xl·text-center'>{description}

(prettier/prettier)


[error] 109-109: Unexpected usage of doublequote.

(jsx-quotes)


[error] 114-114: Replace "relative·mt-12·lg:mt-20·lg:grid·lg:grid-cols-2·lg:items-center·lg:gap-8" with 'relative·mt-12·lg:mt-20·lg:grid·lg:grid-cols-2·lg:items-center·lg:gap-8'

(prettier/prettier)


[error] 114-114: Unexpected usage of doublequote.

(jsx-quotes)


[error] 115-115: Replace "relative·lg:mt-8" with 'relative·lg:mt-8'

(prettier/prettier)


[error] 115-115: Unexpected usage of doublequote.

(jsx-quotes)


[error] 116-119: Replace ⏎················level={HeadingLevel.h2}⏎················typeStyle={HeadingTypeStyle.mdSemibold}⏎·············· with ·level={HeadingLevel.h2}·typeStyle={HeadingTypeStyle.mdSemibold}

(prettier/prettier)


[error] 122-122: Replace "mt-3·lg:pr-4" with 'mt-3·lg:pr-4'

(prettier/prettier)


[error] 122-122: Unexpected usage of doublequote.

(jsx-quotes)


[error] 123-124: Delete ⏎···············

(prettier/prettier)


[error] 129-129: Replace "relative·mx-auto·mt-8·w-full·space-y-10" with 'relative·mx-auto·mt-8·w-full·space-y-10'

(prettier/prettier)


[error] 129-129: Unexpected usage of doublequote.

(jsx-quotes)


[error] 134-134: Replace "mb-4·text-center·md:text-left" with 'mb-4·text-center·md:text-left'

(prettier/prettier)


[error] 134-134: Unexpected usage of doublequote.

(jsx-quotes)


[error] 139-139: Replace "generator-cli" with 'generator-cli'

(prettier/prettier)


[error] 139-139: Unexpected usage of doublequote.

(jsx-quotes)


[error] 140-140: Replace "text-sm" with 'text-sm'

(prettier/prettier)


[error] 140-140: Unexpected usage of doublequote.

(jsx-quotes)


[error] 141-141: Replace "shadow-lg" with 'shadow-lg'

(prettier/prettier)


[error] 141-141: Unexpected usage of doublequote.

(jsx-quotes)


[error] 145-145: Delete ,

(prettier/prettier)


[error] 145-145: Unexpected trailing comma.

(comma-dangle)


[error] 149-149: Delete ,

(prettier/prettier)


[error] 149-149: Unexpected trailing comma.

(comma-dangle)


[error] 153-153: Delete ,

(prettier/prettier)


[error] 153-153: Unexpected trailing comma.

(comma-dangle)


[error] 157-157: Delete ,

(prettier/prettier)


[error] 157-157: Unexpected trailing comma.

(comma-dangle)


[error] 161-161: Delete ,

(prettier/prettier)


[error] 161-161: Unexpected trailing comma.

(comma-dangle)


[error] 162-162: Delete ,

(prettier/prettier)


[error] 162-162: Unexpected trailing comma.

(comma-dangle)


[error] 171-171: Replace "mb-4·text-center·md:text-left" with 'mb-4·text-center·md:text-left'

(prettier/prettier)


[error] 171-171: Unexpected usage of doublequote.

(jsx-quotes)


[error] 175-175: Replace "space-y-5" with 'space-y-5'

(prettier/prettier)


[error] 175-175: Unexpected usage of doublequote.

(jsx-quotes)


[error] 177-180: Replace ⏎······················typeStyle={ParagraphTypeStyle.md}⏎······················className="mb-4"⏎···················· with ·typeStyle={ParagraphTypeStyle.md}·className='mb-4'

(prettier/prettier)


[error] 179-179: Unexpected usage of doublequote.

(jsx-quotes)


[error] 181-182: Delete ⏎·····················

(prettier/prettier)


[error] 185-185: Replace "generator-cli" with 'generator-cli'

(prettier/prettier)


[error] 185-185: Unexpected usage of doublequote.

(jsx-quotes)


[error] 186-186: Replace "text-sm" with 'text-sm'

(prettier/prettier)


[error] 186-186: Unexpected usage of doublequote.

(jsx-quotes)


[error] 187-187: Replace "shadow-lg" with 'shadow-lg'

(prettier/prettier)


[error] 187-187: Unexpected usage of doublequote.

(jsx-quotes)


[error] 191-191: Delete ,

(prettier/prettier)


[error] 191-191: Unexpected trailing comma.

(comma-dangle)


[error] 192-192: Delete ,

(prettier/prettier)


[error] 192-192: Unexpected trailing comma.

(comma-dangle)


[error] 200-200: Replace "mt-20·bg-white·lg:py-12" with 'mt-20·bg-white·lg:py-12'

(prettier/prettier)


[error] 200-200: Unexpected usage of doublequote.

(jsx-quotes)


[error] 201-201: Replace "mx-auto·max-w-7xl·px-4·sm:px-6·lg:px-8" with 'mx-auto·max-w-7xl·px-4·sm:px-6·lg:px-8'

(prettier/prettier)


[error] 201-201: Unexpected usage of doublequote.

(jsx-quotes)


[error] 202-202: Replace "mb-16·text-center" with 'mb-16·text-center'

(prettier/prettier)


[error] 202-202: Unexpected usage of doublequote.

(jsx-quotes)


[error] 203-206: Replace ⏎··················level={HeadingLevel.h2}⏎··················typeStyle={HeadingTypeStyle.mdSemibold}⏎················ with ·level={HeadingLevel.h2}·typeStyle={HeadingTypeStyle.mdSemibold}

(prettier/prettier)


[error] 209-209: Replace "mx-auto·mt-3·max-w-lg·text-center·lg:pr-4" with 'mx-auto·mt-3·max-w-lg·text-center·lg:pr-4'

(prettier/prettier)


[error] 209-209: Unexpected usage of doublequote.

(jsx-quotes)


[error] 210-211: Delete ⏎·················

(prettier/prettier)


[error] 215-215: Replace "mt-10" with 'mt-10'

(prettier/prettier)


[error] 215-215: Unexpected usage of doublequote.

(jsx-quotes)


[error] 216-216: Replace "·md:grid·lg:grid-cols-2·lg:space-y-0" with '·md:grid·lg:grid-cols-2·lg:space-y-0'

(prettier/prettier)


[error] 216-216: Unexpected usage of doublequote.

(jsx-quotes)


[error] 218-218: Replace "relative·mb-10" with 'relative·mb-10'

(prettier/prettier)


[error] 218-218: Unexpected usage of doublequote.

(jsx-quotes)


[error] 220-220: Replace "absolute·flex·size-12·items-center·justify-center·rounded-md·border·border-gray-900·bg-secondary-100·text-gray-900" with 'absolute·flex·size-12·items-center·justify-center·rounded-md·border·border-gray-900·bg-secondary-100·text-gray-900'

(prettier/prettier)


[error] 220-220: Unexpected usage of doublequote.

(jsx-quotes)


[error] 221-221: Replace "size-6"·aria-hidden="true" with 'size-6'·aria-hidden='true'

(prettier/prettier)


[error] 221-221: Unexpected usage of doublequote.

(jsx-quotes)


[error] 221-221: Unexpected usage of doublequote.

(jsx-quotes)


[error] 223-227: Replace ⏎··························level={HeadingLevel.h4}⏎··························typeStyle={HeadingTypeStyle.smSemibold}⏎··························className="ml-16"⏎························ with ·level={HeadingLevel.h4}·typeStyle={HeadingTypeStyle.smSemibold}·className='ml-16'

(prettier/prettier)


[error] 226-226: Unexpected usage of doublequote.

(jsx-quotes)


[error] 231-231: Replace "ml-16·mt-2·pr-10" with 'ml-16·mt-2·pr-10'

(prettier/prettier)


[error] 231-231: Unexpected usage of doublequote.

(jsx-quotes)


[error] 242-242: Replace "mt-16·text-center" with 'mt-16·text-center'

(prettier/prettier)


[error] 242-242: Unexpected usage of doublequote.

(jsx-quotes)

🪛 GitHub Actions: PR testing - if Node project
components/GeneratorInstallation.tsx

[error] 24-52: Replace ⏎····'@asyncapi/[email protected]',⏎·· with '@asyncapi/[email protected]' (prettier/prettier)


[error] 25-36: Unexpected trailing comma. (comma-dangle)

pages/tools/cli.tsx

[error] 1-1: Prettier formatting check failed. Replace ⏎··BadgeCheckIcon,⏎··CodeIcon,⏎··DocumentAddIcon,⏎··GlobeIcon,⏎ with ·BadgeCheckIcon,·CodeIcon,·DocumentAddIcon,·GlobeIcon·.


[error] 5-5: Unexpected trailing comma. (comma-dangle)


[error] 24-26: Delete , (prettier/prettier)


[error] 30-25: Delete , (prettier/prettier)


[error] 38-25: Replace "·rounded·bg-gray-200·px-1·py-0.5·font-mono·text-sm·text-gray-900">⏎··········asyncapi·start·studio⏎········ with '·rounded·bg-gray-200·px-1·py-0.5·font-mono·text-sm·text-gray-900'>asyncapi·start·studio (prettier/prettier)


[error] 38-25: Unexpected usage of doublequote. (jsx-quotes)

🔇 Additional comments (2)
pages/tools/cli.tsx (1)

181-183: Accurate update of CLI functionality.

The description now correctly reflects the expanded functionality of the CLI tool, which can create not only AsyncAPI files but also projects and templates for clients and applications. This aligns with the PR objective to update CLI installation details.

🧰 Tools
🪛 ESLint

[error] 181-182: Delete ⏎·····················

(prettier/prettier)

components/GeneratorInstallation.tsx (1)

31-33:

✅ Verification successful

Good update to the specification path.

Replacing the shortened URL with a direct GitHub link to the latest specification example is a positive change. This aligns with the PR objective to update outdated references in the documentation.

However, there's a formatting issue flagged by the linter:

-  const [specPath, setSpecPath] = useState<string>(
-    'https://raw.githubusercontent.com/asyncapi/spec/refs/heads/master/examples/streetlights-kafka-asyncapi.yml',
-  );
+  const [specPath, setSpecPath] = useState<string>('https://raw.githubusercontent.com/asyncapi/spec/refs/heads/master/examples/streetlights-kafka-asyncapi.yml');

🏁 Script executed:

#!/bin/bash
# Verify that the example YAML file exists at the specified URL
curl -s -o /dev/null -w "%{http_code}" https://raw.githubusercontent.com/asyncapi/spec/refs/heads/master/examples/streetlights-kafka-asyncapi.yml

Length of output: 151


Action: Confirm URL Validity & Adjust Code Formatting

  • The updated specification URL is valid (HTTP 200 confirmed).
  • The specification path update aligns well with the PR objective to update outdated references.
  • Please address the linter's formatting suggestion by condensing the code to a single line as shown:
-  const [specPath, setSpecPath] = useState<string>(
-    'https://raw.githubusercontent.com/asyncapi/spec/refs/heads/master/examples/streetlights-kafka-asyncapi.yml',
-  );
+  const [specPath, setSpecPath] = useState<string>('https://raw.githubusercontent.com/asyncapi/spec/refs/heads/master/examples/streetlights-kafka-asyncapi.yml');
🧰 Tools
🪛 ESLint

[error] 32-32: Delete ,

(prettier/prettier)


[error] 32-32: Unexpected trailing comma.

(comma-dangle)

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 6

♻️ Duplicate comments (1)
pages/tools/cli.tsx (1)

1-6: ⚠️ Potential issue

Fix formatting to resolve pipeline failures.

The multi-line import statement is causing Prettier formatting errors. According to the pipeline failures, the imports should be on a single line.

Apply this diff to fix the formatting:

-import {
-  BadgeCheckIcon,
-  CodeIcon,
-  DocumentAddIcon,
-  GlobeIcon
-} from '@heroicons/react/outline';
+import { BadgeCheckIcon, CodeIcon, DocumentAddIcon, GlobeIcon } from '@heroicons/react/outline';
🧰 Tools
🪛 ESLint

[error] 1-6: Replace ⏎··BadgeCheckIcon,⏎··CodeIcon,⏎··DocumentAddIcon,⏎··GlobeIcon⏎ with ·BadgeCheckIcon,·CodeIcon,·DocumentAddIcon,·GlobeIcon·

(prettier/prettier)

🪛 GitHub Actions: PR testing - if Node project

[error] 1-1: Prettier: Replace ⏎··BadgeCheckIcon,⏎··CodeIcon,⏎····DocumentAddIcon,⏎··GlobeIcon⏎ with ·BadgeCheckIcon,·CodeIcon,·DocumentAddIcon,·GlobeIcon·.

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ea53d37 and 2eb3764.

📒 Files selected for processing (2)
  • components/GeneratorInstallation.tsx (2 hunks)
  • pages/tools/cli.tsx (7 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • components/GeneratorInstallation.tsx
🧰 Additional context used
🪛 ESLint
pages/tools/cli.tsx

[error] 1-6: Replace ⏎··BadgeCheckIcon,⏎··CodeIcon,⏎··DocumentAddIcon,⏎··GlobeIcon⏎ with ·BadgeCheckIcon,·CodeIcon,·DocumentAddIcon,·GlobeIcon·

(prettier/prettier)


[error] 37-39: Replace ⏎··········asyncapi·start·studio⏎········ with asyncapi·start·studio

(prettier/prettier)


[error] 77-78: Delete ⏎···

(prettier/prettier)


[error] 107-111: Replace ⏎··············level={HeadingLevel.h1}⏎··············typeStyle={HeadingTypeStyle.lg}⏎··············className='text-center'⏎············ with ·level={HeadingLevel.h1}·typeStyle={HeadingTypeStyle.lg}·className='text-center'

(prettier/prettier)


[error] 112-114: Replace ⏎················Interact·with·AsyncAPI·from·the·comfort·of·your·CLI⏎·············· with Interact·with·AsyncAPI·from·the·comfort·of·your·CLI

(prettier/prettier)


[error] 117-119: Replace ⏎··············{description}⏎············ with {description}

(prettier/prettier)


[error] 124-127: Replace ⏎················level={HeadingLevel.h2}⏎················typeStyle={HeadingTypeStyle.mdSemibold}⏎·············· with ·level={HeadingLevel.h2}·typeStyle={HeadingTypeStyle.mdSemibold}

(prettier/prettier)


[error] 176-178: Replace ⏎························{·language:·'npm',·code:·'asyncapi·new'·}⏎······················ with {·language:·'npm',·code:·'asyncapi·new'·}

(prettier/prettier)

🪛 GitHub Actions: PR testing - if Node project
pages/tools/cli.tsx

[error] 1-1: Prettier: Replace ⏎··BadgeCheckIcon,⏎··CodeIcon,⏎····DocumentAddIcon,⏎··GlobeIcon⏎ with ·BadgeCheckIcon,·CodeIcon,·DocumentAddIcon,·GlobeIcon·.


[error] 37-37: Prettier: Replace ⏎··········asyncapi·start·studio⏎········ with asyncapi·start·studio.


[error] 77-77: Prettier: Delete ⏎···.


[error] 107-107: Prettier: Replace ⏎··············level={HeadingLevel.h1}⏎··············typeStyle={HeadingTypeStyle.lg}⏎··············className='text-center'⏎············ with ·level={HeadingLevel.h1}·typeStyle={HeadingTypeStyle.lg}·className='text-center'.


[error] 112-112: Prettier: Replace ⏎················Interact·with·AsyncAPI·from·the·comfort·of·your·CLI⏎·············· with Interact·with·AsyncAPI·from·the·comfort·of·your·CLI.


[error] 117-117: Prettier: Replace ⏎··············{description}⏎············ with {description}.


[error] 124-124: Prettier: Replace ⏎················level={HeadingLevel.h2}⏎················typeStyle={HeadingTypeStyle.mdSemibold}⏎·············· with ·level={HeadingLevel.h2}·typeStyle={HeadingTypeStyle.mdSemibold}.


[error] 176-176: Prettier: Replace ⏎························{·language:·'npm',·code:·'asyncapi·new'·}⏎······················ with {·language:·'npm',·code:·'asyncapi·new'·}.

🔇 Additional comments (3)
pages/tools/cli.tsx (3)

170-171: Updated CLI description reflects expanded capabilities.

The description accurately reflects the expanded capabilities of the AsyncAPI CLI, which now supports creating projects, specification files, and templates. This aligns with the PR objectives to update CLI details.


82-86: Updated CLI installation commands accurately reflect the latest methods.

The installation commands for various platforms (PKG, Windows, Linux) have been updated to accurately reflect the current installation methods. This aligns with the PR objectives to update the CLI installation details.

Also applies to: 89-93, 96-100


150-154: Updated CLI installation commands for all platforms.

The installation commands for all platforms (npm, brew, pkg, windows, linux) have been updated to reflect the current installation methods. This aligns with the PR objectives to update the CLI installation details.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 5

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2eb3764 and ac033d4.

📒 Files selected for processing (1)
  • pages/tools/cli.tsx (5 hunks)
🧰 Additional context used
🪛 ESLint
pages/tools/cli.tsx

[error] 17-17: Insert ⏎·····

(prettier/prettier)


[error] 22-22: Insert ⏎·····

(prettier/prettier)


[error] 38-38: Insert ⏎·····

(prettier/prettier)


[error] 49-49: Replace ·text='View·on·Github'·className='mt-2·block·w-full·sm:w-auto·md:mt-0·md:inline-block'·href='https://www.github.com/asyncapi/cli' with ⏎········text='View·on·Github'⏎········className='mt-2·block·w-full·sm:w-auto·md:mt-0·md:inline-block'⏎········href='https://www.github.com/asyncapi/cli'⏎·····

(prettier/prettier)


[error] 50-50: Replace ·text='View·Docs'·href='/docs/tools/cli'·className='mt-2·block·w-full·sm:w-auto·md:ml-2·md:mt-0·md:inline-block' with ⏎········text='View·Docs'⏎········href='/docs/tools/cli'⏎········className='mt-2·block·w-full·sm:w-auto·md:ml-2·md:mt-0·md:inline-block'⏎·····

(prettier/prettier)


[error] 97-97: Replace Installation·&·Usage with ⏎················Installation·&·Usage⏎··············

(prettier/prettier)


[error] 98-98: Replace Start·using·AsyncAPI·CLI·within·seconds·by·selecting·one·of·our·commands·to·get·started. with ⏎················Start·using·AsyncAPI·CLI·within·seconds·by·selecting·one·of·our·commands·to·get·started.⏎··············

(prettier/prettier)


[error] 104-104: Replace ·level={HeadingLevel.h3}·typeStyle={HeadingTypeStyle.mdSemibold}·className='mb-4·text-center·md:text-left'>Installing with ⏎··················level={HeadingLevel.h3}⏎··················typeStyle={HeadingTypeStyle.mdSemibold}⏎··················className='mb-4·text-center·md:text-left'⏎················>⏎··················Installing⏎················

(prettier/prettier)


[error] 120-120: Replace ·level={HeadingLevel.h3}·typeStyle={HeadingTypeStyle.mdSemibold}·className='mb-4·text-center·md:text-left'>Example with ⏎··················level={HeadingLevel.h3}⏎··················typeStyle={HeadingTypeStyle.mdSemibold}⏎··················className='mb-4·text-center·md:text-left'⏎················>⏎··················Example⏎················

(prettier/prettier)


[error] 126-126: Replace ·language='generator-cli'·textSizeClassName='text-sm'·className='shadow-lg'·codeBlocks={[{·language:·'npm',·code:·'asyncapi·new'·}]} with ⏎······················language='generator-cli'⏎······················textSizeClassName='text-sm'⏎······················className='shadow-lg'⏎······················codeBlocks={[{·language:·'npm',·code:·'asyncapi·new'·}]}⏎···················

(prettier/prettier)


[error] 136-136: Replace Features with ⏎··················Features⏎················

(prettier/prettier)


[error] 155-155: Replace <Description·/> with ⏎··························<Description·/>⏎························

(prettier/prettier)

🪛 GitHub Actions: PR testing - if Node project
pages/tools/cli.tsx

[error] 17-17: Insert ⏎····· prettier/prettier


[error] 22-22: Insert ⏎····· prettier/prettier


[error] 38-38: Insert ⏎····· prettier/prettier


[error] 49-49: Replace ·text='View·on·Github'·className='mt-2·block·w-full·sm:w-auto·md:mt-0·md:inline-block'·href='https://www.github.com/asyncapi/cli' with ⏎········text='View·on·Github'⏎········className='mt-2·block·w-full·sm:w-auto·md:mt-0·md:inline-block'⏎········href='https://www.github.com/asyncapi/cli'⏎····· prettier/prettier


[error] 50-50: Replace ·text='View·Docs'·href='/docs/tools/cli'·className='mt-2·block·w-full·sm:w-auto·md:ml-2·md:mt-0·md:inline-block' with ⏎········text='View·Docs'⏎········href='/docs/tools/cli'⏎········className='mt-2·block·w-full·sm:w-auto·md:ml-2·md:mt-0·md:inline-block'⏎····· prettier/prettier


[error] 97-97: Replace Installation·&·Usage with ⏎················Installation·&·Usage⏎·············· prettier/prettier


[error] 98-98: Replace Start·using·AsyncAPI·CLI·within·seconds·by·selecting·one·of·our·commands·to·get·started. with ⏎················Start·using·AsyncAPI·CLI·within·seconds·by·selecting·one·of·our·commands·to·get·started.⏎·············· prettier/prettier


[error] 104-104: Replace ·level={HeadingLevel.h3}·typeStyle={HeadingTypeStyle.mdSemibold}·className='mb-4·text-center·md:text-left'>Installing with ⏎··················level={HeadingLevel.h3}⏎··················typeStyle={HeadingTypeStyle.mdSemibold}⏎··················className='mb-4·text-center·md:text-left'⏎················>⏎··················Installing⏎················ prettier/prettier


[error] 120-120: Replace ·level={HeadingLevel.h3}·typeStyle={HeadingTypeStyle.mdSemibold}·className='mb-4·text-center·md:text-left'>Example with ⏎··················level={HeadingLevel.h3}⏎··················typeStyle={HeadingTypeStyle.mdSemibold}⏎··················className='mb-4·text-center·md:text-left'⏎················>⏎··················Example⏎················ prettier/prettier


[error] 126-126: Replace ·language='generator-cli'·textSizeClassName='text-sm'·className='shadow-lg'·codeBlocks={[{·language:·'npm',·code:·'asyncapi·new'·}]} with ⏎······················language='generator-cli'⏎······················textSizeClassName='text-sm'⏎······················className='shadow-lg'⏎······················codeBlocks={[{·language:·'npm',·code:·'asyncapi·new'·}]}⏎··················· prettier/prettier


[error] 136-136: Replace Features with ⏎··················Features⏎················ prettier/prettier


[error] 155-155: Replace <Description·/> with ⏎··························<Description·/>⏎························ prettier/prettier

🔇 Additional comments (3)
pages/tools/cli.tsx (3)

124-124: Updated CLI tool description to include expanded functionality.

The description has been updated to reflect the broader capabilities of the AsyncAPI CLI tool, which now supports creating entire projects and templates, not just specification files.

This change aligns with the PR objectives of updating outdated CLI information, providing users with a more accurate understanding of the tool's capabilities.


63-66: Improved template string formatting for installation instructions.

The setup instructions for different platforms have been updated to use template literals for improved readability. This change makes the code easier to maintain and understand.

The updated multi-line template strings provide clearer installation instructions for different platforms, enhancing the documentation's usability.

Also applies to: 70-74, 77-80


30-30: Fixed code element formatting.

The code tag formatting has been improved for better readability.

This change ensures the code element appears correctly in the UI and meets the project's coding style guidelines.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🔭 Outside diff range comments (1)
pages/tools/cli.tsx (1)

98-227: ⚠️ Potential issue

Fix JSX attributes and formatting throughout the component.

There are numerous JSX formatting issues causing pipeline failures. These include:

  • Double quotes instead of single quotes for JSX attributes
  • Inconsistent multi-line vs. single-line component formatting
  • Spacing and indentation issues

Run the project's linter to fix all formatting issues or apply the changes manually by:

  1. Replacing all double quotes with single quotes in JSX attributes
  2. Applying consistent component formatting according to the project's style guide
  3. Fixing spacing and indentation

The pipeline failures indicate over 100 formatting issues that need to be addressed.

🧰 Tools
🪛 ESLint

[error] 98-98: Replace "CLI" with 'CLI'

(prettier/prettier)


[error] 98-98: Unexpected usage of doublequote.

(jsx-quotes)


[error] 99-99: Replace "overflow-hidden·py-12" with 'overflow-hidden·py-12'

(prettier/prettier)


[error] 99-99: Unexpected usage of doublequote.

(jsx-quotes)


[error] 100-100: Replace "relative·mx-auto·max-w-xl·px-4·sm:px-6·lg:max-w-screen-xl·lg:px-8" with 'relative·mx-auto·max-w-xl·px-4·sm:px-6·lg:max-w-screen-xl·lg:px-8'

(prettier/prettier)


[error] 100-100: Unexpected usage of doublequote.

(jsx-quotes)


[error] 101-101: Replace "relative" with 'relative'

(prettier/prettier)


[error] 101-101: Unexpected usage of doublequote.

(jsx-quotes)


[error] 102-106: Replace ⏎··············level={HeadingLevel.h1}⏎··············typeStyle={HeadingTypeStyle.lg}⏎··············className="text-center"⏎············ with ·level={HeadingLevel.h1}·typeStyle={HeadingTypeStyle.lg}·className='text-center'

(prettier/prettier)


[error] 105-105: Unexpected usage of doublequote.

(jsx-quotes)


[error] 107-109: Replace "hidden·md:block">⏎················Interact·with·AsyncAPI·from·the·comfort·of·your·CLI⏎·············· with 'hidden·md:block'>Interact·with·AsyncAPI·from·the·comfort·of·your·CLI

(prettier/prettier)


[error] 107-107: Unexpected usage of doublequote.

(jsx-quotes)


[error] 110-110: Replace "md:hidden" with 'md:hidden'

(prettier/prettier)


[error] 110-110: Unexpected usage of doublequote.

(jsx-quotes)


[error] 112-114: Replace "mx-auto·mt-4·max-w-3xl·text-center">⏎··············{description}⏎············ with 'mx-auto·mt-4·max-w-3xl·text-center'>{description}

(prettier/prettier)


[error] 112-112: Unexpected usage of doublequote.

(jsx-quotes)


[error] 117-117: Replace "relative·mt-12·lg:mt-20·lg:grid·lg:grid-cols-2·lg:items-center·lg:gap-8" with 'relative·mt-12·lg:mt-20·lg:grid·lg:grid-cols-2·lg:items-center·lg:gap-8'

(prettier/prettier)


[error] 117-117: Unexpected usage of doublequote.

(jsx-quotes)


[error] 118-118: Replace "relative·lg:mt-8" with 'relative·lg:mt-8'

(prettier/prettier)


[error] 118-118: Unexpected usage of doublequote.

(jsx-quotes)


[error] 119-122: Replace ⏎················level={HeadingLevel.h2}⏎················typeStyle={HeadingTypeStyle.mdSemibold}⏎·············· with ·level={HeadingLevel.h2}·typeStyle={HeadingTypeStyle.mdSemibold}

(prettier/prettier)


[error] 125-125: Replace "mt-3·lg:pr-4" with 'mt-3·lg:pr-4'

(prettier/prettier)


[error] 125-125: Unexpected usage of doublequote.

(jsx-quotes)


[error] 126-127: Delete ⏎···············

(prettier/prettier)


[error] 132-132: Replace "relative·mx-auto·mt-8·w-full·space-y-10" with 'relative·mx-auto·mt-8·w-full·space-y-10'

(prettier/prettier)


[error] 132-132: Unexpected usage of doublequote.

(jsx-quotes)


[error] 137-137: Replace "mb-4·text-center·md:text-left" with 'mb-4·text-center·md:text-left'

(prettier/prettier)


[error] 137-137: Unexpected usage of doublequote.

(jsx-quotes)


[error] 142-142: Replace "generator-cli" with 'generator-cli'

(prettier/prettier)


[error] 142-142: Unexpected usage of doublequote.

(jsx-quotes)


[error] 143-143: Replace "text-sm" with 'text-sm'

(prettier/prettier)


[error] 143-143: Unexpected usage of doublequote.

(jsx-quotes)


[error] 144-144: Replace "shadow-lg" with 'shadow-lg'

(prettier/prettier)


[error] 144-144: Unexpected usage of doublequote.

(jsx-quotes)


[error] 150-150: Delete ,

(prettier/prettier)


[error] 150-150: Unexpected trailing comma.

(comma-dangle)


[error] 159-159: Replace "mb-4·text-center·md:text-left" with 'mb-4·text-center·md:text-left'

(prettier/prettier)


[error] 159-159: Unexpected usage of doublequote.

(jsx-quotes)


[error] 163-163: Replace "space-y-5" with 'space-y-5'

(prettier/prettier)


[error] 163-163: Unexpected usage of doublequote.

(jsx-quotes)


[error] 165-168: Replace ⏎······················typeStyle={ParagraphTypeStyle.md}⏎······················className="mb-4"⏎···················· with ·typeStyle={ParagraphTypeStyle.md}·className='mb-4'

(prettier/prettier)


[error] 167-167: Unexpected usage of doublequote.

(jsx-quotes)


[error] 169-170: Delete ⏎·····················

(prettier/prettier)


[error] 173-173: Replace "generator-cli" with 'generator-cli'

(prettier/prettier)


[error] 173-173: Unexpected usage of doublequote.

(jsx-quotes)


[error] 174-174: Replace "text-sm" with 'text-sm'

(prettier/prettier)


[error] 174-174: Unexpected usage of doublequote.

(jsx-quotes)


[error] 175-175: Replace "shadow-lg" with 'shadow-lg'

(prettier/prettier)


[error] 175-175: Unexpected usage of doublequote.

(jsx-quotes)


[error] 184-184: Replace "mt-20·bg-white·lg:py-12" with 'mt-20·bg-white·lg:py-12'

(prettier/prettier)


[error] 184-184: Unexpected usage of doublequote.

(jsx-quotes)


[error] 185-185: Replace "mx-auto·max-w-7xl·px-4·sm:px-6·lg:px-8" with 'mx-auto·max-w-7xl·px-4·sm:px-6·lg:px-8'

(prettier/prettier)


[error] 185-185: Unexpected usage of doublequote.

(jsx-quotes)


[error] 186-186: Replace "mb-16·text-center" with 'mb-16·text-center'

(prettier/prettier)


[error] 186-186: Unexpected usage of doublequote.

(jsx-quotes)


[error] 187-190: Replace ⏎··················level={HeadingLevel.h2}⏎··················typeStyle={HeadingTypeStyle.mdSemibold}⏎················ with ·level={HeadingLevel.h2}·typeStyle={HeadingTypeStyle.mdSemibold}

(prettier/prettier)


[error] 193-193: Replace "mx-auto·mt-3·max-w-lg·text-center·lg:pr-4" with 'mx-auto·mt-3·max-w-lg·text-center·lg:pr-4'

(prettier/prettier)


[error] 193-193: Unexpected usage of doublequote.

(jsx-quotes)


[error] 194-195: Delete ⏎·················

(prettier/prettier)


[error] 199-199: Replace "mt-10" with 'mt-10'

(prettier/prettier)


[error] 199-199: Unexpected usage of doublequote.

(jsx-quotes)


[error] 200-200: Replace "md:grid·lg:grid-cols-2·lg:space-y-0" with 'md:grid·lg:grid-cols-2·lg:space-y-0'

(prettier/prettier)


[error] 200-200: Unexpected usage of doublequote.

(jsx-quotes)


[error] 202-202: Replace "relative·mb-10" with 'relative·mb-10'

(prettier/prettier)


[error] 202-202: Unexpected usage of doublequote.

(jsx-quotes)


[error] 204-204: Replace "absolute·flex·size-12·items-center·justify-center·rounded-md·border·border-gray-900·bg-secondary-100·text-gray-900" with 'absolute·flex·size-12·items-center·justify-center·rounded-md·border·border-gray-900·bg-secondary-100·text-gray-900'

(prettier/prettier)


[error] 204-204: Unexpected usage of doublequote.

(jsx-quotes)


[error] 205-205: Replace "size-6"·aria-hidden="true" with 'size-6'·aria-hidden='true'

(prettier/prettier)


[error] 205-205: Unexpected usage of doublequote.

(jsx-quotes)


[error] 205-205: Unexpected usage of doublequote.

(jsx-quotes)


[error] 207-211: Replace ⏎··························level={HeadingLevel.h4}⏎··························typeStyle={HeadingTypeStyle.smSemibold}⏎··························className="ml-16"⏎························ with ·level={HeadingLevel.h4}·typeStyle={HeadingTypeStyle.smSemibold}·className='ml-16'

(prettier/prettier)


[error] 210-210: Unexpected usage of doublequote.

(jsx-quotes)


[error] 215-215: Replace "ml-16·mt-2·pr-10" with 'ml-16·mt-2·pr-10'

(prettier/prettier)


[error] 215-215: Unexpected usage of doublequote.

(jsx-quotes)


[error] 227-227: Replace "mt-16·text-center" with 'mt-16·text-center'

(prettier/prettier)


[error] 227-227: Unexpected usage of doublequote.

(jsx-quotes)

🪛 GitHub Actions: PR testing - if Node project

[error] 98-98: Replace "CLI" with 'CLI' prettier/prettier


[error] 98-98: Unexpected usage of doublequote. jsx-quotes


[error] 99-99: Replace "overflow-hidden·py-12" with 'overflow-hidden·py-12' prettier/prettier


[error] 99-99: Unexpected usage of doublequote. jsx-quotes


[error] 100-100: Replace "relative·mx-auto·max-w-xl·px-4·sm:px-6·lg:max-w-screen-xl·lg:px-8" with 'relative·mx-auto·max-w-xl·px-4·sm:px-6·lg:max-w-screen-xl·lg:px-8' prettier/prettier


[error] 100-100: Unexpected usage of doublequote. jsx-quotes


[error] 101-101: Replace "relative" with 'relative' prettier/prettier


[error] 101-101: Unexpected usage of doublequote. jsx-quotes


[error] 102-102: Replace ⏎··············level={HeadingLevel.h1}⏎··············typeStyle={HeadingTypeStyle.lg}⏎············ with ·level={HeadingLevel.h1}·typeStyle={HeadingTypeStyle.lg}·className='text-center' prettier/prettier


[error] 105-105: Unexpected usage of doublequote. jsx-quotes


[error] 107-107: Replace "hidden·md:block">⏎················Interact·with·AsyncAPI·from·the·comfort·of·your·CLI⏎·············· with 'hidden·md:block'>Interact·with·AsyncAPI·from·the·comfort·of·your·CLI prettier/prettier


[error] 107-107: Unexpected usage of doublequote. jsx-quotes


[error] 110-110: Replace "md:hidden" with 'md:hidden' prettier/prettier


[error] 110-110: Unexpected usage of doublequote. jsx-quotes


[error] 112-112: Replace "mx-auto·mt-4·max-w-3xl·text-center">⏎··············{description}⏎············ with 'mx-auto·mt-4·max-w-3xl·text-center'>{description} prettier/prettier


[error] 112-112: Unexpected usage of doublequote. jsx-quotes


[error] 117-117: Replace "relative·mt-12·lg:mt-20·lg:grid·lg:grid-cols-2·lg:items-center·lg:gap-8" with 'relative·mt-12·lg:mt-20·lg:grid·lg:grid-cols-2·lg:items-center·lg:gap-8' prettier/prettier


[error] 117-117: Unexpected usage of doublequote. jsx-quotes


[error] 118-118: Replace "relative·lg:mt-8" with 'relative·lg:mt-8' prettier/prettier


[error] 118-118: Unexpected usage of doublequote. jsx-quotes


[error] 119-119: Replace ⏎················level={HeadingLevel.h2}⏎················typeStyle={HeadingTypeStyle.mdSemibold}⏎············ with ·level={HeadingLevel.h2}·typeStyle={HeadingTypeStyle.mdSemibold} prettier/prettier


[error] 125-125: Replace "mt-3·lg:pr-4" with 'mt-3·lg:pr-4' prettier/prettier


[error] 125-125: Unexpected usage of doublequote. jsx-quotes


[error] 126-126: Delete ⏎··············· prettier/prettier


[error] 132-132: Replace "relative·mx-auto·mt-8·w-full·space-y-10" with 'relative·mx-auto·mt-8·w-full·space-y-10' prettier/prettier


[error] 132-132: Unexpected usage of doublequote. jsx-quotes


[error] 137-137: Replace "mb-4·text-center·md:text-left" with 'mb-4·text-center·md:text-left' prettier/prettier


[error] 137-137: Unexpected usage of doublequote. jsx-quotes


[error] 142-142: Replace "generator-cli" with 'generator-cli' prettier/prettier


[error] 142-142: Unexpected usage of doublequote. jsx-quotes


[error] 143-143: Replace "text-sm" with 'text-sm' prettier/prettier


[error] 143-143: Unexpected usage of doublequote. jsx-quotes


[error] 144-144: Replace "shadow-lg" with 'shadow-lg' prettier/prettier


[error] 144-144: Unexpected usage of doublequote. jsx-quotes


[error] 150-150: Delete , prettier/prettier


[error] 150-150: Unexpected trailing comma. comma-dangle


[error] 159-159: Replace "mb-4·text-center·md:text-left" with 'mb-4·text-center·md:text-left' prettier/prettier


[error] 159-159: Unexpected usage of doublequote. jsx-quotes


[error] 163-163: Replace "space-y-5" with 'space-y-5' prettier/prettier


[error] 163-163: Unexpected usage of doublequote. jsx-quotes


[error] 165-165: Replace ⏎······················typeStyle={ParagraphTypeStyle.md}⏎······················className="mb-4"⏎···················· with ·typeStyle={ParagraphTypeStyle.md}·className='mb-4' prettier/prettier


[error] 167-167: Unexpected usage of doublequote. jsx-quotes


[error] 169-169: Delete ⏎····················· prettier/prettier


[error] 173-173: Replace "generator-cli" with 'generator-cli' prettier/prettier


[error] 173-173: Unexpected usage of doublequote. jsx-quotes


[error] 174-174: Replace "text-sm" with 'text-sm' prettier/prettier


[error] 174-174: Unexpected usage of doublequote. jsx-quotes


[error] 175-175: Replace "shadow-lg" with 'shadow-lg' prettier/prettier


[error] 175-175: Unexpected usage of doublequote. jsx-quotes


[error] 184-184: Replace "mt-20·bg-white·lg:py-12" with 'mt-20·bg-white·lg:py-12' prettier/prettier


[error] 184-184: Unexpected usage of doublequote. jsx-quotes


[error] 185-185: Replace "mx-auto·max-w-7xl·px-4·sm:px-6·lg:px-8" with 'mx-auto·max-w-7xl·px-4·sm:px-6·lg:px-8' prettier/prettier


[error] 185-185: Unexpected usage of doublequote. jsx-quotes


[error] 186-186: Replace "mb-16·text-center" with 'mb-16·text-center' prettier/prettier


[error] 186-186: Unexpected usage of doublequote. jsx-quotes


[error] 187-187: Replace ⏎··················level={HeadingLevel.h2}⏎··················typeStyle={HeadingTypeStyle.mdSemibold}⏎················ with ·level={HeadingLevel.h2}·typeStyle={HeadingTypeStyle.mdSemibold} prettier/prettier


[error] 193-193: Replace "mx-auto·mt-3·max-w-lg·text-center·lg:pr-4" with 'mx-auto·mt-3·max-w-lg·text-center·lg:pr-4' prettier/prettier


[error] 193-193: Unexpected usage of doublequote. jsx-quotes


[error] 194-194: Delete ⏎················· prettier/prettier


[error] 199-199: Replace "mt-10" with 'mt-10' prettier/prettier


[error] 199-199: Unexpected usage of doublequote. jsx-quotes


[error] 200-200: Replace "md:grid·lg:grid-cols-2·lg:space-y-0" with 'md:grid·lg:grid-cols-2·lg:space-y-0' prettier/prettier


[error] 200-200: Unexpected usage of doublequote. jsx-quotes


[error] 202-202: Replace "relative·mb-10" with 'relative·mb-10' prettier/prettier


[error] 202-202: Unexpected usage of doublequote. jsx-quotes


[error] 204-204: Replace "absolute·flex·size-12·items-center·justify-center·rounded-md·border·border-gray-900·bg-secondary-100·text-gray-900" with 'absolute·flex·size-12·items-center·justify-center·rounded-md·border·border-gray-900·bg-secondary-100·text-gray-900' prettier/prettier


[error] 204-204: Unexpected usage of doublequote. jsx-quotes


[error] 205-205: Replace "size-6"·aria-hidden="true" with 'size-6'·aria-hidden='true' prettier/prettier


[error] 205-205: Unexpected usage of doublequote. jsx-quotes


[error] 205-205: Unexpected usage of doublequote. jsx-quotes


[error] 207-207: Replace ⏎··························level={HeadingLevel.h4}⏎··························typeStyle={HeadingTypeStyle.smSemibold}⏎··························className="ml-16"⏎························ with ·level={HeadingLevel.h4}·typeStyle={HeadingTypeStyle.smSemibold}·className='ml-16' prettier/prettier


[error] 210-210: Unexpected usage of doublequote. jsx-quotes


[error] 215-215: Replace "ml-16·mt-2·pr-10" with 'ml-16·mt-2·pr-10' prettier/prettier


[error] 215-215: Unexpected usage of doublequote. jsx-quotes


[error] 227-227: Replace "mt-16·text-center" with 'mt-16·text-center' prettier/prettier


[error] 227-227: Unexpected usage of doublequote. jsx-quotes

♻️ Duplicate comments (2)
pages/tools/cli.tsx (2)

72-73: ⚠️ Potential issue

Fix variable assignment formatting.

The multi-line variable assignment doesn't match the project's style rules.

Apply this diff to fix the formatting:

-  const description =
-    'Create, validate, and explore your AsyncAPI files with our CLI tool.';
+  const description = 'Create, validate, and explore your AsyncAPI files with our CLI tool.';
🧰 Tools
🪛 ESLint

[error] 72-73: Delete ⏎···

(prettier/prettier)

🪛 GitHub Actions: PR testing - if Node project

[error] 72-72: Delete ⏎··· prettier/prettier


32-34: ⚠️ Potential issue

Fix JSX quote style and element formatting.

The code element is using double quotes instead of single quotes for JSX attributes, and the multi-line format is causing pipeline failures.

Apply this diff to fix the formatting issues:

-        <code className="rounded bg-gray-200 px-1 py-0.5 font-mono text-sm text-gray-900">
-          asyncapi start studio
-        </code>
+        <code className='rounded bg-gray-200 px-1 py-0.5 font-mono text-sm text-gray-900'>asyncapi start studio</code>
🧰 Tools
🪛 ESLint

[error] 32-34: Replace "rounded·bg-gray-200·px-1·py-0.5·font-mono·text-sm·text-gray-900">⏎··········asyncapi·start·studio⏎········ with 'rounded·bg-gray-200·px-1·py-0.5·font-mono·text-sm·text-gray-900'>asyncapi·start·studio

(prettier/prettier)


[error] 32-32: Unexpected usage of doublequote.

(jsx-quotes)

🪛 GitHub Actions: PR testing - if Node project

[error] 32-32: Replace "rounded·bg-gray-200·px-1·py-0.5·font-mono·text-sm·text-gray-900">⏎··········asyncapi·start·studio⏎········ with 'rounded·bg-gray-200·px-1·py-0.5·font-mono·text-sm·text-gray-900'>asyncapi·start·studio prettier/prettier


[error] 32-32: Unexpected usage of doublequote. jsx-quotes

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between ac033d4 and d92a91f.

📒 Files selected for processing (1)
  • pages/tools/cli.tsx (4 hunks)
🧰 Additional context used
🪛 ESLint
pages/tools/cli.tsx

[error] 19-19: Delete ,

(prettier/prettier)


[error] 19-19: Unexpected trailing comma.

(comma-dangle)


[error] 25-25: Delete ,

(prettier/prettier)


[error] 25-25: Unexpected trailing comma.

(comma-dangle)


[error] 32-34: Replace "rounded·bg-gray-200·px-1·py-0.5·font-mono·text-sm·text-gray-900">⏎··········asyncapi·start·studio⏎········ with 'rounded·bg-gray-200·px-1·py-0.5·font-mono·text-sm·text-gray-900'>asyncapi·start·studio

(prettier/prettier)


[error] 32-32: Unexpected usage of doublequote.

(jsx-quotes)


[error] 38-38: Delete ,

(prettier/prettier)


[error] 38-38: Unexpected trailing comma.

(comma-dangle)


[error] 44-44: Delete ,

(prettier/prettier)


[error] 44-44: Unexpected trailing comma.

(comma-dangle)


[error] 45-45: Delete ,

(prettier/prettier)


[error] 45-45: Unexpected trailing comma.

(comma-dangle)


[error] 53-53: Replace "mt-8" with 'mt-8'

(prettier/prettier)


[error] 53-53: Unexpected usage of doublequote.

(jsx-quotes)


[error] 55-55: Replace "View·on·Github" with 'View·on·Github'

(prettier/prettier)


[error] 55-55: Unexpected usage of doublequote.

(jsx-quotes)


[error] 56-56: Replace "mt-2·block·w-full·sm:w-auto·md:mt-0·md:inline-block" with 'mt-2·block·w-full·sm:w-auto·md:mt-0·md:inline-block'

(prettier/prettier)


[error] 56-56: Unexpected usage of doublequote.

(jsx-quotes)


[error] 57-57: Replace "https://www.github.com/asyncapi/cli" with 'https://www.github.com/asyncapi/cli'

(prettier/prettier)


[error] 57-57: Unexpected usage of doublequote.

(jsx-quotes)


[error] 60-60: Replace "View·Docs" with 'View·Docs'

(prettier/prettier)


[error] 60-60: Unexpected usage of doublequote.

(jsx-quotes)


[error] 61-61: Replace "/docs/tools/cli" with '/docs/tools/cli'

(prettier/prettier)


[error] 61-61: Unexpected usage of doublequote.

(jsx-quotes)


[error] 62-62: Replace "mt-2·block·w-full·sm:w-auto·md:ml-2·md:mt-0·md:inline-block" with 'mt-2·block·w-full·sm:w-auto·md:ml-2·md:mt-0·md:inline-block'

(prettier/prettier)


[error] 62-62: Unexpected usage of doublequote.

(jsx-quotes)


[error] 72-73: Delete ⏎···

(prettier/prettier)


[error] 98-98: Replace "CLI" with 'CLI'

(prettier/prettier)


[error] 98-98: Unexpected usage of doublequote.

(jsx-quotes)


[error] 99-99: Replace "overflow-hidden·py-12" with 'overflow-hidden·py-12'

(prettier/prettier)


[error] 99-99: Unexpected usage of doublequote.

(jsx-quotes)


[error] 100-100: Replace "relative·mx-auto·max-w-xl·px-4·sm:px-6·lg:max-w-screen-xl·lg:px-8" with 'relative·mx-auto·max-w-xl·px-4·sm:px-6·lg:max-w-screen-xl·lg:px-8'

(prettier/prettier)


[error] 100-100: Unexpected usage of doublequote.

(jsx-quotes)


[error] 101-101: Replace "relative" with 'relative'

(prettier/prettier)


[error] 101-101: Unexpected usage of doublequote.

(jsx-quotes)


[error] 102-106: Replace ⏎··············level={HeadingLevel.h1}⏎··············typeStyle={HeadingTypeStyle.lg}⏎··············className="text-center"⏎············ with ·level={HeadingLevel.h1}·typeStyle={HeadingTypeStyle.lg}·className='text-center'

(prettier/prettier)


[error] 105-105: Unexpected usage of doublequote.

(jsx-quotes)


[error] 107-109: Replace "hidden·md:block">⏎················Interact·with·AsyncAPI·from·the·comfort·of·your·CLI⏎·············· with 'hidden·md:block'>Interact·with·AsyncAPI·from·the·comfort·of·your·CLI

(prettier/prettier)


[error] 107-107: Unexpected usage of doublequote.

(jsx-quotes)


[error] 110-110: Replace "md:hidden" with 'md:hidden'

(prettier/prettier)


[error] 110-110: Unexpected usage of doublequote.

(jsx-quotes)


[error] 112-114: Replace "mx-auto·mt-4·max-w-3xl·text-center">⏎··············{description}⏎············ with 'mx-auto·mt-4·max-w-3xl·text-center'>{description}

(prettier/prettier)


[error] 112-112: Unexpected usage of doublequote.

(jsx-quotes)


[error] 117-117: Replace "relative·mt-12·lg:mt-20·lg:grid·lg:grid-cols-2·lg:items-center·lg:gap-8" with 'relative·mt-12·lg:mt-20·lg:grid·lg:grid-cols-2·lg:items-center·lg:gap-8'

(prettier/prettier)


[error] 117-117: Unexpected usage of doublequote.

(jsx-quotes)


[error] 118-118: Replace "relative·lg:mt-8" with 'relative·lg:mt-8'

(prettier/prettier)


[error] 118-118: Unexpected usage of doublequote.

(jsx-quotes)


[error] 119-122: Replace ⏎················level={HeadingLevel.h2}⏎················typeStyle={HeadingTypeStyle.mdSemibold}⏎·············· with ·level={HeadingLevel.h2}·typeStyle={HeadingTypeStyle.mdSemibold}

(prettier/prettier)


[error] 125-125: Replace "mt-3·lg:pr-4" with 'mt-3·lg:pr-4'

(prettier/prettier)


[error] 125-125: Unexpected usage of doublequote.

(jsx-quotes)


[error] 126-127: Delete ⏎···············

(prettier/prettier)


[error] 132-132: Replace "relative·mx-auto·mt-8·w-full·space-y-10" with 'relative·mx-auto·mt-8·w-full·space-y-10'

(prettier/prettier)


[error] 132-132: Unexpected usage of doublequote.

(jsx-quotes)


[error] 137-137: Replace "mb-4·text-center·md:text-left" with 'mb-4·text-center·md:text-left'

(prettier/prettier)


[error] 137-137: Unexpected usage of doublequote.

(jsx-quotes)


[error] 142-142: Replace "generator-cli" with 'generator-cli'

(prettier/prettier)


[error] 142-142: Unexpected usage of doublequote.

(jsx-quotes)


[error] 143-143: Replace "text-sm" with 'text-sm'

(prettier/prettier)


[error] 143-143: Unexpected usage of doublequote.

(jsx-quotes)


[error] 144-144: Replace "shadow-lg" with 'shadow-lg'

(prettier/prettier)


[error] 144-144: Unexpected usage of doublequote.

(jsx-quotes)


[error] 150-150: Delete ,

(prettier/prettier)


[error] 150-150: Unexpected trailing comma.

(comma-dangle)


[error] 159-159: Replace "mb-4·text-center·md:text-left" with 'mb-4·text-center·md:text-left'

(prettier/prettier)


[error] 159-159: Unexpected usage of doublequote.

(jsx-quotes)


[error] 163-163: Replace "space-y-5" with 'space-y-5'

(prettier/prettier)


[error] 163-163: Unexpected usage of doublequote.

(jsx-quotes)


[error] 165-168: Replace ⏎······················typeStyle={ParagraphTypeStyle.md}⏎······················className="mb-4"⏎···················· with ·typeStyle={ParagraphTypeStyle.md}·className='mb-4'

(prettier/prettier)


[error] 167-167: Unexpected usage of doublequote.

(jsx-quotes)


[error] 169-170: Delete ⏎·····················

(prettier/prettier)


[error] 173-173: Replace "generator-cli" with 'generator-cli'

(prettier/prettier)


[error] 173-173: Unexpected usage of doublequote.

(jsx-quotes)


[error] 174-174: Replace "text-sm" with 'text-sm'

(prettier/prettier)


[error] 174-174: Unexpected usage of doublequote.

(jsx-quotes)


[error] 175-175: Replace "shadow-lg" with 'shadow-lg'

(prettier/prettier)


[error] 175-175: Unexpected usage of doublequote.

(jsx-quotes)


[error] 184-184: Replace "mt-20·bg-white·lg:py-12" with 'mt-20·bg-white·lg:py-12'

(prettier/prettier)


[error] 184-184: Unexpected usage of doublequote.

(jsx-quotes)


[error] 185-185: Replace "mx-auto·max-w-7xl·px-4·sm:px-6·lg:px-8" with 'mx-auto·max-w-7xl·px-4·sm:px-6·lg:px-8'

(prettier/prettier)


[error] 185-185: Unexpected usage of doublequote.

(jsx-quotes)


[error] 186-186: Replace "mb-16·text-center" with 'mb-16·text-center'

(prettier/prettier)


[error] 186-186: Unexpected usage of doublequote.

(jsx-quotes)


[error] 187-190: Replace ⏎··················level={HeadingLevel.h2}⏎··················typeStyle={HeadingTypeStyle.mdSemibold}⏎················ with ·level={HeadingLevel.h2}·typeStyle={HeadingTypeStyle.mdSemibold}

(prettier/prettier)


[error] 193-193: Replace "mx-auto·mt-3·max-w-lg·text-center·lg:pr-4" with 'mx-auto·mt-3·max-w-lg·text-center·lg:pr-4'

(prettier/prettier)


[error] 193-193: Unexpected usage of doublequote.

(jsx-quotes)


[error] 194-195: Delete ⏎·················

(prettier/prettier)


[error] 199-199: Replace "mt-10" with 'mt-10'

(prettier/prettier)


[error] 199-199: Unexpected usage of doublequote.

(jsx-quotes)


[error] 200-200: Replace "md:grid·lg:grid-cols-2·lg:space-y-0" with 'md:grid·lg:grid-cols-2·lg:space-y-0'

(prettier/prettier)


[error] 200-200: Unexpected usage of doublequote.

(jsx-quotes)


[error] 202-202: Replace "relative·mb-10" with 'relative·mb-10'

(prettier/prettier)


[error] 202-202: Unexpected usage of doublequote.

(jsx-quotes)


[error] 204-204: Replace "absolute·flex·size-12·items-center·justify-center·rounded-md·border·border-gray-900·bg-secondary-100·text-gray-900" with 'absolute·flex·size-12·items-center·justify-center·rounded-md·border·border-gray-900·bg-secondary-100·text-gray-900'

(prettier/prettier)


[error] 204-204: Unexpected usage of doublequote.

(jsx-quotes)


[error] 205-205: Replace "size-6"·aria-hidden="true" with 'size-6'·aria-hidden='true'

(prettier/prettier)


[error] 205-205: Unexpected usage of doublequote.

(jsx-quotes)


[error] 205-205: Unexpected usage of doublequote.

(jsx-quotes)


[error] 207-211: Replace ⏎··························level={HeadingLevel.h4}⏎··························typeStyle={HeadingTypeStyle.smSemibold}⏎··························className="ml-16"⏎························ with ·level={HeadingLevel.h4}·typeStyle={HeadingTypeStyle.smSemibold}·className='ml-16'

(prettier/prettier)


[error] 210-210: Unexpected usage of doublequote.

(jsx-quotes)


[error] 215-215: Replace "ml-16·mt-2·pr-10" with 'ml-16·mt-2·pr-10'

(prettier/prettier)


[error] 215-215: Unexpected usage of doublequote.

(jsx-quotes)


[error] 227-227: Replace "mt-16·text-center" with 'mt-16·text-center'

(prettier/prettier)


[error] 227-227: Unexpected usage of doublequote.

(jsx-quotes)

🪛 GitHub Actions: PR testing - if Node project
pages/tools/cli.tsx

[error] 19-19: Delete , prettier/prettier


[error] 19-19: Unexpected trailing comma. comma-dangle


[error] 25-25: Delete , prettier/prettier


[error] 25-25: Unexpected trailing comma. comma-dangle


[error] 32-32: Replace "rounded·bg-gray-200·px-1·py-0.5·font-mono·text-sm·text-gray-900">⏎··········asyncapi·start·studio⏎········ with 'rounded·bg-gray-200·px-1·py-0.5·font-mono·text-sm·text-gray-900'>asyncapi·start·studio prettier/prettier


[error] 32-32: Unexpected usage of doublequote. jsx-quotes


[error] 38-38: Delete , prettier/prettier


[error] 38-38: Unexpected trailing comma. comma-dangle


[error] 44-44: Delete , prettier/prettier


[error] 44-44: Unexpected trailing comma. comma-dangle


[error] 45-45: Delete , prettier/prettier


[error] 45-45: Unexpected trailing comma. comma-dangle


[error] 53-53: Replace "mt-8" with 'mt-8' prettier/prettier


[error] 53-53: Unexpected usage of doublequote. jsx-quotes


[error] 55-55: Replace "View·on·Github" with 'View·on·Github' prettier/prettier


[error] 55-55: Unexpected usage of doublequote. jsx-quotes


[error] 56-56: Replace "mt-2·block·w-full·sm:w-auto·md:mt-0·md:inline-block" with 'mt-2·block·w-full·sm:w-auto·md:mt-0·md:inline-block' prettier/prettier


[error] 56-56: Unexpected usage of doublequote. jsx-quotes


[error] 57-57: Replace "https://www.github.com/asyncapi/cli" with 'https://www.github.com/asyncapi/cli' prettier/prettier


[error] 57-57: Unexpected usage of doublequote. jsx-quotes


[error] 60-60: Replace "View·Docs" with 'View·Docs' prettier/prettier


[error] 60-60: Unexpected usage of doublequote. jsx-quotes


[error] 61-61: Replace "/docs/tools/cli" with '/docs/tools/cli' prettier/prettier


[error] 61-61: Unexpected usage of doublequote. jsx-quotes


[error] 62-62: Replace "mt-2·block·w-full·sm:w-auto·md:ml-2·md:mt-0·md:inline-block" with 'mt-2·block·w-full·sm:w-auto·md:ml-2·md:mt-0·md:inline-block' prettier/prettier


[error] 62-62: Unexpected usage of doublequote. jsx-quotes


[error] 72-72: Delete ⏎··· prettier/prettier


[error] 98-98: Replace "CLI" with 'CLI' prettier/prettier


[error] 98-98: Unexpected usage of doublequote. jsx-quotes


[error] 99-99: Replace "overflow-hidden·py-12" with 'overflow-hidden·py-12' prettier/prettier


[error] 99-99: Unexpected usage of doublequote. jsx-quotes


[error] 100-100: Replace "relative·mx-auto·max-w-xl·px-4·sm:px-6·lg:max-w-screen-xl·lg:px-8" with 'relative·mx-auto·max-w-xl·px-4·sm:px-6·lg:max-w-screen-xl·lg:px-8' prettier/prettier


[error] 100-100: Unexpected usage of doublequote. jsx-quotes


[error] 101-101: Replace "relative" with 'relative' prettier/prettier


[error] 101-101: Unexpected usage of doublequote. jsx-quotes


[error] 102-102: Replace ⏎··············level={HeadingLevel.h1}⏎··············typeStyle={HeadingTypeStyle.lg}⏎············ with ·level={HeadingLevel.h1}·typeStyle={HeadingTypeStyle.lg}·className='text-center' prettier/prettier


[error] 105-105: Unexpected usage of doublequote. jsx-quotes


[error] 107-107: Replace "hidden·md:block">⏎················Interact·with·AsyncAPI·from·the·comfort·of·your·CLI⏎·············· with 'hidden·md:block'>Interact·with·AsyncAPI·from·the·comfort·of·your·CLI prettier/prettier


[error] 107-107: Unexpected usage of doublequote. jsx-quotes


[error] 110-110: Replace "md:hidden" with 'md:hidden' prettier/prettier


[error] 110-110: Unexpected usage of doublequote. jsx-quotes


[error] 112-112: Replace "mx-auto·mt-4·max-w-3xl·text-center">⏎··············{description}⏎············ with 'mx-auto·mt-4·max-w-3xl·text-center'>{description} prettier/prettier


[error] 112-112: Unexpected usage of doublequote. jsx-quotes


[error] 117-117: Replace "relative·mt-12·lg:mt-20·lg:grid·lg:grid-cols-2·lg:items-center·lg:gap-8" with 'relative·mt-12·lg:mt-20·lg:grid·lg:grid-cols-2·lg:items-center·lg:gap-8' prettier/prettier


[error] 117-117: Unexpected usage of doublequote. jsx-quotes


[error] 118-118: Replace "relative·lg:mt-8" with 'relative·lg:mt-8' prettier/prettier


[error] 118-118: Unexpected usage of doublequote. jsx-quotes


[error] 119-119: Replace ⏎················level={HeadingLevel.h2}⏎················typeStyle={HeadingTypeStyle.mdSemibold}⏎············ with ·level={HeadingLevel.h2}·typeStyle={HeadingTypeStyle.mdSemibold} prettier/prettier


[error] 125-125: Replace "mt-3·lg:pr-4" with 'mt-3·lg:pr-4' prettier/prettier


[error] 125-125: Unexpected usage of doublequote. jsx-quotes


[error] 126-126: Delete ⏎··············· prettier/prettier


[error] 132-132: Replace "relative·mx-auto·mt-8·w-full·space-y-10" with 'relative·mx-auto·mt-8·w-full·space-y-10' prettier/prettier


[error] 132-132: Unexpected usage of doublequote. jsx-quotes


[error] 137-137: Replace "mb-4·text-center·md:text-left" with 'mb-4·text-center·md:text-left' prettier/prettier


[error] 137-137: Unexpected usage of doublequote. jsx-quotes


[error] 142-142: Replace "generator-cli" with 'generator-cli' prettier/prettier


[error] 142-142: Unexpected usage of doublequote. jsx-quotes


[error] 143-143: Replace "text-sm" with 'text-sm' prettier/prettier


[error] 143-143: Unexpected usage of doublequote. jsx-quotes


[error] 144-144: Replace "shadow-lg" with 'shadow-lg' prettier/prettier


[error] 144-144: Unexpected usage of doublequote. jsx-quotes


[error] 150-150: Delete , prettier/prettier


[error] 150-150: Unexpected trailing comma. comma-dangle


[error] 159-159: Replace "mb-4·text-center·md:text-left" with 'mb-4·text-center·md:text-left' prettier/prettier


[error] 159-159: Unexpected usage of doublequote. jsx-quotes


[error] 163-163: Replace "space-y-5" with 'space-y-5' prettier/prettier


[error] 163-163: Unexpected usage of doublequote. jsx-quotes


[error] 165-165: Replace ⏎······················typeStyle={ParagraphTypeStyle.md}⏎······················className="mb-4"⏎···················· with ·typeStyle={ParagraphTypeStyle.md}·className='mb-4' prettier/prettier


[error] 167-167: Unexpected usage of doublequote. jsx-quotes


[error] 169-169: Delete ⏎····················· prettier/prettier


[error] 173-173: Replace "generator-cli" with 'generator-cli' prettier/prettier


[error] 173-173: Unexpected usage of doublequote. jsx-quotes


[error] 174-174: Replace "text-sm" with 'text-sm' prettier/prettier


[error] 174-174: Unexpected usage of doublequote. jsx-quotes


[error] 175-175: Replace "shadow-lg" with 'shadow-lg' prettier/prettier


[error] 175-175: Unexpected usage of doublequote. jsx-quotes


[error] 184-184: Replace "mt-20·bg-white·lg:py-12" with 'mt-20·bg-white·lg:py-12' prettier/prettier


[error] 184-184: Unexpected usage of doublequote. jsx-quotes


[error] 185-185: Replace "mx-auto·max-w-7xl·px-4·sm:px-6·lg:px-8" with 'mx-auto·max-w-7xl·px-4·sm:px-6·lg:px-8' prettier/prettier


[error] 185-185: Unexpected usage of doublequote. jsx-quotes


[error] 186-186: Replace "mb-16·text-center" with 'mb-16·text-center' prettier/prettier


[error] 186-186: Unexpected usage of doublequote. jsx-quotes


[error] 187-187: Replace ⏎··················level={HeadingLevel.h2}⏎··················typeStyle={HeadingTypeStyle.mdSemibold}⏎················ with ·level={HeadingLevel.h2}·typeStyle={HeadingTypeStyle.mdSemibold} prettier/prettier


[error] 193-193: Replace "mx-auto·mt-3·max-w-lg·text-center·lg:pr-4" with 'mx-auto·mt-3·max-w-lg·text-center·lg:pr-4' prettier/prettier


[error] 193-193: Unexpected usage of doublequote. jsx-quotes


[error] 194-194: Delete ⏎················· prettier/prettier


[error] 199-199: Replace "mt-10" with 'mt-10' prettier/prettier


[error] 199-199: Unexpected usage of doublequote. jsx-quotes


[error] 200-200: Replace "md:grid·lg:grid-cols-2·lg:space-y-0" with 'md:grid·lg:grid-cols-2·lg:space-y-0' prettier/prettier


[error] 200-200: Unexpected usage of doublequote. jsx-quotes


[error] 202-202: Replace "relative·mb-10" with 'relative·mb-10' prettier/prettier


[error] 202-202: Unexpected usage of doublequote. jsx-quotes


[error] 204-204: Replace "absolute·flex·size-12·items-center·justify-center·rounded-md·border·border-gray-900·bg-secondary-100·text-gray-900" with 'absolute·flex·size-12·items-center·justify-center·rounded-md·border·border-gray-900·bg-secondary-100·text-gray-900' prettier/prettier


[error] 204-204: Unexpected usage of doublequote. jsx-quotes


[error] 205-205: Replace "size-6"·aria-hidden="true" with 'size-6'·aria-hidden='true' prettier/prettier


[error] 205-205: Unexpected usage of doublequote. jsx-quotes


[error] 205-205: Unexpected usage of doublequote. jsx-quotes


[error] 207-207: Replace ⏎··························level={HeadingLevel.h4}⏎··························typeStyle={HeadingTypeStyle.smSemibold}⏎··························className="ml-16"⏎························ with ·level={HeadingLevel.h4}·typeStyle={HeadingTypeStyle.smSemibold}·className='ml-16' prettier/prettier


[error] 210-210: Unexpected usage of doublequote. jsx-quotes


[error] 215-215: Replace "ml-16·mt-2·pr-10" with 'ml-16·mt-2·pr-10' prettier/prettier


[error] 215-215: Unexpected usage of doublequote. jsx-quotes


[error] 227-227: Replace "mt-16·text-center" with 'mt-16·text-center' prettier/prettier


[error] 227-227: Unexpected usage of doublequote. jsx-quotes

🔇 Additional comments (2)
pages/tools/cli.tsx (2)

169-171: Updated CLI description accurately reflects expanded functionality.

The description for the CLI tool has been updated to include its expanded capabilities beyond just creating files, now mentioning projects, specification files, and templates.

This change aligns with the PR objective to update CLI details and accurately reflects the current functionality of the AsyncAPI CLI.

🧰 Tools
🪛 ESLint

[error] 169-170: Delete ⏎·····················

(prettier/prettier)

🪛 GitHub Actions: PR testing - if Node project

[error] 169-169: Delete ⏎····················· prettier/prettier


84-95:

✅ Verification successful

Verify CLI installation links and paths are current.

The download and installation instructions have been updated as part of this PR. Ensure that these URLs and file references point to the latest versions and follow the current structure of the AsyncAPI CLI repository.


🏁 Script executed:

#!/bin/bash
# Check if the referenced release assets exist
curl -s -o /dev/null -w "%{http_code}" https://github.com/asyncapi/cli/releases/latest/download/asyncapi.pkg
curl -s -o /dev/null -w "%{http_code}" https://github.com/asyncapi/cli/releases/latest/download/asyncapi.x64.exe
curl -s -o /dev/null -w "%{http_code}" https://github.com/asyncapi/cli/releases/latest/download/asyncapi.x86.exe
curl -s -o /dev/null -w "%{http_code}" https://github.com/asyncapi/cli/releases/latest/download/asyncapi.deb

Length of output: 464


CLI Installation Links Verified

The verification script confirms that all the referenced URLs (for asyncapi.x64.exe, asyncapi.x86.exe, and asyncapi.deb) correctly return HTTP 302 redirects, which is expected for GitHub's "latest/download" endpoints. The links currently point to the appropriate latest releases, and no changes are needed.

{ language: 'brew', code: 'brew install asyncapi' },
{ language: '.pkg', code: getPkgCode() },
{ language: 'windows', code: setUpWin() },
{ language: 'linux', code: setUpLinux() },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue

Remove trailing comma in codeBlocks array.

The trailing comma after the last item in the codeBlocks array is causing linting errors.

Apply this diff to fix the issue:

-                    { language: 'linux', code: setUpLinux() },
+                    { language: 'linux', code: setUpLinux() }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
{ language: 'linux', code: setUpLinux() },
{ language: 'linux', code: setUpLinux() }
🧰 Tools
🪛 ESLint

[error] 150-150: Delete ,

(prettier/prettier)


[error] 150-150: Unexpected trailing comma.

(comma-dangle)

🪛 GitHub Actions: PR testing - if Node project

[error] 150-150: Delete , prettier/prettier


[error] 150-150: Unexpected trailing comma. comma-dangle

Copy link

codecov bot commented Mar 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (baf787d) to head (af3de5f).

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #3926   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           21        21           
  Lines          667       667           
  Branches       113       113           
=========================================
  Hits           667       667           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Arijit-Char
Copy link
Author

Hi @derberg , @akshatnema, @anshgoyalevil, @Mayaleeeee, and @asyncapi-bot-eve,

I have updated the code to fixed the remaining issues but I am receiving 1 failing check ([Lighthouse CI / Lighthouse CI (pull_request_target)). Could you please help me to fix this one.

Looking forward to your feedback! 😊

Thanks! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant