Skip to content

Commit b6533a4

Browse files
authored
Disable maligned linter. (#269)
Disable check due to: > consul/config.go:5:13:warning: struct of size 200 could be 192 (maligned)
1 parent 33394b5 commit b6533a4

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ check-deps: deps
5555
(go get github.com/alecthomas/gometalinter && gometalinter --install)
5656

5757
check: check-deps $(SOURCES) test
58-
gometalinter ./... --deadline 720s --vendor -D dupl -D gotype -D errcheck -D gas -D golint -D aligncheck -D vetshadow -E gofmt
58+
gometalinter ./... --deadline 720s --vendor -D dupl -D gotype -D errcheck -D gas -D golint -D aligncheck -D vetshadow -D maligned -E gofmt
5959

6060
format:
6161
goimports -w -l $(APP_SOURCES)

apps/task_test.go

+8-8
Original file line numberDiff line numberDiff line change
@@ -106,17 +106,17 @@ func TestIsHealthy(t *testing.T) {
106106
// then
107107
assert.True(t, task.IsHealthy())
108108

109-
// when
110-
task.State = "TASK_KILLING"
109+
// when
110+
task.State = "TASK_KILLING"
111111

112-
// then
113-
assert.False(t, task.IsHealthy())
112+
// then
113+
assert.False(t, task.IsHealthy())
114114

115-
// when
116-
task.State = "TASK_RUNNING"
115+
// when
116+
task.State = "TASK_RUNNING"
117117

118-
// then
119-
assert.True(t, task.IsHealthy())
118+
// then
119+
assert.True(t, task.IsHealthy())
120120
}
121121

122122
func TestId_String(t *testing.T) {

0 commit comments

Comments
 (0)