gint
A pluggable and configurable GIT linter tool
Last updated 2 years ago by runk .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gint 
SYNC missed versions from official npm registry.

gint npm version Build Status

A pluggable and configurable GIT linter tool

Gint can help with enforcing commit message patterns, branch sizes and heaps more.

Install

npm i gint --only=dev

Existing hooks aren't replaced

Uninstall

npm uninstall gint

Usage

Gint requires you to create a configuration file named .gintrc in your project root. See example below.

{
  "rules": {
    "commit-message-pattern": ["error", "^\\[(patch|minor|major)\\]\\s.{3,}", "i"],
    "commit-min-len": ["error", 10],
    "commit-max-len": ["error", 512]
  }
}

Rules

Refer to rules documentation.

Git GUI clients support

If you've installed Node using the standard installer, nvm or homebrew, Git hooks will be executed in GUI applications.

Working with multiple version of Node

If nvm is installed, gint will try to use the default/current installed Node version or use the project .nvmrc.

Tip to use the system-installed version of node, nvm provides a system alias

See also

  • Husky - Heavily based on husky source code.

License

MIT

Current Tags

  • 0.9.2                                ...           latest (2 years ago)

12 Versions

  • 0.9.2                                ...           2 years ago
  • 0.9.1                                ...           3 years ago
  • 0.9.0                                ...           3 years ago
  • 0.8.1                                ...           3 years ago
  • 0.8.0                                ...           3 years ago
  • 0.7.0                                ...           3 years ago
  • 0.6.0                                ...           3 years ago
  • 0.5.3                                ...           3 years ago
  • 0.5.2                                ...           3 years ago
  • 0.3.0                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 1
Dependencies (7)
Dev Dependencies (8)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |