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:
parent
542d71f5e0
commit
1d002582f0
3
.golangci.yaml
Normal file
3
.golangci.yaml
Normal file
@ -0,0 +1,3 @@
|
||||
linters:
|
||||
enable:
|
||||
- gofmt
|
6
test.sh
6
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..."
|
||||
|
Loading…
Reference in New Issue
Block a user