Skip to content

Ridje/detekt-pre-commit-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Detekt pre-commit hook example

Description

Pre-commit hook example that uses detekt to reveal code smells and aims to improve your code readability.

Installation

  1. Install detekt CLI. You can check installation by printing in terminal `detekt --version'.
  2. [Optional] Put your custom detekt rules to ${prjectDir}/config/detekt/config.yml file.
  3. Put file pre-commit in your ${projectDir}/.git/hooks directory
  4. Mark pre-commit file as executable: chmod +x ${projectDir}/.git/hooks/pre-commit

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages