Skip to content

x/tools/go/analysis/passes/modernize: minmax: suggest deletion of redundant min and max functions #75589

@cuiweixie

Description

@cuiweixie

Proposal Details

I proposal to add a checker to check whether user has impl a max/min instead of builtin max/min.
And suggest user to replace with builtin max/min.
search

language:go "func min"

in github with get about 142k result in code.

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.RefactoringIssues related to refactoring toolsToolsThis label describes issues relating to any tools in the x/tools repository.help wanted

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions