Skip to content
This repository has been archived by the owner on Apr 15, 2022. It is now read-only.

schlotter/Community.StyleCop.Rules

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/.

About

Additional rules for Microsoft StyleCop

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages