Commit 85662a9

Karn Wong <[email protected]>
2023-12-28 14:30:02
init commit
.gitignore
@@ -0,0 +1,2 @@
+.env
+swissknife
.pre-commit-config.yaml
@@ -0,0 +1,37 @@
+---
+repos:
+  - repo: https://github.com/pre-commit/pre-commit-hooks
+    rev: v4.5.0
+    hooks:
+      - id: trailing-whitespace
+      - id: end-of-file-fixer
+      - id: check-yaml
+      - id: check-added-large-files
+      - id: check-case-conflict
+      - id: check-executables-have-shebangs
+      - id: check-json
+      - id: check-shebang-scripts-are-executable
+      - id: check-toml
+      - id: detect-private-key
+      - id: fix-byte-order-marker
+      - id: mixed-line-ending
+  # ----------------------- OPS -----------------------
+  - repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
+    rev: 0.2.3
+    hooks:
+      - id: yamlfmt
+        args: [--mapping, "2", --sequence, "4", --offset, "2", --width, "150", --preserve-quotes]
+        exclude: ^.github/dependabot.yml
+  # ----------------------- GOLANG -----------------------
+  - repo: https://github.com/dnephin/pre-commit-golang
+    rev: v0.5.1
+    hooks:
+      - id: go-fmt
+      - id: go-vet
+      - id: go-imports
+      # - id: no-go-testing
+      - id: golangci-lint
+      # - id: go-critic
+      # - id: go-unit-tests
+      - id: go-build
+      - id: go-mod-tidy
README.md
@@ -0,0 +1,5 @@
+# Swissknife
+
+๐Ÿ‡จ๐Ÿ‡ญ๐Ÿ”ช
+
+Because I'm too lazy to remember all the commands.