File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ cd $( git rev-parse --show-toplevel)
3
+ make lint
Original file line number Diff line number Diff line change
1
+ -include setup
2
+
1
3
# Default platform commands
2
4
SHELL =/bin/bash
3
5
MKDIR := mkdir -p
@@ -356,7 +358,7 @@ lint-old: $(GOLANGCI_LINT) ## Fast lint including previous issues
356
358
357
359
FMT_PKG ?= cni cns npm
358
360
359
- fmt format : $(GOFUMPT ) # # run gofumpt on $FMT_PKG (default "cni cns npm")
361
+ fmt : $(GOFUMPT ) # # run gofumpt on $FMT_PKG (default "cni cns npm")
360
362
$(GOFUMPT ) -s -w $(FMT_PKG )
361
363
362
364
COVER_PKG ?= .
@@ -383,6 +385,16 @@ test-cyclonus:
383
385
kind :
384
386
kind create cluster --config ./test/kind/kind.yaml
385
387
388
+ # #@ Utilities
389
+
390
+ $(REPO_ROOT ) /.git/hooks/pre-push :
391
+ @ln -s $(REPO_ROOT ) /.hooks/pre-push $(REPO_ROOT ) /.git/hooks/
392
+ @echo installed pre-push hook
393
+
394
+ install-hooks : $(REPO_ROOT ) /.git/hooks/pre-push # # installs git hooks
395
+
396
+ setup : install-hooks # # performs common required repo setup
397
+
386
398
version : # # prints the version
387
399
@echo $(VERSION )
388
400
You can’t perform that action at this time.
0 commit comments