Skip to content

SA1514 is falsely reported when documenting types declared in the global namespace #3849

Open
@Arthri

Description

/// <summary>
/// X.
/// </summary>
public class K
{
}

SA1514: Element documentation header should be preceded by blank line is reported on the first /// in the file. Adding the new line resolves the diagnostic but instead raises SA1517: Code should not contain blank lines at start of file, leading to an infinite loop. Furthermore, the class has been intentionally declared in the global namespace, so there is no space for a namespace declaration

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions