Files
prysm/tools/analyzers
Preston Van Loon 2aa52fb56a Add static analyzer to discourage use of panic() (#15075)
* Implement static analysis to prevent panics

* Add nopanic to nogo

* Fix violations and add exclusions

Fix violations and add exclusions for all

* Changelog fragment

* Use pass.Report instead of pass.Reportf

* Remove strings.ToLower for checking init method name

* Add exclusion for herumi init

* Move api/client/beacon template function to init and its own file

* Fix nopanic testcase
2025-03-19 18:04:15 +00:00
..
2025-01-24 04:53:23 +00:00
2024-02-15 05:46:47 +00:00
2024-02-15 05:46:47 +00:00
2024-02-15 05:46:47 +00:00
2024-02-15 05:46:47 +00:00
2024-02-15 05:46:47 +00:00
2024-02-15 05:46:47 +00:00
2024-02-15 05:46:47 +00:00

Running analyzer unit tests

Analyzers' unit tests are ignored in bazel's build files, and therefore are not being triggered as part of the CI pipeline. Because of this they should be invoked manually when writing a new analyzer or making changes to an existing one. Otherwise, any issues will go unnoticed during the CI build.

The easiest way to run all unit tests for all analyzers is go test ./tools/analyzers/...