crie

command module
v0.18.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2019 License: MIT Imports: 7 Imported by: 0

README

Crie enforcement

Docker Cloud Build Status

Crie is an effective way to format and lint code for a variety of languages

  • Alpine based image to reduce download size
  • Extendable for more languages
  • Batteries included but replaceable - default configuration (/imp) is separated from core library

Install options

Bundled all-together with Docker

    git clone https://github.com/tyhal/crie /tmp/crie; sudo /tmp/crie/script/crie install
Local Binary

Local binary requiring all linters to be installed

    # Ensure your path contains $GOPATH/bin
    git clone https://github.com/tyhal/crie /tmp/crie; cd /tmp/crie
    go install

    # Additional tools used to lint
    go get -u mvdan.cc/sh/cmd/shfmt golang.org/x/lint/golint
    pip3 install -r requirements.txt

    sudo npm install -g jsonlint2 remark-cli remark-preset-lint-recommended standard
    sudo apt install cppcheck shellcheck clang-format

    # TODO install help:
    # hadolint

Usage

    crie chk
    crie fmt

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
imp
verify
lang/go/src command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL