GithubHelp home page GithubHelp logo

isabella232 / lint-install Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tinkerbell/lint-install

0.0 0.0 0.0 69 KB

Consistently install reasonable linter rules for open-source projects

License: Apache License 2.0

Shell 0.07% Go 72.58% Nix 3.22% Makefile 23.80% Dockerfile 0.33%

lint-install's Introduction

lint-install

GoReport Widget stability-stable

Idiomatic linters for opinionated projects.

This tool installs well-configured linters to any project, open-source or otherwise. The linters can be used in a repeatable and consistent way across CI, local tests, and IDE's.

lint-install adds linter configuration to the root of your project, and Makefile rules to install a consistently versioned set of linters to be used in any environment. These Makefile rules can also be upgrading by lint-install, updating all environments simultaneously.

Currently supported languages:

  • Go
  • Shell
  • Dockerfile
  • YAML

Philosophy

  • Catch all the bugs!
  • Improve readability as much as possible.
  • Be idiomatic: only raise issues that the language authors would flag

Usage

Installation:

go get github.com/tinkerbell/lint-install

Add Makefile rules for a git repository:

$HOME/go/bin/lint-install <repo>

Users can then lint the project using:

make lint

Other options:

  -dockerfile string
     Level to lint Dockerfile with: [ignore, warn, error] (default "error")
  -dry-run
     Display changes to make
  -go string
     Level to lint Go with: [ignore, warn, error] (default "error")
  -makefile string
     name of Makefile to update (default "Makefile")
  -shell string
     Level to lint Shell with: [ignore, warn, error] (default "error")
  -yaml string
     Level to lint YAML with: [ignore, warn, error] (default "error")

lint-install's People

Contributors

chrisdoherty4 avatar jacobweinstock avatar mergify[bot] avatar mmlb avatar tstromberg 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.