Skip to main content
Version: 2.19.x (prerelease)

spectral


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 scie-pants-linux-x86_64 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/spectral-cli@6.5.1

Version string for the tool in the form package@version (e.g. prettier@2.6.2)

install_from_resolve

--spectral-install-from-resolve=<str>
PANTS_SPECTRAL_INSTALL_FROM_RESOLVE
default: None

If specified, install the tool using the lockfile for this named resolve, instead of the version configured in this subsystem.

If unspecified, the tool will use the default configured package manager [nodejs].package_manager`, and install the tool without a lockfile.

Deprecated options

None