csharpier icon indicating copy to clipboard operation
csharpier copied to clipboard

Spacing after StyleCop.Analyzers file header

Open JamieJamesJamie opened this issue 1 year ago • 1 comments

Feature request to add spacing after a file header that may include copyright information.

In my case, the file header is generated by the StyleCop.Analyzers package and may be configured.

Input:

// <copyright file="MyFile.cs" company="MyCompany">
// Copyright (c) MyCompany. All rights reserved.
// </copyright>
#nullable enable

or

// <copyright file="MyFile.cs" company="MyCompany">
// Copyright (c) MyCompany. All rights reserved.
// </copyright>
namespace My.Namespace

Output:

// <copyright file="MyFile.cs" company="MyCompany">
// Copyright (c) MyCompany. All rights reserved.
// </copyright>
#nullable enable

or

// <copyright file="MyFile.cs" company="MyCompany">
// Copyright (c) MyCompany. All rights reserved.
// </copyright>
namespace My.Namespace

Expected behavior:

// <copyright file="MyFile.cs" company="MyCompany">
// Copyright (c) MyCompany. All rights reserved.
// </copyright>

#nullable enable

or

// <copyright file="MyFile.cs" company="MyCompany">
// Copyright (c) MyCompany. All rights reserved.
// </copyright>

namespace My.Namespace

JamieJamesJamie avatar Feb 05 '24 14:02 JamieJamesJamie

This issue is stale because it has been open 180 days with no activity and was not assigned a label or milestone. Leave a comment if this still needs to be addressed or this will be closed in 7 days.

github-actions[bot] avatar Dec 05 '25 19:12 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Dec 13 '25 01:12 github-actions[bot]