Skip to content

Commit

Permalink
CodeMaid gets its own solution-specific configuration to exclude clea…
Browse files Browse the repository at this point in the history
…nup on some data files within the integration tests. Also, CodeMaid on CodeMaid.
  • Loading branch information
codecadwallader committed Jul 11, 2015
1 parent 23311c1 commit 648fe77
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
3 changes: 1 addition & 2 deletions CodeMaid.UnitTests/Formatting/ListFormattingTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#endregion CodeMaid is Copyright 2007-2015 Steve Cadwallader.

using Microsoft.VisualStudio.TestTools.UnitTesting;
using SteveCadwallader.CodeMaid.Model.Comments;
using SteveCadwallader.CodeMaid.Properties;
using System;

Expand Down Expand Up @@ -71,7 +70,7 @@ public void ListFormattingTests_NumberedList()
@"Some trailing text.";

Settings.Default.Formatting_CommentWrapColumn = 30;

CommentFormatHelper.AssertEqualAfterFormat(input, expected);
}

Expand Down
15 changes: 15 additions & 0 deletions CodeMaid.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="SteveCadwallader.CodeMaid.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
</sectionGroup>
</configSections>
<userSettings>
<SteveCadwallader.CodeMaid.Properties.Settings>
<setting name="Cleaning_ExclusionExpression" serializeAs="String">
<value>\.Designer\.cs$||\.Designer\.vb$||\.resx$||CodeMaid.IntegrationTests\\.*\\Data\\</value>
</setting>
</SteveCadwallader.CodeMaid.Properties.Settings>
</userSettings>
</configuration>
2 changes: 1 addition & 1 deletion CodeMaid/Logic/Cleaning/CodeCleanupAvailabilityLogic.cs
Original file line number Diff line number Diff line change
Expand Up @@ -382,4 +382,4 @@ private static bool PromptUserAboutCleaningExternalFiles(Document document)

#endregion Private Methods
}
}
}

0 comments on commit 648fe77

Please sign in to comment.