Explorar el Código

golangci-lint: suppress Xattrs is deprecated: Use PAXRecords instead

```
pkg/archive/archive.go:407:3:       SA1019: hdr.Xattrs is deprecated: Use PAXRecords instead.  (staticcheck)
pkg/archive/archive.go:408:3:       SA1019: hdr.Xattrs is deprecated: Use PAXRecords instead.  (staticcheck)
pkg/archive/archive.go:661:26:      SA1019: hdr.Xattrs is deprecated: Use PAXRecords instead.  (staticcheck)
pkg/archive/archive_linux.go:47:7:  SA1019: hdr.Xattrs is deprecated: Use PAXRecords instead.  (staticcheck)
pkg/archive/archive_linux.go:48:12: SA1019: hdr.Xattrs is deprecated: Use PAXRecords instead.  (staticcheck)
```

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn hace 5 años
padre
commit
df7d719e4c
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8 0
      hack/validate/golangci-lint.yml

+ 8 - 0
hack/validate/golangci-lint.yml

@@ -46,3 +46,11 @@ issues:
     - text: "G202: SQL string concatenation"
       linters:
         - gosec
+    # FIXME temporarily suppress these. See #39924
+    - text: "SA1019: h.Xattrs is deprecated: Use PAXRecords instead"
+      linters:
+        - staticcheck
+    # FIXME temporarily suppress these. See #39924
+    - text: "SA1019: hdr.Xattrs is deprecated: Use PAXRecords instead"
+      linters:
+        - staticcheck