Browse Source

Fix stylecop issues

Former-commit-id: 32fab43d5caf3080106d0abdcd6e629370af58ac
Former-commit-id: 9aeaff7b7a973554d98e7b2932e1e4d5ca489176
Former-commit-id: 52800893572012a00a3331cc6cab3f8f449fd26d
pull/17/head
James Jackson-South 10 years ago
parent
commit
8eed86a484
  1. 1
      .gitignore
  2. 5
      src/ImageProcessor/Colors/Color.cs
  3. 2
      src/ImageProcessor/Colors/Formats/Bgra32.cs
  4. 1
      src/ImageProcessor/Common/Helpers/PixelOperations.cs
  5. 6
      src/ImageProcessor/ImageProcessor.csproj
  6. 5
      src/ImageProcessor/Samplers/Resize.cs
  7. 2
      src/ImageProcessor/project.lock.json.REMOVED.git-id
  8. 13
      src/ImageProcessor/stylecop.json

1
.gitignore

@ -108,6 +108,7 @@ TestResults
*.Cache
ClientBin
stylecop.*
!stylecop.json
~$*
*.dbmdl
Generated_Code #added for RIA/Silverlight projects

5
src/ImageProcessor/Colors/Color.cs

@ -16,6 +16,11 @@ namespace ImageProcessor
/// </remarks>
public struct Color
{
/// <summary>
/// Represents a <see cref="Color"/> that has R, G, B, and A values set to zero.
/// </summary>
public static readonly Color Empty = default(Color);
/// <summary>
/// The backing vector for SIMD support.
/// </summary>

2
src/ImageProcessor/Colors/Formats/Bgra32.cs

@ -26,7 +26,7 @@ namespace ImageProcessor
public static readonly Bgra32 Transparent = new Bgra32(255, 255, 255, 0);
/// <summary>
/// Represents a black <see cref="Bgra32"/> that has B, G, R, and A values set to 0, 0, 0, 0.
/// Represents a black <see cref="Bgra32"/> that has B, G, R, and A values set to 0, 0, 0, 255.
/// </summary>
public static readonly Bgra32 Black = new Bgra32(0, 0, 0, 255);

1
src/ImageProcessor/Common/Helpers/PixelOperations.cs

@ -6,7 +6,6 @@
namespace ImageProcessor
{
using System;
using System.Collections.Concurrent;
/// <summary>
/// Performs per-pixel operations.

6
src/ImageProcessor/ImageProcessor.csproj

@ -39,6 +39,7 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>bin\Release\ImageProcessor.XML</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<Compile Include="Colors\Formats\Cmyk.cs" />
@ -237,13 +238,14 @@
<None Include="Formats\Jpg\README.md" />
<None Include="Formats\Png\Zlib\README.md" />
<None Include="project.json" />
<AdditionalFiles Include="stylecop.json" />
</ItemGroup>
<ItemGroup>
<None Include="Formats\Bmp\README.md" />
<None Include="Formats\Png\README.md" />
</ItemGroup>
<ItemGroup />
<ItemGroup>
<AdditionalFiles Include="stylecop.json" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.

5
src/ImageProcessor/Samplers/Resize.cs

@ -1,13 +1,12 @@
// <copyright file="Resize.cs" company="James South">
// Copyright (c) James South and contributors.
// Licensed under the Apache License, Version 2.0.
// Copyright (c) James South and contributors
// Licensed under the Apache License, Version 2.0. license.
// </copyright>
namespace ImageProcessor.Samplers
{
using System;
using System.Collections.Generic;
using System.Numerics;
using System.Threading.Tasks;
/// <summary>

2
src/ImageProcessor/project.lock.json.REMOVED.git-id

@ -1 +1 @@
3f05708641eb3ed085d4689aae4a960eb067fd16
eb00c54ee74016c2b70f81963e7e8f83cb2dd54b

13
src/ImageProcessor/stylecop.json

@ -0,0 +1,13 @@
{
"$schema": "https://raw.githubusercontent.com/DotNetAnalyzers/StyleCopAnalyzers/master/StyleCop.Analyzers/StyleCop.Analyzers/Settings/stylecop.schema.json",
"settings": {
"documentationRules": {
"companyName": "James South",
"copyrightText": "Copyright (c) {companyName} and contributors\nLicensed under the {licenseName} license.",
"variables": {
"licenseName": "Apache License, Version 2.0."
},
"documentPrivateFields": true
}
}
}
Loading…
Cancel
Save