Skip to content

About

✨ A Buildkite plugin for linting your Buildkite plugins

Topics

Resources

Code of conduct

Stars

7 stars

Watchers

7 watching

Forks

Latest commit

 

History

180 Commits

Folders and files

Repository files navigation

Plugin Linter Buildkite Plugin Build status

A Buildkite plugin to lint your Buildkite plugins 😱

For a full list of features see the Buildkite Plugin Linter cli tool documentation.

Usage

steps:
  - label: ":sparkles: Lint"
    plugins:
      - plugin-linter#v4.1.0:
          id: my-org/my-plugin
          image-version: v3.2.0

This explicitly selects the buildkite/plugin-linter:v3.2.0 image, including when using an older plugin release.

If you want to run it locally on a command line, see the Buildkite Plugin Linter cli tool documentation.

Configuration

Required

id

The id of the plugin (e.g. my-org/my-plugin)

Optional

image-version

The Docker tag of the buildkite/plugin-linter image to use. Default is v3.2.0.

readme

The filename of the plugin’s readme to lint examples on. Default is README.md

skip-invalid (boolean)

Whether invalid examples (for example with invalid options) should not cause the linting to fail. Defaults to false.

Upgrading to v4

Version 4 updates the default linter image from v2.1.0 to v3.1.0. The new image includes current dependency and security updates, improved YAML validation, and native linux/amd64 and linux/arm64 support.

To keep using the previous linter behavior while upgrading the wrapper, set the image version explicitly:

steps:
  - label: ":sparkles: Lint"
    plugins:
      - plugin-linter#v4.1.0:
          id: my-org/my-plugin
          image-version: v2.1.0

Developing

To run testing, shellchecks and plugin linting use use bk run with the Buildkite CLI.

bk run

Or if you want to run just the tests, you can use the docker Plugin Tester:

docker run --rm -ti -v "${PWD}":/plugin buildkite/plugin-tester:latest

License

MIT (see LICENSE)

About

✨ A Buildkite plugin for linting your Buildkite plugins

Topics

Resources

Code of conduct

Stars

7 stars

Watchers

7 watching

Forks

Releases

Packages

Used by

Contributors

Languages