HomeDocs
DocsCommunityTestimonialsUsersGitHubTwitterBlogJobsTermsPrivacyCookies
TermsPrivacyCookies

A flexible JSON/YAML linter for creating automated style guides (https://github.com/stoplightio/spectral).

Backend: pants.backend.experimental.openapi.lint.spectral
Config section: [spectral]

Basic options

skip

--[no-]spectral-skip

PANTS_SPECTRAL_SKIP

default: False

If true, don't use Spectral when running pants lint.


args

--spectral-args="[<shell_str>, <shell_str>, ...]"

PANTS_SPECTRAL_ARGS

default: []

Arguments to pass directly to Spectral, e.g. --spectral-args='--fail-severity=warn'.


Advanced options

version

--spectral-version=<str>

PANTS_SPECTRAL_VERSION

default: @stoplight/[email protected]

Version string for the tool in the form package@version (e.g. [email protected])


Deprecated options

None