Skip to content

AllPublicDeclarationsHaveDocumentation doesn't check enums, actors, or nested declarations #778

Closed
@shawnhyam

Description

@shawnhyam
public enum Foo {}

public actor Bar {}

/// Comment
public struct X {
    public func baz() {}
}

Foo, Bar, and baz are all public declarations, but no warning will be emitted for missing a doc comment. The same issue also exists with BeginDocumentationCommentWithOneLineSummary and UseSynthesizedInitializer (nested structs will be skipped).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions