Skip to content

Commit 1fa3e01

Browse files
committed
Removed trailing space from ToDo markers
1 parent e2d8f37 commit 1fa3e01

File tree

5 files changed

+24
-24
lines changed

5 files changed

+24
-24
lines changed

RetailCoder.VBE/Properties/Settings.Designer.cs

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

RetailCoder.VBE/Properties/Settings.settings

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,15 @@
147147
</Setting>
148148
<Setting Name="ToDoMarker_ToDo" Type="Rubberduck.Settings.ToDoMarker" Scope="Application">
149149
<Value Profile="(Default)">&lt;?xml version="1.0" encoding="utf-16"?&gt;
150-
&lt;ToDoMarker xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Text="TODO " /&gt;</Value>
150+
&lt;ToDoMarker xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Text="TODO" /&gt;</Value>
151151
</Setting>
152152
<Setting Name="ToDoMarker_Note" Type="Rubberduck.Settings.ToDoMarker" Scope="Application">
153153
<Value Profile="(Default)">&lt;?xml version="1.0" encoding="utf-16"?&gt;
154-
&lt;ToDoMarker xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Text="NOTE " /&gt;</Value>
154+
&lt;ToDoMarker xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Text="NOTE" /&gt;</Value>
155155
</Setting>
156156
<Setting Name="ToDoMarker_Bug" Type="Rubberduck.Settings.ToDoMarker" Scope="Application">
157157
<Value Profile="(Default)">&lt;?xml version="1.0" encoding="utf-16"?&gt;
158-
&lt;ToDoMarker xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Text="BUG " /&gt;</Value>
158+
&lt;ToDoMarker xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Text="BUG" /&gt;</Value>
159159
</Setting>
160160
</Settings>
161161
</SettingsFile>

RetailCoder.VBE/UI/Settings/TodoSettingsViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public CommandBase AddTodoCommand
4444
{
4545
var placeholder = TodoSettings.Count(m => m.Text.StartsWith("PLACEHOLDER")) + 1;
4646
TodoSettings.Add(
47-
new ToDoMarker(string.Format("PLACEHOLDER{0} ",
47+
new ToDoMarker(string.Format("PLACEHOLDER{0}",
4848
placeholder == 1 ? string.Empty : placeholder.ToString(CultureInfo.InvariantCulture))));
4949
});
5050
}

RetailCoder.VBE/app.config

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,19 +189,19 @@
189189
<setting name="ToDoMarker_ToDo" serializeAs="Xml">
190190
<value>
191191
<ToDoMarker xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
192-
xmlns:xsd="http://www.w3.org/2001/XMLSchema" Text="TODO " />
192+
xmlns:xsd="http://www.w3.org/2001/XMLSchema" Text="TODO" />
193193
</value>
194194
</setting>
195195
<setting name="ToDoMarker_Note" serializeAs="Xml">
196196
<value>
197197
<ToDoMarker xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
198-
xmlns:xsd="http://www.w3.org/2001/XMLSchema" Text="NOTE " />
198+
xmlns:xsd="http://www.w3.org/2001/XMLSchema" Text="NOTE" />
199199
</value>
200200
</setting>
201201
<setting name="ToDoMarker_Bug" serializeAs="Xml">
202202
<value>
203203
<ToDoMarker xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
204-
xmlns:xsd="http://www.w3.org/2001/XMLSchema" Text="BUG " />
204+
xmlns:xsd="http://www.w3.org/2001/XMLSchema" Text="BUG" />
205205
</value>
206206
</setting>
207207
</Rubberduck.Properties.Settings>

RubberduckTests/Settings/TodoSettingsTests.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ private Configuration GetDefaultConfig()
1414
{
1515
ToDoMarkers = new[]
1616
{
17-
new ToDoMarker("NOTE "),
18-
new ToDoMarker("TODO "),
19-
new ToDoMarker("BUG ")
17+
new ToDoMarker("NOTE"),
18+
new ToDoMarker("TODO"),
19+
new ToDoMarker("BUG")
2020
}
2121
};
2222

@@ -30,7 +30,7 @@ private Configuration GetNondefaultConfig()
3030
{
3131
ToDoMarkers = new[]
3232
{
33-
new ToDoMarker("PLACEHOLDER ")
33+
new ToDoMarker("PLACEHOLDER")
3434
}
3535
};
3636

@@ -82,7 +82,7 @@ public void AddTodoMarker()
8282

8383
viewModel.AddTodoCommand.Execute(null);
8484
var todoMarkersList = defaultConfig.UserSettings.ToDoListSettings.ToDoMarkers.ToList();
85-
todoMarkersList.Add(new ToDoMarker("PLACEHOLDER "));
85+
todoMarkersList.Add(new ToDoMarker("PLACEHOLDER"));
8686

8787
Assert.IsTrue(todoMarkersList.SequenceEqual(viewModel.TodoSettings));
8888
}
@@ -130,22 +130,22 @@ public void DuplicateToDoMarkersAreIgnored()
130130
{
131131
ToDoMarkers = new[]
132132
{
133-
new ToDoMarker("NOTE "),
134-
new ToDoMarker("TODO "),
135-
new ToDoMarker("BUG "),
136-
new ToDoMarker("PLACEHOLDER "),
137-
new ToDoMarker("PLACEHOLDER ")
133+
new ToDoMarker("NOTE"),
134+
new ToDoMarker("TODO"),
135+
new ToDoMarker("BUG"),
136+
new ToDoMarker("PLACEHOLDER"),
137+
new ToDoMarker("PLACEHOLDER")
138138
}
139139
};
140140

141141
var expected = new ToDoListSettings
142142
{
143143
ToDoMarkers = new[]
144144
{
145-
new ToDoMarker("NOTE "),
146-
new ToDoMarker("TODO "),
147-
new ToDoMarker("BUG "),
148-
new ToDoMarker("PLACEHOLDER ")
145+
new ToDoMarker("NOTE"),
146+
new ToDoMarker("TODO"),
147+
new ToDoMarker("BUG"),
148+
new ToDoMarker("PLACEHOLDER")
149149
}
150150
};
151151

0 commit comments

Comments
 (0)