modulepackage
0.1.1
Repository: https://github.com/black-06/check-deprecated.git
Documentation: pkg.go.dev
# README
check-deprecated
check-deprecated is a Go static analysis tool.
It finds malformed deprecated comments, and finds the use of deprecated function/variable/constant/field
Purpose
We need an analyzer that checks deprecated usage. But as this issue says,
Actually it looks like staticcheck does have an appropriate check (SA1019) but for whatever reason it doesn't seem to work. Might open a separate issue to discuss that.
And I think SA1019 is too strict about the deprecated comments, so that some situations cannot be detected.
We use a very loose detection patterns, you can even customize it.
patterns := []string{"MyDeprecated: "}
// MyDeprecated: don't use it.
func AFunc() {}
Of course, standard comments are always popular, so this repo also provides an analysis to detect malformed deprecated comments.
# Functions
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
# Structs
No description provided by the author
# Type aliases
No description provided by the author