Hand-crafted pre-commit hooks for pre-commit.com.
Go to file
Stanislav Nikitin f5589906d6
Script should be executable.
2020-05-12 22:17:54 +05:00
.gitignore Initial commit with golangci-lint. 2020-05-12 22:16:07 +05:00
.pre-commit-hooks.yaml Initial commit with golangci-lint. 2020-05-12 22:16:07 +05:00
LICENSE Initial commit with golangci-lint. 2020-05-12 22:16:07 +05:00
README.md Initial commit with golangci-lint. 2020-05-12 22:16:07 +05:00
golangci-lint-mod.sh Script should be executable. 2020-05-12 22:17:54 +05:00

README.md

pre-commit hooks for golang

This repository contains pre-commit hooks for modern Golang developers.

Using

Add this to your .pre-commit-config.yaml:

repos:
  - repo: https://sources.dev.pztrn.name/pztrn/pre-commit-hooks-golang
    rev: master
    hooks:
      - id: golangci-lint-mod
      ...

Hooks list

  • golangci-lint-mod - executes golangci-lint in module mode (GO111MODULES=on)