Skip to content

Latest commit

 

History

History
71 lines (46 loc) · 2.68 KB

README.md

File metadata and controls

71 lines (46 loc) · 2.68 KB

Build Status Go Report Card CircleCI

JSCheck

drawing

The jscheck command line tool looks for json files and check's its validity. Sometimes not all our json files end with a .json extension. jscheck tries to figure out if your file has is a json format before linting. The installation is minimal and easy.

Installation

jscheck is available for MacOS and Linux based operating systems.

Homebrew

Installation for MacOS is the easiest with Homebrew. If you do not have homebrew installed, click here.

brew install warrensbox/tap/jscheck

Linux

Installation for other linux operation systems.

curl -L https://raw.githubusercontent.com/warrensbox/jscheck/release/install.sh | bash

Install from source

Alternatively, you can install the binary from source here

How to use:

Without args

drawing

  1. By typing the command jscheck on your terminal, it walks through all your current directory and sub-directory to determine any errors in json formatted files.

The most recently selected versions are presented at the top of the dropdown.

Specify a directory

drawing

  1. You can also supply the desired directory to walk through as an argument on the command line.
  2. For example, jscheck -d dirname for walk through dirname.

Execute as part of jenkins job

    sh """\
        #!/bin/bash 
        eval "\$(chef shell-init bash)"
        echo install jscheck
        wget https://raw.githubusercontent.com/warrensbox/jscheck/release/install.sh 
        chmod 755 install.sh
        ./install.sh -b installs

        ./installs/jscheck
        """.stripIndent()

Issues

Please open issues here: New Issue