dotnet/roslyn

No (obvious) way to enforce a file header with a block comment

オープン

#47,228 opened on 2020/08/28

 (4 件のコメント) (0 件のリアクション) (0 人の担当者)C# (4,257 件のフォーク)batch import
Area-IDEDesign NotesIDE-CodeStylehelp wanted

Repository metrics

Stars
 (20,414 個のスター)
PR merge metrics
 (平均マージ 6d 17h) (30d で 256 merged PRs)

説明

Version Used: Version 16.8.0 Preview 3.0 [30427.246.main]

I'm in a code base with a block comment header. According to the spec it seems like it was thought, but it's very unobvious how to make that work: https://github.com/dotnet/roslyn/issues/33012 and https://docs.microsoft.com/en-us/visualstudio/ide/reference/add-file-header?view=vs-2019 don't indicate how to support his.

Steps to Reproduce:

.editorconfig with:

file_header_template = /********************************************************\n*                                                        *\n*   © Copyright (C) Microsoft. All rights reserved.      *\n*                                                        *\n*********************************************************/

Expected Behavior:

/********************************************************
*                                                        *
*   © Copyright (C) Microsoft. All rights reserved.      *
*                                                        *
*********************************************************/

Actual Behavior:

// /********************************************************
// *                                                        *
// *   © Copyright (C) Microsoft. All rights reserved.      *
// *                                                        *
// *********************************************************/

コントリビューターガイド