Skip to content

Fix suppressed staticcheck issue QF1012 #226

@lindnerby

Description

@lindnerby

Description

With the new version of golangci-lint to 2.1.6 there are new issues reported. One of these issues is:
QF1012: Use fmt.Fprintf(...) instead of WriteString(fmt.Sprintf(...)) (staticcheck), which is basically a hint to make use of the Fprintf functionality that supports buffered writing.

Applying the fixes for this issues results in breaking changes, since the recommended function returns error, whereas the current impl often has no error handling.

Reasons

Limit suppressed linter issues.

Acceptance Criteria

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions