Skip to content

JSON Lint Buildkite Plugin: Checks JSON files and flags syntax errors

License

Notifications You must be signed in to change notification settings

johnsyweb/jsonlint-buildkite-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON Lint Buildkite Plugin

Checks JSON files and flags syntax errors

Introduction

Have you ever updated JSON configuration or ejson secrets, had all your pre-production tests pass and then find you have a missing comma in your production configuration?

Does Buildkite already perform checks on your repository?

This plugin is for you!

Development status Build status

This plugin is based on Markdown Lint Buildkite Plugin. It will be useful on some projects at work but I wrote it in my own time and haven't had a chance to try it at work yet. Perhaps check the pulse to see if it's used.

To run the tests locally:

./scripts/test

Getting started

Add the following to your pipeline.yml:

steps:
  - label: ":json: JSON Lint"
    plugins:
      - johnsyweb/jsonlint#v1.0.0:
          pattern: '*.*json'

Configuration

pattern (optional, string)

Default: *.*json*

The file name pattern, for example *.json or *.ejson*. Supports any pattern supported by find -name.

version (optional, string)

Default: latest

Version of jsonlint image to use.

Requirements

Contact

Maintainers

License license

jsonlint-buildkite-plugin uses MIT license. See LICENSE.txt for details.

Code of Conduct

We welcome contribution from everyone. Read more about it in CODE_OF_CONDUCT.md

Contributing PRs welcome

For bug fixes, documentation changes, and features:

  1. Fork it
  2. Create your feature branch (git switch -c my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Run the tests (./scripts/test)
  5. Push to the branch (git push origin my-new-feature)
  6. Create a new Pull Request

For larger new features: Do everything as above, but first also make contact with the project maintainers to be sure your change fits with the project direction and you won't be wasting effort going in the wrong direction.

About

JSON Lint Buildkite Plugin: Checks JSON files and flags syntax errors

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages