mirror of
https://github.com/kairos-io/provider-k3s.git
synced 2025-09-02 05:34:34 +00:00
22 lines
761 B
YAML
22 lines
761 B
YAML
![]() |
# install pre-commit on your system and then
|
||
|
# run pre-commit install in this repository.
|
||
|
# You can by pass commit hooks with:
|
||
|
# git commit -n
|
||
|
repos:
|
||
|
- repo: https://github.com/tekwizely/pre-commit-golang
|
||
|
rev: v1.0.0-rc.1
|
||
|
hooks:
|
||
|
- id: go-mod-tidy
|
||
|
- repo: https://github.com/golangci/golangci-lint
|
||
|
rev: v1.61.0
|
||
|
hooks:
|
||
|
- id: golangci-lint
|
||
|
name: golangci-lint
|
||
|
description: Fast linters runner for Go. Note that only modified files are linted, so linters like 'unused' that need to scan all files won't work as expected.
|
||
|
entry: golangci-lint run --new-from-rev HEAD --whole-files -v
|
||
|
types: [go]
|
||
|
language: golang
|
||
|
require_serial: true
|
||
|
pass_filenames: false
|
||
|
verbose: true
|