Skip to content

feat: introduce graphql linting#2856

Draft
tatomyr wants to merge 1 commit into
mainfrom
feat/lint-graphql
Draft

feat: introduce graphql linting#2856
tatomyr wants to merge 1 commit into
mainfrom
feat/lint-graphql

Conversation

@tatomyr
Copy link
Copy Markdown
Collaborator

@tatomyr tatomyr commented Jun 5, 2026

What/Why/How?

Testing experimental graphql linting

Reference

Testing

Screenshots (optional)

Check yourself

  • This PR follows the contributing guide
  • All new/updated code is covered by tests
  • Core code changed? - Tested with other Redocly products (internal contributions only)
  • New package installed? - Tested in different environments (browser/node)
  • Documentation update has been considered

Security

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

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jun 5, 2026

🦋 Changeset detected

Latest commit: 3a0de7c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@redocly/openapi-core Minor
@redocly/cli Minor
@redocly/respect-core Minor

Not sure what this means? Click here to learn what changesets are.

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

@tatomyr tatomyr self-assigned this Jun 5, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 5, 2026

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 81.13% (🎯 81%) 7334 / 9039
🔵 Statements 80.48% (🎯 80%) 7620 / 9468
🔵 Functions 84.37% (🎯 84%) 1480 / 1754
🔵 Branches 72.62% (🎯 72%) 4946 / 6810
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/cli/src/utils/miscellaneous.ts 61.67% 58.2% 78.04% 60.97% 75, 140, 197-247, 273-274, 284-285, 300, 304, 307, 313, 317-320, 328-361, 372, 397, 406, 414-452, 567, 576
packages/core/src/detect-spec.ts 95.34% 95.31% 100% 95.34% 32, 40
packages/core/src/lint-graphql.ts 93.33% 50% 100% 92.85% 30
packages/core/src/lint.ts 92.1% 85.71% 100% 91.89% 110-121, 144
packages/core/src/oas-types.ts 100% 100% 100% 100%
packages/core/src/resolve.ts 95.37% 94.69% 100% 95.23% 93, 140, 284, 459-467
packages/core/src/bundle/bundle-visitor.ts 66.66% 63.63% 100% 66.66% 30, 34-42, 49-57, 64, 73, 81, 86-111, 175-187, 204-205, 224-225, 239-240, 277
packages/core/src/config/all.ts 100% 100% 100% 100%
packages/core/src/config/builtIn.ts 100% 100% 100% 100%
packages/core/src/config/config-resolvers.ts 76.21% 60.98% 94.11% 77.01% 73, 101-104, 154, 193, 201, 257, 268, 277, 290, 300, 303-307, 312-321, 345-347, 357, 360, 363, 366, 369, 372, 385-387, 391, 397, 400, 403-406, 409-412, 415-418, 432-434, 441, 444, 447, 450, 453, 456, 481-483, 488-494
packages/core/src/config/config.ts 63.29% 64.53% 75.6% 63.47% 174-204, 230, 234, 238-256, 288, 306-326, 410-440
packages/core/src/config/minimal.ts 100% 100% 100% 100%
packages/core/src/config/recommended-strict.ts 100% 100% 100% 100%
packages/core/src/config/recommended.ts 100% 100% 100% 100%
packages/core/src/config/rules.ts 100% 100% 100% 100%
packages/core/src/config/spec.ts 100% 100% 100% 100%
packages/core/src/config/utils.ts 97.4% 81.81% 100% 98.68% 35, 84-86
packages/core/src/graphql/extensions.ts 100% 100% 100% 100%
packages/core/src/graphql/run.ts 93.1% 75% 100% 100% 53, 96
packages/core/src/rules/graphql/index.ts 100% 100% 100% 100%
packages/core/src/rules/graphql/struct.ts 66.66% 33.33% 75% 66.66% 20, 29, 34-44
packages/core/src/rules/graphql/type-description.ts 100% 100% 100% 100%
packages/core/src/rules/graphql/type-pascal-case.ts 100% 100% 100% 100%
packages/core/src/types/redocly-yaml.ts 92.07% 83.63% 100% 91.75% 411, 443, 449, 492-499, 501, 652-657, 660-665, 668-673
Generated in workflow #10102 for commit 3a0de7c by the Vitest Coverage Report Action

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 5, 2026

Performance Benchmark (Lower is Faster)

CLI Version Bundle Lint Check Config
cli-latest ▓ 1.00x (Fastest) ▓ 1.00x (Fastest) ▓ 1.00x (Fastest)
cli-next ▓ 1.01x ± 0.01 ▓ 1.01x ± 0 ▓ 1.00x ± 0

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