You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by mh...@apache.org on 2011/08/12 23:01:27 UTC

[Lucene.Net] svn commit: r1157251 - in /incubator/lucene.net/branches/Lucene.Net_4e/src: Lucene.Net.TestFramework/ Lucene.Net/Analysis/TokenAttributes/

Author: mherndon
Date: Fri Aug 12 21:01:26 2011
New Revision: 1157251

URL: http://svn.apache.org/viewvc?rev=1157251&view=rev
Log:
fixing style cop warnings

Added:
    incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net.TestFramework/Settings.StyleCop
Modified:
    incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net.TestFramework/Lucene.Net.TestFramework.csproj
    incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net.TestFramework/TestCategories.cs
    incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net/Analysis/TokenAttributes/CharTermAttribute.cs

Modified: incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net.TestFramework/Lucene.Net.TestFramework.csproj
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net.TestFramework/Lucene.Net.TestFramework.csproj?rev=1157251&r1=1157250&r2=1157251&view=diff
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net.TestFramework/Lucene.Net.TestFramework.csproj (original)
+++ incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net.TestFramework/Lucene.Net.TestFramework.csproj Fri Aug 12 21:01:26 2011
@@ -53,6 +53,12 @@
   <ItemGroup>
     <None Include="Lucene.Net.snk" />
   </ItemGroup>
+  <ItemGroup>
+    <ProjectReference Include="..\Lucene.Net\Lucene.Net.csproj">
+      <Project>{07A5FF70-1EFE-4B0B-B338-5CA56C3A2826}</Project>
+      <Name>Lucene.Net</Name>
+    </ProjectReference>
+  </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.

Added: incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net.TestFramework/Settings.StyleCop
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net.TestFramework/Settings.StyleCop?rev=1157251&view=auto
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net.TestFramework/Settings.StyleCop (added)
+++ incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net.TestFramework/Settings.StyleCop Fri Aug 12 21:01:26 2011
@@ -0,0 +1,56 @@
+<StyleCopSettings Version="105">
+  <Parsers>
+    <Parser ParserId="StyleCop.CSharp.CsParser">
+      <ParserSettings>
+        <BooleanProperty Name="AnalyzeDesignerFiles">False</BooleanProperty>
+      </ParserSettings>
+    </Parser>
+  </Parsers>
+  <Analyzers>
+    <Analyzer AnalyzerId="StyleCop.CSharp.DocumentationRules">
+      <Rules>
+        <Rule Name="PropertyDocumentationMustHaveValue">
+          <RuleSettings>
+            <BooleanProperty Name="Enabled">True</BooleanProperty>
+          </RuleSettings>
+        </Rule>
+        <Rule Name="PropertyDocumentationMustHaveValueText">
+          <RuleSettings>
+            <BooleanProperty Name="Enabled">True</BooleanProperty>
+          </RuleSettings>
+        </Rule>
+        <Rule Name="DocumentationTextMustBeginWithACapitalLetter">
+          <RuleSettings>
+            <BooleanProperty Name="Enabled">True</BooleanProperty>
+          </RuleSettings>
+        </Rule>
+        <Rule Name="DocumentationTextMustEndWithAPeriod">
+          <RuleSettings>
+            <BooleanProperty Name="Enabled">True</BooleanProperty>
+          </RuleSettings>
+        </Rule>
+        <Rule Name="DocumentationTextMustMeetMinimumCharacterLength">
+          <RuleSettings>
+            <BooleanProperty Name="Enabled">True</BooleanProperty>
+          </RuleSettings>
+        </Rule>
+        <Rule Name="FileHeaderMustHaveSummary">
+          <RuleSettings>
+            <BooleanProperty Name="Enabled">True</BooleanProperty>
+          </RuleSettings>
+        </Rule>
+      </Rules>
+      <AnalyzerSettings />
+    </Analyzer>
+    <Analyzer AnalyzerId="StyleCop.CSharp.ReadabilityRules">
+      <Rules>
+        <Rule Name="DoNotUseRegions">
+          <RuleSettings>
+            <BooleanProperty Name="Enabled">True</BooleanProperty>
+          </RuleSettings>
+        </Rule>
+      </Rules>
+      <AnalyzerSettings />
+    </Analyzer>
+  </Analyzers>
+</StyleCopSettings>
\ No newline at end of file

Modified: incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net.TestFramework/TestCategories.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net.TestFramework/TestCategories.cs?rev=1157251&r1=1157250&r2=1157251&view=diff
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net.TestFramework/TestCategories.cs (original)
+++ incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net.TestFramework/TestCategories.cs Fri Aug 12 21:01:26 2011
@@ -31,6 +31,9 @@ namespace Lucene.Net
     /// </summary>
     public class TestCategories
     {
+        /// <summary>
+        /// Unit tests.
+        /// </summary>
         public const string Unit = "Unit";
     }
 }
\ No newline at end of file

Modified: incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net/Analysis/TokenAttributes/CharTermAttribute.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net/Analysis/TokenAttributes/CharTermAttribute.cs?rev=1157251&r1=1157250&r2=1157251&view=diff
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net/Analysis/TokenAttributes/CharTermAttribute.cs (original)
+++ incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net/Analysis/TokenAttributes/CharTermAttribute.cs Fri Aug 12 21:01:26 2011
@@ -206,7 +206,7 @@ namespace Lucene.Net.Analysis.TokenAttri
 
             CharTermAttribute innerValue = value as CharTermAttribute;
 
-            char[] array =  innerValue == null ? value.Buffer.ToArray() : innerValue.buffer;
+            char[] array = (innerValue == null) ? value.Buffer.ToArray() : innerValue.buffer;
             
             Array.Copy(array, 0, this.InternalResizeBuffer(this.termLength + length), this.termLength, length);
             this.termLength += length;