ソースを参照

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

Alexey Alexandrov 6 年 前
コミット
763d9ee456
共有1 個のファイルを変更した6 個の追加1 個の削除を含む
  1. 6
    1
      test.sh

+ 6
- 1
test.sh ファイルの表示

@@ -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.