Skip to content

Commit 038a968

Browse files
authored
chore: enable gofmt formatter (#158)
1 parent 01be18c commit 038a968

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.golangci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
output:
22
sort-results: true
33
linters:
4+
enable:
5+
- gofmt
46
# prettier-ignore
57
disable:
68
- tagliatelle # we're parsing data from external sources

main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,6 @@ This flag can be passed multiple times to ignore different vulnerabilities`)
624624
continue
625625
}
626626

627-
628627
ignores := make(
629628
[]string,
630629
0,

pkg/database/mem-check.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
// an OSV database that lives in-memory, and can be used by other structs
88
// that handle loading the vulnerabilities from where ever
99
type memDB struct {
10-
vulnerabilities []OSV
10+
vulnerabilities []OSV
1111
}
1212

1313
func (db *memDB) Vulnerabilities(includeWithdrawn bool) []OSV {

pkg/semantic/parse_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ func TestParse_LeadingV(t *testing.T) {
288288

289289
expectParsedVersionToMatchString(t, "version210", "version210", semantic.Version{
290290
LeadingV: false,
291-
Components: asBigInts(t, ),
291+
Components: asBigInts(t),
292292
Build: "version210",
293293
})
294294
}

0 commit comments

Comments
 (0)