Skip to content
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

Example of a custom JS spectral rule #266

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Conversation

andreaangiolillo
Copy link
Collaborator

Proposed changes

Jira ticket: CLOUDP-#

Closes #[issue number]

Checklist

  • I have signed the MongoDB CLA
  • I have added tests that prove my fix is effective or that my feature works

Changes to Spectral

  • I have read the README file for Spectral Updates

Further comments

@andreaangiolillo andreaangiolillo changed the title fix Example of a custom JS spectral rule Nov 11, 2024
Comment on lines +5 to +8
functionsDir: './functions'
functions:
- path-name-collisions

Copy link
Collaborator Author

@andreaangiolillo andreaangiolillo Nov 11, 2024

Choose a reason for hiding this comment

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

adding my custom rule

Comment on lines +23 to +24
no-overlapping-paths:
description: "Checks for overlapping paths with path parameters that may shadow each other."
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

adding the rule for linting

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