Skip to content

Commit

Permalink
Merge pull request #69 from devops-kung-fu/dj-wip
Browse files Browse the repository at this point in the history
feat: Final updates before releasing 2.4.0
  • Loading branch information
djschleen authored May 31, 2022
2 parents 714f953 + 505d5d8 commit e8a79bc
Show file tree
Hide file tree
Showing 26 changed files with 106 additions and 362 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
hookz
coverage.out

.gitorade
.gitorade.DS_Store
9 changes: 7 additions & 2 deletions .hookz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
args: ["-s", "-w", "**/*.go"]
- name: "golint: Lint all go files"
exec: golint
args: ["./..."] #to error out, add the arg "-set_exit_status"
args: ["-set_exit_status", "./..."] #to error out, add the arg "-set_exit_status"
- name: "errcheck: Ensure that errors are checked"
exec: errcheck
args: ["-ignoretests", "./..."]
Expand All @@ -47,4 +47,9 @@
args: ["app", "-json", "-output", "hookz-sbom.json"]
- name: "git: Add all changed files during the pre-commit stage"
exec: git
args: ["add", "."]
args: ["add", "."]
- type: pre-push
actions:
- name: "hookz: example pre-push hook"
exec: /bin/echo
args: ["Pushing changes..."]
1 change: 0 additions & 1 deletion .vscode/configurationCache.log

This file was deleted.

5 changes: 0 additions & 5 deletions .vscode/dryrun.log

This file was deleted.

287 changes: 0 additions & 287 deletions .vscode/targets.log

This file was deleted.

7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,19 @@ help: ## This help

.DEFAULT_GOAL := help


title:
@echo "Hookz Makefile"
@echo "--------------"

build: ## Builds the application
go get -u ./...
go mod tidy
go build

check: build ## Tests the pre-commit hooks if they exist
./hookz reset --verbose --debug --verbose-output
. .git/hooks/pre-commit

test: ## Runs tests and coverage
go test -v -coverprofile=coverage.out ./... && go tool cover -func=coverage.out

Expand Down
Loading

0 comments on commit e8a79bc

Please sign in to comment.