IntelliTect / IntelliTect/CodingGuidelines
Do use file-based namespace declarations.
- 主要语言
- C#
- 星标
- 12
- 派生
- 16
- 平均合并
- 2 分钟
- 30 天内合并 PR
- 7
描述
The only reason to use scoped-based namespace declarations is when there is more than one namespace define in a file. Since this condition should be avoided in production code, I propose the guideline: Do use file-based namespace declarations.
This wording, however, may not be clear enough. Perhaps Do use file-based namespace declarations and avoid scope-based namespace declarations.
I suspect that over time scope-based namespace declarations will disappear except in legacy code.
贡献指南
调研方向
No file or test is named. Locate the guideline covering namespace declarations, compare its current wording with the proposed file-based preference, and update the guidance so the distinction from scope-based declarations is unambiguous.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- csharp
- 领域
- documentation
- Issue 类型
- 文档
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 42/100