stoplightio / spectral

A flexible JSON/YAML linter for creating automated style guides, with baked in support for OpenAPI (v3.1, v3.0, and v2.0), Arazzo v1.0, as well as AsyncAPI v2.x.
https://stoplight.io/spectral
Apache License 2.0
2.48k stars 233 forks source link

launch Spectral without a defined ruleset , should use default ruleset #2585

Open LasneF opened 8 months ago

LasneF commented 8 months ago

User story. As a developer, I can do validate an API quickly, so that I can ensure a first level of quality

Is your feature request related to a problem? doing a quicky sanity check should be simple , trivial

Describe the solution you'd like be able to launch spectral lint and it runs , it means having the defaults ruleset ... by default without the requirement to create a file can be minimal , but enought for sanity check , otherwise can get painfull when we grab api from various location on PC , and not able to just launch a simple command line but need to remember the right location of the ruleset

here is just doing spectral lint myFile.yaml , no more to get basic feedback

Additional context Add any other context or screenshots about the feature request here.