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

Be able to store IDE plugin config in the .spectral.yml #2766

Open
mskonovalov opened this issue Dec 28, 2024 · 0 comments
Open

Be able to store IDE plugin config in the .spectral.yml #2766

mskonovalov opened this issue Dec 28, 2024 · 0 comments

Comments

@mskonovalov
Copy link

mskonovalov commented Dec 28, 2024

User story.
As a developer, I can define the IDE plugins config (Spectral for VSCode and Spectral for Intellij Idea) in the .spectral.yml file, so that I can commit it into git and I don't need to configure it manually every time on every computer.

Is your feature request related to a problem?
Spectral has 2 IDE plugins (https://plugins.jetbrains.com/plugin/18520-spectral and https://github.com/stoplightio/vscode-spectral). The parameters they allow to configure are:

  • path to ruleset
  • glob of validated files (VSCode supports !-notation for exclusion, not sure about Intellij)
  • (VsCode only) language to validate.

Describe the solution you'd like
I'd like to put those params validateFiles and validateLanguages into root .spectral.yml file and commit it into git.
Then running spectral CLI in the root folder without arguments will actually use those params.

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

No branches or pull requests

1 participant