Skip to content

x/tools/go/analysis/passes/printf: suggest Printf calls without args to use Print #69515

@pierrre

Description

@pierrre

Go version

1.23.1

Output of go env in your module/workspace:

no relevant

What did you do?

Run the "printf" pass with go vet or golangci-lint

What did you see happen?

It doesn't detect anything for fmt.Printf("some message").

What did you expect to see?

Maybe it should suggest to rewrite fmt.Printf("some message") => fmt.Print("some message"), because it doesn't use any argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.ToolsThis label describes issues relating to any tools in the x/tools repository.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions