Skip to content

Commit aa55e20

Browse files
committed
Enable gocritic
Signed-off-by: Kazuyoshi Kato <[email protected]>
1 parent e8d3222 commit aa55e20

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.golangci.yml

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ linters:
4040
- paralleltest
4141
- cyclop # because we have gocyclo already
4242
# TODO: review the linters below. We disabled them to make the CI pass first.
43-
- gocritic
4443
- containedctx
4544
- ireturn
4645
- varnamelen

jsonschema_test.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,7 @@ func TestOptionalJSONSchemaSuite(t *testing.T) {
194194

195195
// Further testing with all formats recognized by strfmt
196196
func TestFormat_JSONSchemaExtended(t *testing.T) {
197-
jsonFormatSchemaFixturesPath := filepath.Join(formatFixturesPath)
198-
files, err := ioutil.ReadDir(jsonFormatSchemaFixturesPath)
197+
files, err := ioutil.ReadDir(formatFixturesPath)
199198
if err != nil {
200199
t.Fatal(err)
201200
}
@@ -213,7 +212,7 @@ func TestFormat_JSONSchemaExtended(t *testing.T) {
213212
return
214213
}
215214
t.Log("Running [extended formats] " + specName)
216-
b, _ := ioutil.ReadFile(filepath.Join(jsonFormatSchemaFixturesPath, fileName))
215+
b, _ := ioutil.ReadFile(filepath.Join(formatFixturesPath, fileName))
217216
doTestSchemaSuite(t, b)
218217
})
219218
}

0 commit comments

Comments
 (0)