mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-07 22:54:17 -05:00
**What type of PR is this?** Tooling **What does the PR do?** Every call to `httputil.HandleError` must be followed by a `return` statement. It's easy to miss this during reviews, so having a static analyzer that enforces this will make our life easier. **Acknowledgements** - [x] I have read [CONTRIBUTING.md](https://github.com/prysmaticlabs/prysm/blob/develop/CONTRIBUTING.md). - [x] I have included a uniquely named [changelog fragment file](https://github.com/prysmaticlabs/prysm/blob/develop/CONTRIBUTING.md#maintaining-changelogmd). - [x] I have added a description with sufficient context for reviewers to understand this PR. - [x] I have tested that my changes work as expected and I added a testing plan to the PR description (if applicable). --------- Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
14 lines
473 B
Python
14 lines
473 B
Python
load("@prysm//tools/go:def.bzl", "go_library")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = ["analyzer.go"],
|
|
importpath = "github.com/OffchainLabs/prysm/v7/tools/analyzers/httperror",
|
|
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",
|
|
],
|
|
)
|