github.com/alwitt/goutils@v0.6.4/.pre-commit-config.yaml (about)

     1  # See https://pre-commit.com for more information
     2  # See https://pre-commit.com/hooks.html for more hooks
     3  repos:
     4    - repo: https://github.com/dnephin/pre-commit-golang.git
     5      rev: v0.5.1
     6      hooks:
     7        - id: go-fmt
     8        # - id: go-vet
     9        - id: go-lint
    10        - id: go-imports
    11        # - id: go-cyclo
    12        #   args: [-over=15]
    13        - id: validate-toml
    14        # - id: no-go-testing
    15        # - id: gometalinter
    16        - id: golangci-lint
    17        # - id: go-critic
    18        # - id: go-unit-tests
    19        # - id: go-build
    20        - id: go-mod-tidy
    21    - repo: https://github.com/pre-commit/pre-commit-hooks
    22      rev: v4.4.0
    23      hooks:
    24        - id: check-byte-order-marker
    25        - id: check-case-conflict
    26        - id: check-json
    27          exclude: ".vscode"
    28        - id: check-merge-conflict
    29        - id: check-toml
    30        - id: check-xml
    31        - id: debug-statements
    32        - id: end-of-file-fixer
    33        - id: mixed-line-ending
    34          args: ["--fix=lf"]
    35        - id: requirements-txt-fixer
    36        - id: sort-simple-yaml
    37        - id: trailing-whitespace