Browse Source

[SL.Core] Enabled stylecop.

pull/1087/head
Dirk Lemstra 9 years ago
parent
commit
55a161570b
  1. 4
      src/SixLabors.Core/Properties/AssemblyInfo.cs
  2. 8
      src/SixLabors.Core/SixLabors.Core.csproj
  3. 18
      stylecop.json

4
src/SixLabors.Core/Properties/AssemblyInfo.cs

@ -1,5 +1,5 @@
// <copyright file="AssemblyInfo.Common.cs" company="Scott Williams">
// Copyright (c) Scott Williams and contributors.
// <copyright file="AssemblyInfo.cs" company="Six Labors">
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
// </copyright>

8
src/SixLabors.Core/SixLabors.Core.csproj

@ -30,11 +30,19 @@
<RootNamespace>SixLabors</RootNamespace>
</PropertyGroup>
<PropertyGroup>
<CodeAnalysisRuleSet>..\..\SixLabors.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<AdditionalFiles Include="..\..\stylecop.json" />
<Content Include="..\..\stylecop.json" Link="stylecop.json" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="StyleCop.Analyzers" Version="1.1.0-beta004">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
<PackageReference Include="System.Numerics.Vectors" Version="4.3.0" />
</ItemGroup>

18
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."
}
}
}
}
Loading…
Cancel
Save