Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlo Strokov <pstrokov@gitlab.com>2020-09-25 13:17:31 +0300
committerPavlo Strokov <pstrokov@gitlab.com>2020-09-25 13:17:31 +0300
commitca209ee3573edcb23aeccec9d5c1751646af5b97 (patch)
tree0bdeec4bba9ceb2ed6ed13f4bdfc61eebcc41492
parent7d0252b8406dfccde40375887279dbd9fb665d5a (diff)
parentc557296bbe92be7de4ea784f9b1f6580dbc59d4e (diff)
Merge branch 'pks-catfile-formatting' into 'master'
catfile: Fix formatting for the objectinfo fuzzer See merge request gitlab-org/gitaly!2597
-rw-r--r--Makefile3
-rw-r--r--internal/git/catfile/objectinfo_fuzz.go3
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 1fb15a876..db8225bbc 100644
--- a/Makefile
+++ b/Makefile
@@ -248,7 +248,8 @@ lint: ${GOLANGCI_LINT} libgit2
${Q}${GOLANGCI_LINT} cache clean && ${GOLANGCI_LINT} run --build-tags "${GO_BUILD_TAGS}" --out-format tab --config ${SOURCE_DIR}/.golangci.yml
.PHONY: check-formatting
-check-formatting: ${GITALYFMT}
+check-formatting: ${GOIMPORTS} ${GITALYFMT}
+ ${Q}${GOIMPORTS} -l $(call find_go_sources) | awk '{ print } END { if(NR>0) { print "goimports error, run make format"; exit(1) } }'
${Q}${GITALYFMT} $(call find_go_sources) | awk '{ print } END { if(NR>0) { print "Formatting error, run make format"; exit(1) } }'
.PHONY: format
diff --git a/internal/git/catfile/objectinfo_fuzz.go b/internal/git/catfile/objectinfo_fuzz.go
index ab3cdaddf..a6507cdb8 100644
--- a/internal/git/catfile/objectinfo_fuzz.go
+++ b/internal/git/catfile/objectinfo_fuzz.go
@@ -7,9 +7,8 @@ import (
"bytes"
)
-func Fuzz(data [] byte) int {
+func Fuzz(data []byte) int {
reader := bufio.NewReader(bytes.NewReader(data))
ParseObjectInfo(reader)
return 0
}
-