2021-06-30 19:22:09 +00:00
|
|
|
load("@prysm//tools/go:def.bzl", "go_library", "go_test")
|
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_tool_library")
|
2020-04-13 04:11:09 +00:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = ["analyzer.go"],
|
|
|
|
importpath = "github.com/prysmaticlabs/prysm/tools/analyzers/errcheck",
|
|
|
|
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 = "errcheck",
|
|
|
|
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",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
|
|
|
srcs = ["embedded_walker_test.go"],
|
|
|
|
embed = [":go_default_library"],
|
2020-08-25 15:23:06 +00:00
|
|
|
deps = [
|
|
|
|
"//shared/testutil/assert:go_default_library",
|
|
|
|
"//shared/testutil/require:go_default_library",
|
|
|
|
],
|
2020-04-13 04:11:09 +00:00
|
|
|
)
|