Code Monkey home page Code Monkey logo

buildkite-plugin-linter's Introduction

Buildkite Plugin Linter Build status

A linter for your Buildkite plugins, used by the plugin-linter Buildkite plugin

Features:

  • Checks for a plugin.yml file (and validates it against the plugin.yml JSON schema)
  • Checks that all readme examples match the plugin’s schema
  • Check the readme version numbers are up-to-date with the latest plugin version
  • Machine-parseable TAP output

Further reading and tools:

Usage

You can use this tool via the Linter Plugin or you can add it to your docker-compose.yml file and then use docker-compose run --rm lint:

services:
  lint:
    image: buildkite/plugin-linter
    command: ['--id', 'my-org/my-plugin']
    volumes:
      - ".:/plugin"

or you can run it locally on the command line:

docker run \
  -it \
  --rm \
  -v "$(pwd):/plugin" \
  buildkite/plugin-linter \
    --id my-org/my-plugin

If your plugin examples use a full git URL, such as ssh://[email protected]/my-org/example-buildkite-plugin, then you should specify the full git URL in the id argument.

Roadmap / TODO

  • Check that all the config options in the readme exist in the configuration schema
  • Check that all the options in the configuration schema exist in the readme
  • Warn about undocumented config options found in source code

Contributions welcome! ❤️

Developing/testing

If you have Node installed:

npm install
npm test
bin/lint --help

Code style is validated using JavaScript Standard Style.

To run the tests using Docker Compose:

# Run the tests
docker-compose run --rm linter
# Run the lint command
docker-compose run --rm linter lint --help

Releasing

License

MIT (see LICENSE)

buildkite-plugin-linter's People

Contributors

toolmantim avatar renovate-bot avatar pzeballos avatar toote avatar renovate[bot] avatar dependabot[bot] avatar mr-beerkiss avatar joscha avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.