GNU General Public License v3.0

项目介绍

schlotter/Community.StyleCop.Rules 是一个托管在 GitHub 上的开源项目,主要使用 C# 编写,采用 GNU General Public License v3.0 许可证,目前获得 8 个 Star、4 次 Fork。

仓库全名
schlotter/Community.StyleCop.Rules
开源许可证
GNU General Public License v3.0
Star 数
8
Fork 数
4

README 摘要

StyleCop Community Rules ======================== ⚠️ This repository has been archived because its contents are outdated. Nowadays, StyleCop Analyzers shall be used for checking StyleCop rules. The StyleCop "Classic" project which was targeted by this repository is no longer active. (April 15, 2022) ⚠️ StyleCop Community Rules contain additional rules for Microsoft StyleCop. Rules The following rules are available…

完整内容见 GitHub 原始 README 或本页 。

常见问题

Community.StyleCop.Rules 用什么语言开发?

主要使用 C# 编写,采用 GNU General Public License v3.0 许可证,目前有 8 个 Star。

Community.StyleCop.Rules 可以免费商用吗?

仓库标注的许可证为 GNU General Public License v3.0,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 Community.StyleCop.Rules 的源码?

可以直接克隆仓库:git clone https://github.com/schlotter/Community.StyleCop.Rules.git,默认分支为 master;安装与运行步骤见仓库 README。

Community.StyleCop.Rules 最近还在维护吗?

仓库最近一次更新为 2022年4月15日,当前没有未关闭的 Issue;Star 数为 8,可作为社区活跃度的参考。

关于

Additional rules for Microsoft StyleCop

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
17
价值分
6
活跃状态
归档

语言占比

C#

README

StyleCop Community Rules

⚠️ This repository has been archived because its contents are outdated. Nowadays, StyleCop Analyzers shall be used for checking StyleCop rules. The StyleCop “Classic” project which was targeted by this repository is no longer active. (April 15, 2022) ⚠️

StyleCop Community Rules contain additional rules for Microsoft StyleCop.

Rules

The following rules are available:

  • LinesMustNotEndWithWhitespace (CO1000): Checks for trailing whitespace
  • LinesMustNotBeLongerThanNumCharacters (CO1001): Checks that line length does not exceed a configured number of characters
  • FilesMustNotEndWithMultipleEmptyLines (CO1002): Checks for multiple empty lines at the end of file
  • FilesMustEndWithNewline (CO1003): Checks that a file ends with a newline
  • FilesMustNotStartWithWhitespace (CO1004): Checks that file does not start with whitespace

Building the Sources

StyleCop Community Rules are developed with Microsoft Visual Studio 2008. Building the project with the Express Edition should also work.

Copy Microsoft.StyleCop.dll and Microsoft.StyleCop.CSharp.dll from the StyleCop installation directory into this project’s Libraries directory. Then open the solution Community.StyleCop.Rules.sln in Visual Studio and build it. The resulting assembly is called Community.StyleCop.CSharp.Rules.dll.

Download

If you do not want to build the assembly yourself, you can grab it from the download page.

Installation

StyleCop Community Rules require at least Microsoft .NET Framework 3.5.

Copy Community.StyleCop.CSharp.Rules.dll into the StyleCop installation directory. StyleCop will pick up the new rules automatically and use them on its next run.

Configuration

You can configure the rules through StyleCop Settings in Microsoft Visual Studio. Some settings are exposed directly in the Rules tab of StyleCop Settings, others are in the Community Settings tab.

Bugs

If you find bugs in this software, please create an issue or contact me directly. Of course, patches and forks are also welcome!

License

StyleCop Community Rules is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

StyleCop Community Rules is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with StyleCop Community Rules. If not, see http://www.gnu.org/licenses/.

评论

暂无评论