aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorleilaes2019-04-10 19:43:34 +1200
committerrfjakob2019-04-10 13:33:58 +0200
commitcc0a603ef8a691b01fbd0f6a99e7d4e1d36608f7 (patch)
tree03857ff4c4dbddf417d84b375749fe42fb749a0f
parent7d81494a649f3f871bfeb4bb129cbfa738fbef67 (diff)
Add CodeLingo Tenet to fix missing close file
-rw-r--r--codelingo.yaml4
-rw-r--r--tests/fsck/fsck_test.go1
2 files changed, 5 insertions, 0 deletions
diff --git a/codelingo.yaml b/codelingo.yaml
new file mode 100644
index 0000000..8e5d778
--- /dev/null
+++ b/codelingo.yaml
@@ -0,0 +1,4 @@
+tenets:
+- import: codelingo/effective-go
+- import: codelingo/code-review-comments
+- import: codelingo/rfjakob-gocryptfs
diff --git a/tests/fsck/fsck_test.go b/tests/fsck/fsck_test.go
index 5ece6cd..f56e21c 100644
--- a/tests/fsck/fsck_test.go
+++ b/tests/fsck/fsck_test.go
@@ -85,6 +85,7 @@ func TestExampleFses(t *testing.T) {
t.Errorf("fsck returned code %d but fs should be clean", code)
}
}
+ dirfd.Close()
}
// TestTerabyteFile verifies that fsck does something intelligent when it hits