Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
quite committed Aug 15, 2024
1 parent 5c57551 commit 5216a5f
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 1,155 deletions.
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ linters:
- gocognit
- nestif
- exhaustruct # TODO? annoying for now
- goerr113 # TODO enable later
- err113 # TODO enable later
- godot
- godox
- depguard
Expand Down
17 changes: 12 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ check-deviceapp-hashes:
clean:
rm -f age-plugin-tkey

.PHONY: lint
lint:
make -C gotools golangci-lint
./gotools/golangci-lint run


.PHONY: build-in-container
build-in-container:
Expand All @@ -33,3 +28,15 @@ build-in-container:
build-image:
#--pull=always --no-cache
podman build -t localhost/tkey-apps-builder -f Containerfile


golangci_version=v1.60.1
golangci_cachedir=$(HOME)/.cache/golangci-lint-$(golangci_version)
.PHONY: lint
lint:
mkdir -p $(golangci_cachedir)
podman run --rm -it \
-v $$(pwd):/src -w /src \
-v $(golangci_cachedir):/root/.cache \
docker.io/golangci/golangci-lint:$(golangci_version)-alpine \
golangci-lint run
7 changes: 0 additions & 7 deletions gotools/Makefile

This file was deleted.

188 changes: 0 additions & 188 deletions gotools/go.mod

This file was deleted.

Loading

0 comments on commit 5216a5f

Please sign in to comment.