소스 검색

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.