Skip to content

Add "idescriptive" linter #3723

Open
Open
@leonklingele

Description

@leonklingele

Your feature request related to a problem? Please describe.

The idescriptive linter reports obscure interfaces, complaining about funcs whose in/out parameters are unnamed.

type BadSingleParam interface {
	NoReturn(int)                          // want `missing name for incoming parameter int in method NoReturn\(int\)`
	SingleReturn(bool) (x int)             // want `missing name for incoming parameter bool in method SingleReturn\(bool\) \(x int\)`
	DoubleReturn(Empty) (y int, err error) // want `missing name for incoming parameter Empty in method DoubleReturn\(Empty\) \(y int, err error\)`
}

https://github.com/maratori/idescriptive

Describe the solution you'd like.

Describe alternatives you've considered.

Additional context.

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or improvementlinter: newSupport new linterno decisionNo decision to fix or not

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions