소스 검색

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 5 년 전
부모
커밋
df7d719e4c
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  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