Skip to content

rule exported add checkPublicInterface option to check documentation in public interface definition #1002

Closed
@comdiv

Description

@comdiv

For now this code is valid:

// Some - some interface
type Some interface {
     // Correct - should do all correct
     Correct()
     // not valid format of comment
     SemiCorrect()
     NonCorrect() // no documentation
}

suggest to add checkPublicInterface to exported rule to check documentation on interface method declaration,
so here SemiCorrect() has not valid comment, and NonCorrect() doesn't have it at all

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions