Skip to content

Inspection / action to move the error to an exported error #2361

@dlsniper

Description

@dlsniper

Hi,

After reading the thread here: https://www.reddit.com/r/golang/comments/47eeqq/error_best_practices_in_libraries I thought it would be cool if the plugin could detect if errors.New() or fmt.Errorf() is used (only with a constant string) and have an action to export it as an error defined in the package.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions