Skip to content

erwinkramer/ado-spectral

Repository files navigation

Azure Pipelines Spectral Lint Task ๐Ÿ‘’

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=".spectral/demo-definition-warn.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:
tfx extension create --manifest-globs vss-extension.json --output-path releases
  1. Add to the marketplace.

Design

Follows tips from: https://www.paraesthesia.com/archive/2020/02/25/tips-for-custom-azure-devops-build-tasks/

License

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

CC BY-NC-SA 4.0

About

Azure Pipelines Spectral Lint Task

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published