]> granicus.if.org Git - handbrake/commitdiff
WinGui: Setup the Stylecop rules to be a bit more relaxed.
authorsr55 <sr55.hb@outlook.com>
Sat, 11 Feb 2017 15:47:50 +0000 (15:47 +0000)
committersr55 <sr55.hb@outlook.com>
Sat, 11 Feb 2017 15:47:50 +0000 (15:47 +0000)
win/CS/HandBrake.ApplicationServices/HandBrake.ApplicationServices.csproj
win/CS/HandBrake.ruleset [new file with mode: 0644]
win/CS/HandBrakeWPF/HandBrakeWPF.csproj

index 636663704efff699bba411a8fcbdad06a62fe9d2..70c3a9d5196c3de73df1223b3816847d20ee9dfe 100644 (file)
@@ -37,6 +37,7 @@
     <DefineConstants>TRACE;DEBUG</DefineConstants>\r
     <UseVSHostingProcess>true</UseVSHostingProcess>\r
     <Prefer32Bit>false</Prefer32Bit>\r
+    <CodeAnalysisRuleSet>..\HandBrake.ruleset</CodeAnalysisRuleSet>\r
   </PropertyGroup>\r
   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">\r
     <PlatformTarget>AnyCPU</PlatformTarget>\r
diff --git a/win/CS/HandBrake.ruleset b/win/CS/HandBrake.ruleset
new file mode 100644 (file)
index 0000000..c614992
--- /dev/null
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<RuleSet Name="HandBrake" ToolsVersion="14.0">
+  <Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
+    <Rule Id="SA1116" Action="None" />
+    <Rule Id="SA1124" Action="None" />
+    <Rule Id="SA1413" Action="None" />
+    <Rule Id="SA1623" Action="None" />
+    <Rule Id="SA1028" Action="None" />
+    <Rule Id="SA1513" Action="None" />
+    <Rule Id="SA1101" Action="None" />
+    <Rule Id="SA1503" Action="None" />
+    <Rule Id="SA1501" Action="None" />
+    <Rule Id="SA1117" Action="None" />
+    <Rule Id="SA1119" Action="None" />
+    <Rule Id="SA1512" Action="None" />
+    <Rule Id="SA1515" Action="None" />
+    <Rule Id="SA1516" Action="None" />
+    <Rule Id="SA1300" Action="None" />
+    <Rule Id="SA1307" Action="None" />
+  </Rules>
+</RuleSet>
\ No newline at end of file
index 99f07ea194ec51f807e4ce49734dfc68a84e4f92..e28bec1dd233b8a97c57040b78daae358aa09bdc 100644 (file)
@@ -65,7 +65,7 @@
     <CodeAnalysisIgnoreBuiltInRules>true</CodeAnalysisIgnoreBuiltInRules>\r
     <UseVSHostingProcess>true</UseVSHostingProcess>\r
     <Prefer32Bit>false</Prefer32Bit>\r
-    <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>\r
+    <CodeAnalysisRuleSet>..\HandBrake.ruleset</CodeAnalysisRuleSet>\r
   </PropertyGroup>\r
   <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">\r
     <OutputPath>bin\x64\Release\</OutputPath>\r