Skip to content

Conversation

@AlbinaBlazhko17
Copy link
Contributor

@AlbinaBlazhko17 AlbinaBlazhko17 commented Dec 1, 2025

What/Why/How?

  • Added new command scorecard-classic.
  • Implemented functionality to fetch scorecard and plugins from project url.
  • Implemented functionality to pass project url in arguments.
  • Implemented functionality to user API key to fetch data.
  • Implemented functionality to be able to output the result in JSON format.
  • Added tests.

Reference

Testing

Ran tests.

Screenshots (optional)

Check yourself

  • Code changed? - Tested with Redoc/Realm/Reunite (internal)
  • All new/updated code is covered by tests
  • New package installed? - Tested in different environments (browser/node)
  • Documentation update considered

Security

  • The security impact of the change has been considered
  • Code follows company security practices and guidelines

@AlbinaBlazhko17 AlbinaBlazhko17 self-assigned this Dec 1, 2025
@changeset-bot
Copy link

changeset-bot bot commented Dec 1, 2025

⚠️ No Changeset found

Latest commit: 0d8a255

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Dec 1, 2025

Command Mean [s] Min [s] Max [s] Relative
redocly lint resources/rebilly.yaml 1.475 ± 0.023 1.450 1.517 1.02 ± 0.02
redocly-next lint resources/rebilly.yaml 1.442 ± 0.026 1.404 1.494 1.00

@github-actions
Copy link
Contributor

github-actions bot commented Dec 1, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 78.66% (🎯 78%) 6030 / 7665
🔵 Statements 78.14% (🎯 78%) 6232 / 7975
🔵 Functions 82.06% (🎯 81%) 1245 / 1517
🔵 Branches 70.68% (🎯 70%) 4116 / 5823
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/cli/src/commands/scorecard-classic/index.ts 0% 0% 0% 0% 15-74
packages/cli/src/commands/scorecard-classic/auth/login-handler.ts 0% 0% 0% 0% 8-22
packages/cli/src/commands/scorecard-classic/formatters/json-formatter.ts 96.66% 91.66% 100% 96.42% 31
packages/cli/src/commands/scorecard-classic/formatters/stylish-formatter.ts 100% 90% 100% 100%
packages/cli/src/commands/scorecard-classic/remote/fetch-scorecard.ts 100% 100% 100% 100%
packages/cli/src/commands/scorecard-classic/validation/plugin-evaluator.ts 100% 100% 100% 100%
packages/cli/src/commands/scorecard-classic/validation/validate-scorecard.ts 100% 75% 100% 100%
Generated in workflow #8127 for commit 0d8a255 by the Vitest Coverage Report Action

@AlbinaBlazhko17 AlbinaBlazhko17 changed the title Feat/add scorecard feat: implement scorecard-classic command Dec 3, 2025
Comment on lines 814 to 818
output: {
describe: 'Output file for JSON results.',
type: 'string',
alias: 'o',
},
Copy link
Collaborator

Choose a reason for hiding this comment

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

I suggest adding format option instead (see the lint command).

Copy link
Contributor Author

@AlbinaBlazhko17 AlbinaBlazhko17 Dec 9, 2025

Choose a reason for hiding this comment

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

Changed it

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.

3 participants