Skip to content

Commit 76d0319

Browse files
fix symlinks, fix pre-commit configuration
1 parent 1b69017 commit 76d0319

File tree

4 files changed

+70
-5
lines changed

4 files changed

+70
-5
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ terraform.rc
5656
azure_env.sh
5757
.releaserc.json
5858

59-
# Pre-commit hook
60-
.pre-commit-config.yaml
61-
6259
# VS Code
6360
.vscode/
6461
.envrc

.golangci.yaml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.golangci.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
version: "2"
2+
run:
3+
# Timeout for analysis, e.g. 30s, 5m.
4+
timeout: 5m
5+
allow-parallel-runners: true

.pre-commit-config.yaml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# .pre-commit-config.yaml
2+
repos:
3+
- repo: local
4+
hooks:
5+
- id: forbidden-files
6+
name: forbidden files
7+
entry:
8+
found Copier update rejection files; review and remove them before
9+
merging.
10+
language: fail
11+
files: "\\.rej$"
12+
- repo: https://github.com/pre-commit/pre-commit-hooks
13+
rev: v4.5.0
14+
hooks:
15+
- id: trailing-whitespace
16+
- id: check-case-conflict
17+
- id: check-executables-have-shebangs
18+
- id: check-json
19+
- id: check-merge-conflict
20+
args: [--assume-in-merge]
21+
- id: check-shebang-scripts-are-executable
22+
- id: check-yaml
23+
args:
24+
- --allow-multiple-documents
25+
- id: end-of-file-fixer
26+
- id: mixed-line-ending
27+
args:
28+
- --fix=auto
29+
- repo: https://github.com/antonbabenko/pre-commit-terraform
30+
rev: v1.99.0
31+
hooks:
32+
- id: terraform_fmt
33+
- id: terraform_validate
34+
- id: terraform_docs
35+
args:
36+
- --hook-config=--path-to-file=README.md
37+
- --hook-config=--add-to-existing-file=true
38+
- --hook-config=--create-file-if-not-exist=true
39+
- --args=--sort=false
40+
- repo: https://github.com/golangci/golangci-lint
41+
rev: v2.6.2
42+
hooks:
43+
- id: golangci-lint
44+
name: golangci-lint
45+
description: Fast linters runner for Go.
46+
entry: golangci-lint run --fix
47+
types: [go]
48+
language: golang
49+
pass_filenames: false
50+
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
51+
rev: v9.22.0
52+
hooks:
53+
- id: commitlint
54+
stages: [commit-msg]
55+
additional_dependencies: ["@commitlint/config-conventional"]
56+
- repo: https://github.com/Yelp/detect-secrets
57+
rev: v1.5.0
58+
hooks:
59+
- id: detect-secrets
60+
args: ["--baseline", ".secrets.baseline"]
61+
exclude: package.lock.json

.tflint.hcl

Lines changed: 0 additions & 1 deletion
This file was deleted.

.tflint.hcl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
plugin "terraform" {
2+
enabled = true
3+
preset = "recommended"
4+
}

0 commit comments

Comments
 (0)