Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: improve diagnostic #46

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ccoVeille
Copy link
Contributor

An absolute URL is now provided in the diagnostic message.

The Category field helps to classify the diagnostic message in the documentation.

https://pkg.go.dev/golang.org/x/tools/go/analysis#Diagnostic

The Readme file is not yet updated to add these html anchors.

An absolute URL is now provided in the diagnostic message.

The Category field helps to classify the diagnostic message in the documentation.

https://pkg.go.dev/golang.org/x/tools/go/analysis#Diagnostic

The Readme file is not yet updated to add these html anchors.
@@ -58,6 +58,7 @@ func New() *analysis.Analyzer {
n := newPerfSprint()
r := &analysis.Analyzer{
Name: "perfsprint",
URL: "https://github.com/catenacyber/perfsprint",
Doc: "Checks that fmt.Sprintf can be replaced with a faster alternative.",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BTW @alexandear @mmorel-35 @catenacyber Do you have a better text to suggest for this field ?

Here is mine

Suggested change
Doc: "Checks that fmt.Sprintf can be replaced with a faster alternative.",
Doc: "Checks instances of fmt.Sprintf, fmt.Sprint, and fmt.Errorf that could be replaced with more performant alternatives.",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant