All Projects → guillaumeaubert → App Githooks

guillaumeaubert / App Githooks

Licence: other
Plugin-based system to run specific actions and checks when git hooks are triggered.

Programming Languages

perl
6916 projects

Projects that are alternatives of or similar to App Githooks

eslint-plugin-import
ESLint plugin with rules that help validate proper imports.
Stars: ✭ 4,290 (+85700%)
Mutual labels:  linting, code-quality
static-code-analysis-plugin
A plugin to simplify Static Code Analysis on Gradle. Not restricted to, but specially useful, in Android projects, by making sure all analysis can access the SDK classes.
Stars: ✭ 36 (+620%)
Mutual labels:  code-analysis, code-quality
jdepend
A Java package dependency analyzer that generates design quality metrics.
Stars: ✭ 13 (+160%)
Mutual labels:  code-analysis, code-quality
code-assert
Assert that the java code of a project satisfies certain checks.
Stars: ✭ 94 (+1780%)
Mutual labels:  code-analysis, code-quality
Grumphp
Submitting bugs and feature requests
Stars: ✭ 3,679 (+73480%)
Mutual labels:  code-quality, git-hooks
editorconfig-checker.javascript
A tool to verify that your files are in harmony with your .editorconfig
Stars: ✭ 59 (+1080%)
Mutual labels:  linting, code-quality
flake8-broken-line
🚨 Flake8 plugin to forbid backslashes (\) for line breaks
Stars: ✭ 85 (+1600%)
Mutual labels:  linting, code-quality
Dotenv Linter
☺️ Linting dotenv files like a charm!
Stars: ✭ 207 (+4040%)
Mutual labels:  linting, code-quality
Pmd
An extensible multilanguage static code analyzer.
Stars: ✭ 3,667 (+73240%)
Mutual labels:  code-quality, code-analysis
Eslint Plugin Import
ESLint plugin with rules that help validate proper imports.
Stars: ✭ 3,722 (+74340%)
Mutual labels:  linting, code-quality
precommit-hook
Automatically check your python code on every commit. 🔍 ✔️
Stars: ✭ 16 (+220%)
Mutual labels:  linting, git-hooks
Phpdependencyanalysis
Static code analysis to find violations in a dependency graph
Stars: ✭ 505 (+10000%)
Mutual labels:  code-quality, code-analysis
Husky.Net
Git hooks made easy with Husky.Net internal task runner! 🐶 It brings the dev-dependency concept to the .NET world!
Stars: ✭ 394 (+7780%)
Mutual labels:  linting, git-hooks
checksync
A tool for detecting when related text blocks change
Stars: ✭ 14 (+180%)
Mutual labels:  linting, code-quality
Flakehell
Flake8 wrapper to make it nice, legacy-friendly, configurable.
Stars: ✭ 217 (+4240%)
Mutual labels:  linting, code-quality
codeclimate-eslint
Code Climate Engine for ESLint
Stars: ✭ 86 (+1620%)
Mutual labels:  linting, code-quality
Htmlhint
⚙️ The static code analysis tool you need for your HTML
Stars: ✭ 2,723 (+54360%)
Mutual labels:  code-quality, code-analysis
Editorconfig Checker
A tool to verify that your files are in harmony with your .editorconfig
Stars: ✭ 119 (+2280%)
Mutual labels:  linting, code-quality
Wotan
Pluggable TypeScript and JavaScript linter
Stars: ✭ 271 (+5320%)
Mutual labels:  code-quality, code-analysis
Sonar Kotlin
SonarQube plugin for Kotlin
Stars: ✭ 412 (+8140%)
Mutual labels:  code-quality, code-analysis

App-GitHooks

Build Status Coverage Status CPAN License

App::GitHooks is an extensible and easy to configure git hooks framework that supports many plugins.

OVERVIEW

  • Here's an example of it in action, running the pre-commit hook checks before the commit message can be entered:

    Successful checks

  • Here is another example, with a Perl file that fails compilation this time:

    Failing checks

INSTALLATION

  1. Install this distribution (with cpanm or your preferred CPAN client):

     cpanm App::GitHooks
    
  2. Install the plugins you are interested in (with cpanmor your prefered CPAN client), as App::GitHooks does not bundle them. See the list of plugins below, but for example:

     cpanm App::GitHooks::Plugin::BlockNOCOMMIT
     cpanm App::GitHooks::Plugin::DetectCommitNoVerify
     ...
    
  3. Go to the git repository for which you want to set up git hooks, and run:

     githooks install
    
  4. Enjoy!

OFFICIALLY SUPPORTED PLUGINS

Prevent committing code with #NOCOMMIT mentions.

Prevent commits in a production environment.

Find out when someone uses --no-verify and append the pre-commit checks to the commit message.

Force running a specific tool at regular intervals.

Detect discrepancies between the ticket ID specified by the branch name and the one in the commit message.

Verify that Perl files compile without errors.

Verify that all changes and addition to the Perl files pass PerlCritic checks.

Enforce a specific Perl interpreter on the first line of Perl files.

Verify that the syntax of PgBouncer auth files is correct.

Derive a ticket ID from the branch name and prepend it to the commit-message.

Require a commit message.

Verify that staged Ruby files compile.

Validate POD format in Perl and POD files.

CONTRIBUTED PLUGINS

Verify that staged Ruby files compile.

Prevent trailing whitespace from being committed.

SUPPORT AND DOCUMENTATION

After installing, you can find documentation for this module with the perldoc command.

perldoc App::GitHooks

You can also look for information at:

LICENSE AND COPYRIGHT

Copyright (C) 2013-2017 Guillaume Aubert.

This code is free software; you can redistribute it and/or modify it under the same terms as Perl 5 itself.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the LICENSE file for more details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].