This repository has been archived by the owner on Jan 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from tulilirockz/main
feat: linting + precommit + devcontainer
- Loading branch information
Showing
6 changed files
with
45 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM docker.io/library/fedora:latest | ||
|
||
RUN dnf update -y && dnf install device-mapper-devel gpgme-devel btrfs-progs-devel golang-go golint golang-honnef-tools golang-mvdan-gofumpt && dnf clean all -y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/go | ||
{ | ||
"name": "Go", | ||
"dockerFile": ".devcontainer/Containerfile", | ||
"workspaceMount": ".", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v2.3.0 | ||
hooks: | ||
- id: check-yaml | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: mixed-line-ending | ||
- id: check-symlinks | ||
- id: check-added-large-files | ||
- repo: https://github.com/golangci/golangci-lint | ||
rev: v1.56.2 | ||
hooks: | ||
- id: golangci-lint-full | ||
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt | ||
rev: 0.2.3 | ||
hooks: | ||
- id: yamlfmt | ||
- repo: https://github.com/mrtazz/checkmake.git | ||
rev: 0.2.2 | ||
hooks: | ||
- id: checkmake | ||
- repo: https://github.com/Bahjat/pre-commit-golang | ||
rev: v1.0.2 | ||
hooks: | ||
- id: go-fmt-import | ||
- id: go-vet | ||
- id: go-lint | ||
- id: go-unit-tests | ||
- id: gofumpt # requires github.com/mvdan/gofumpt | ||
- id: go-static-check # install https://staticcheck.io/docs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
[bext-devbox] | ||
additional_packages="rpkg rpmdevtools copr-cli tito rpm-build" | ||
image=fedora:latest | ||
image=docker.io/library/fedora:latest | ||
init=false | ||
start_now=true | ||
init_hooks="touch /init-normal" | ||
nvidia=true | ||
pre_init_hooks="touch /pre-init" | ||
pull=true | ||
root=false | ||
replace=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
[build-devbox] | ||
additional_packages="device-mapper-devel gpgme-devel btrfs-progs-devel golang-go" | ||
image=fedora:latest | ||
additional_packages="device-mapper-devel gpgme-devel btrfs-progs-devel golang-go golint golang-honnef-tools golang-mvdan-gofumpt" | ||
image=docker.io/library/fedora:latest | ||
init=false | ||
start_now=true | ||
init_hooks="touch /init-normal" | ||
nvidia=true | ||
pre_init_hooks="touch /pre-init" | ||
pull=true | ||
root=false | ||
replace=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters