From 1d002582f0785b67d1dde625111f667c1b6cfba3 Mon Sep 17 00:00:00 2001 From: Johan Walles Date: Sun, 13 Feb 2022 08:22:57 +0100 Subject: [PATCH] Move golangci-lint config into a config file --- .golangci.yaml | 3 +++ test.sh | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 .golangci.yaml diff --git a/.golangci.yaml b/.golangci.yaml new file mode 100644 index 0000000..4ad9dfc --- /dev/null +++ b/.golangci.yaml @@ -0,0 +1,3 @@ +linters: + enable: + - gofmt diff --git a/test.sh b/test.sh index beb595b..cbfed23 100755 --- a/test.sh +++ b/test.sh @@ -11,11 +11,11 @@ echo Building sources... ./build.sh # Linting -echo 'Linting, repro any errors locally using "golangci-lint run --enable gofmt"...' +echo 'Linting, repro any errors locally using "golangci-lint run"...' echo ' Linting without tests...' -golangci-lint run --tests=false --enable gofmt +golangci-lint run --tests=false echo ' Linting with tests...' -golangci-lint run --tests=true --enable gofmt +golangci-lint run --tests=true # Unit tests echo "Running unit tests..."