From 55a161570b2a2be87fc6573af745d8be52c1bcc2 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Sun, 25 Jun 2017 14:21:59 +0200 Subject: [PATCH] [SL.Core] Enabled stylecop. --- src/SixLabors.Core/Properties/AssemblyInfo.cs | 4 ++-- src/SixLabors.Core/SixLabors.Core.csproj | 8 ++++++++ stylecop.json | 18 ++++++++++++------ 3 files changed, 22 insertions(+), 8 deletions(-) diff --git a/src/SixLabors.Core/Properties/AssemblyInfo.cs b/src/SixLabors.Core/Properties/AssemblyInfo.cs index ab2cf3b4a..b7c0287db 100644 --- a/src/SixLabors.Core/Properties/AssemblyInfo.cs +++ b/src/SixLabors.Core/Properties/AssemblyInfo.cs @@ -1,5 +1,5 @@ -// -// Copyright (c) Scott Williams and contributors. +// +// Copyright (c) Six Labors and contributors. // Licensed under the Apache License, Version 2.0. // diff --git a/src/SixLabors.Core/SixLabors.Core.csproj b/src/SixLabors.Core/SixLabors.Core.csproj index 66b67c535..c479c3cc1 100644 --- a/src/SixLabors.Core/SixLabors.Core.csproj +++ b/src/SixLabors.Core/SixLabors.Core.csproj @@ -30,11 +30,19 @@ SixLabors + + ..\..\SixLabors.ruleset + + + + + All + diff --git a/stylecop.json b/stylecop.json index df3c8c9d8..02d23f59d 100644 --- a/stylecop.json +++ b/stylecop.json @@ -1,9 +1,15 @@ { - "$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json", - "settings": { - "documentationRules": { - "companyName": "Scott Williams", - "copyrightText": "Copyright (c) Scott Williams and contributors.\nLicensed under the Apache License, Version 2.0." + "$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json", + "settings": + { + "orderingRules": + { + "usingDirectivesPlacement": "outsideNamespace" + }, + "documentationRules": + { + "companyName": "Six Labors", + "copyrightText": "Copyright (c) Six Labors and contributors.\nLicensed under the Apache License, Version 2.0." + } } - } } \ No newline at end of file