1
1
mirror of https://github.com/walles/moar.git synced 2024-08-16 15:30:34 +03:00

Move golangci-lint config into a config file

This commit is contained in:
Johan Walles 2022-02-13 08:22:57 +01:00
parent 542d71f5e0
commit 1d002582f0
2 changed files with 6 additions and 3 deletions

3
.golangci.yaml Normal file
View File

@ -0,0 +1,3 @@
linters:
enable:
- gofmt

View File

@ -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..."