Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

vfs: ignore false positive from the unused linter

albertony6c9d377bbbb5
diff --git a/vfs/dir.go b/vfs/dir.go
index 2087dc638..c466c4b5d 100644
--- a/vfs/dir.go
+++ b/vfs/dir.go
@@ -75,6 +75,9 @@ func (d *Dir) String() string {
}
// Dumps the directory tree to the string builder with the given indent
+//
+//lint:ignore U1000 false positive when running staticcheck,
+//nolint:unused // Don't include unused when running golangci-lint
func (d *Dir) dumpIndent(out *strings.Builder, indent string) {
if d == nil {
fmt.Fprintf(out, "%s<nil *Dir>\n", indent)
@@ -109,6 +112,9 @@ func (d *Dir) dumpIndent(out *strings.Builder, indent string) {
}
// Dumps a nicely formatted directory tree to a string
+//
+//lint:ignore U1000 false positive when running staticcheck,
+//nolint:unused // Don't include unused when running golangci-lint
func (d *Dir) dump() string {
var out strings.Builder
d.dumpIndent(&out, "")