Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 678 Bytes

README.md

File metadata and controls

11 lines (8 loc) · 678 Bytes

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