Add new static analyzer: ineffassign (#7413)

* test defined

* first working impl

* register analyzer

* cleanup

* removes unused code

* secure rand in slasher/detection/testing

* Updates test

* fixes ineffassign type checks

* one more

Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
This commit is contained in:
Victor Farazdagi
2020-10-02 23:56:18 +03:00
committed by GitHub
parent 690fa12f1a
commit ecfdb354a7
8 changed files with 739 additions and 0 deletions

View File

@@ -111,6 +111,7 @@ nogo(
"//tools/analyzers/shadowpredecl:go_tool_library",
"//tools/analyzers/nop:go_tool_library",
"//tools/analyzers/slicedirect:go_tool_library",
"//tools/analyzers/ineffassign:go_tool_library",
] + select({
# nogo checks that fail with coverage enabled.
":coverage_enabled": [],