Skip to content

Commit cb3760d

Browse files
committed
added linter misspell
- find commonly misspelled english words
1 parent c4f708b commit cb3760d

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ linters:
88
- goimports
99
- gofmt
1010
- gofumpt
11+
- misspell
1112

1213
linters-settings:
1314
goimports:

task_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,21 +120,21 @@ func TestEnv(t *testing.T) {
120120
Target: "default",
121121
TrimSpace: false,
122122
Files: map[string]string{
123-
"local.txt": "GOOS='linux' GOARCH='amd64' CGO_ENABLED='0'\n",
124-
"global.txt": "FOO='foo' BAR='overriden' BAZ='baz'\n",
125-
"multiple_type.txt": "FOO='1' BAR='true' BAZ='1.1'\n",
126-
"not-overriden.txt": "QUX='from_os'\n",
123+
"local.txt": "GOOS='linux' GOARCH='amd64' CGO_ENABLED='0'\n",
124+
"global.txt": "FOO='foo' BAR='overridden' BAZ='baz'\n",
125+
"multiple_type.txt": "FOO='1' BAR='true' BAZ='1.1'\n",
126+
"not-overridden.txt": "QUX='from_os'\n",
127127
},
128128
}
129129
tt.Run(t)
130130
t.Setenv("TASK_X_ENV_PRECEDENCE", "1")
131131
experiments.EnvPrecedence = experiments.New("ENV_PRECEDENCE")
132132
ttt := fileContentTest{
133133
Dir: "testdata/env",
134-
Target: "overriden",
134+
Target: "overridden",
135135
TrimSpace: false,
136136
Files: map[string]string{
137-
"overriden.txt": "QUX='from_taskfile'\n",
137+
"overridden.txt": "QUX='from_taskfile'\n",
138138
},
139139
}
140140
ttt.Run(t)

testdata/env/Taskfile.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ tasks:
1515
cmds:
1616
- task: local
1717
- task: global
18-
- task: not-overriden
18+
- task: not-overridden
1919
- task: multiple_type
2020

2121
local:
@@ -31,7 +31,7 @@ tasks:
3131

3232
global:
3333
env:
34-
BAR: overriden
34+
BAR: overridden
3535
cmds:
3636
- echo "FOO='$FOO' BAR='$BAR' BAZ='$BAZ'" > global.txt
3737

@@ -43,10 +43,10 @@ tasks:
4343
cmds:
4444
- echo "FOO='$FOO' BAR='$BAR' BAZ='$BAZ'" > multiple_type.txt
4545

46-
not-overriden:
46+
not-overridden:
4747
cmds:
48-
- echo "QUX='$QUX'" > not-overriden.txt
48+
- echo "QUX='$QUX'" > not-overridden.txt
4949

50-
overriden:
50+
overridden:
5151
cmds:
52-
- echo "QUX='$QUX'" > overriden.txt
52+
- echo "QUX='$QUX'" > overridden.txt

0 commit comments

Comments
 (0)