Azure Pipelines Spectral Lint Task ๐Ÿ‘’

January 30, 2026 ยท View on GitHub

CC BY-NC-SA 4.0 GitHub commit activity

Introduction

This is the repo for the source code of the Spectral Lint Task in the Visual Studio Marketplace.

Status

Currently there is only a version 0, that has been minimally tested.

Building and local testing

cd tasks/SpectralLintTaskV0

$env:INPUT_ruleset=".spectral/demo-ruleset.yaml"
$env:INPUT_definition="https://petstore3.swagger.io/api/v3/openapi.json"
$env:INPUT_failSeverity="error"
$env:INPUT_outputFilePath=".spectral/demo-lint-report.json"
$env:INPUT_outputFormat="json"

tsc
node index.js

Releasing

  1. Update the version numbers at vss-extension.json and task.json.

  2. Create the extension file (requires npm i -g tfx-cli):

    tfx extension create --manifest-globs vss-extension.json --output-path releases
    
  3. Add to the marketplace.

Design

Follows tips from Travis Illig.

License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

CC BY-NC-SA 4.0