Skip to content

Commit

Permalink
Enable gocritic
Browse files Browse the repository at this point in the history
Signed-off-by: Kazuyoshi Kato <[email protected]>
  • Loading branch information
kzys committed Feb 14, 2022
1 parent e8d3222 commit aa55e20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ linters:
- paralleltest
- cyclop # because we have gocyclo already
# TODO: review the linters below. We disabled them to make the CI pass first.
- gocritic
- containedctx
- ireturn
- varnamelen
Expand Down
5 changes: 2 additions & 3 deletions jsonschema_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,7 @@ func TestOptionalJSONSchemaSuite(t *testing.T) {

// Further testing with all formats recognized by strfmt
func TestFormat_JSONSchemaExtended(t *testing.T) {
jsonFormatSchemaFixturesPath := filepath.Join(formatFixturesPath)
files, err := ioutil.ReadDir(jsonFormatSchemaFixturesPath)
files, err := ioutil.ReadDir(formatFixturesPath)
if err != nil {
t.Fatal(err)
}
Expand All @@ -213,7 +212,7 @@ func TestFormat_JSONSchemaExtended(t *testing.T) {
return
}
t.Log("Running [extended formats] " + specName)
b, _ := ioutil.ReadFile(filepath.Join(jsonFormatSchemaFixturesPath, fileName))
b, _ := ioutil.ReadFile(filepath.Join(formatFixturesPath, fileName))
doTestSchemaSuite(t, b)
})
}
Expand Down

0 comments on commit aa55e20

Please sign in to comment.