Skip to content

Commit

Permalink
pre-commit - basic config and hook
Browse files Browse the repository at this point in the history
  • Loading branch information
mfederowicz committed Oct 6, 2023
1 parent cd2737a commit ff47318
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- repo: https://github.com/mgechev/revive
#for start use dev tag, after development we switch to proper tags with versions
rev: dev-pre-commit
hooks:
- id: revive
5 changes: 5 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- id: revive
name: revive
description: Beautiful Go linter
entry: revive
language: golang

0 comments on commit ff47318

Please sign in to comment.