Sfoglia il codice sorgente

Fix staticcheck warning SA6004 that was recently added in the tool (#405)

Alexey Alexandrov 6 anni fa
parent
commit
763d9ee456
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6
    1
      test.sh

+ 6
- 1
test.sh Vedi File

@@ -8,7 +8,12 @@ echo "mode: $MODE" > coverage.txt
8 8
 # All packages.
9 9
 PKG=$(go list ./...)
10 10
 
11
-staticcheck $PKG
11
+staticcheck -ignore '
12
+github.com/google/pprof/internal/binutils/binutils_test.go:SA6004
13
+github.com/google/pprof/internal/driver/svg.go:SA6004
14
+github.com/google/pprof/internal/report/source_test.go:SA6004
15
+github.com/google/pprof/profile/filter_test.go:SA6004
16
+' $PKG
12 17
 unused $PKG
13 18
 
14 19
 # Packages that have any tests.