Skip to content
This repository has been archived by the owner on Sep 24, 2019. It is now read-only.

Tool that uses Roslyn to automatically rewrite the source based on given coding styles

License

Notifications You must be signed in to change notification settings

shiftkey/Octokit.CodeFormatter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeFormatter

Build status

CodeFormatter is a tool that uses Roslyn to automatically rewrite the source to follow our coding styles, which are documented here.

Prerequisites

In order to build or run this tool you will need to have Microsoft Build Tools 2015 Preview installed. This comes as a part of Visual Studio 2015 Preview or can be installed separately from here.

Usage

In order get the usage, simply invoke the tool with no arguments:

$ .\CodeFormatter.exe
CodeFormatter <project or solution> [<rule types>] [/file:<filename>] [/nocopyright] [/c:<config1,config2> [/copyright:file]
    <rule types> - Rule types to use in addition to the default ones.
                   Use ConvertTests to convert MSTest tests to xUnit.
    <filename>   - Only apply changes to files with specified name.
    <configs>    - Additional preprocessor configurations the formatter
                   should run under.
    <copyright>  - Specifies file containing copyright header.

Contributing

We follow the same contribution process that corefx is using.

About

Tool that uses Roslyn to automatically rewrite the source based on given coding styles

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 99.6%
  • Batchfile 0.4%