mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 21:07:18 +00:00
aaa3abf630
* wip * working for some ast nodes * works for all but assignment * works for all but mixed assignments * change test name * plug in the analyzer * remove `copy` from predeclared list * rename few shadowing names * rename `len` to `length` * add one more test case * rename `panic` to `panicResult` * replace `panic` with `panicResult` in error message * remove test case not covered by the tool * add `byte` to predeclared list * additional test cases * rename `copy` to `copyHandler` * exclude functions with receivers * revert to good names Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
29 lines
990 B
Python
29 lines
990 B
Python
load("@prysm//tools/go:def.bzl", "go_library")
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_tool_library")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = ["analyzer.go"],
|
|
importpath = "github.com/prysmaticlabs/prysm/tools/analyzers/shadowpredecl",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"@org_golang_x_tools//go/analysis:go_default_library",
|
|
"@org_golang_x_tools//go/analysis/passes/inspect:go_default_library",
|
|
"@org_golang_x_tools//go/ast/inspector:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_tool_library(
|
|
name = "go_tool_library",
|
|
srcs = ["analyzer.go"],
|
|
importpath = "github.com/prysmaticlabs/prysm/tools/analyzers/shadowpredecl",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"@org_golang_x_tools//go/analysis:go_tool_library",
|
|
"@org_golang_x_tools//go/analysis/passes/inspect:go_tool_library",
|
|
"@org_golang_x_tools//go/ast/inspector:go_tool_library",
|
|
],
|
|
)
|
|
|
|
# gazelle:exclude analyzer_test.go
|