Go 1.17 prep - ignore vendor directory in staticcheck (#3114)
Go 1.17 prep - ignore vendor directory in staticcheck (#3114)

A few vendored dependencies have benign staticcheck errors
when using Go 1.17.

This commit simply filters out vendor directories in staticcheck output
since the intention of the linter is to check Fabric source only.

Note - it is not possible to filter the vendor directories as input to staticcheck,
as they will still show up when the Fabric package that uses them gets checked.
Have to filter the output instead.

Signed-off-by: David Enyeart <3d699cfec69cc11a9ba1c3a1aef3260ab163489b@us.ibm.com>
hyperledger/fabric,manish-sethi/fabric,hyperledger/fabric,jimthematrix/fabric,jimthematrix/fabric,manish-sethi/fabric