Skip to content

postsharp/PostSharp.Engineering.CodeStyle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

PostSharp Engineering: Code Style Features

Make sure you have read and understood PostSharp Engineering before reading this doc.

Table of contents

Introduction

This repository contains centralized code-style configurations and scripts.

Unified base code-style is found under Standard directory.

Other projects using slightly altered code-style configuration are in their own directories, respective to the name of the project.

Installation

  1. Copy the PostSharp.Engineering.CodeStyle repo to your own repo into eng/style using PostSharp.Engineering.BuildTools, with the command:

    .\Build.ps1 codestyle pull
    

    This tool will create a symlink for .editorconfig.

  2. Enable symlinks for your repo (edit .git/config).

  3. For each solution, in Rider, open Settings, choose "Manage Layers", select the team-shared layer, click on the + icon and then on "Open Settings File", then choose eng/style/CommonStyle.DotSettings. This step is required for code formatting using Build.ps1 codestyle format, even if you are otherwise not using Rider.

Configuration

The code quality configuration is configured in the following files:

  • .editorconfig
  • CommonStyle.DotSettings (used by JetBrains tools)
  • stylecop.json

Code style cleanup

  1. Commit all your changes. You cannot reformat a repo with uncommitted changes.
  2. Do .\Build.ps1 codestyle format from the repo root (see PostSharp.Engineering).

About

.editorconfig and Rider configuration for our projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published