Skip to content

Commit 280bcc6

Browse files
committed
Fix wrong hasResult attributes in inspection xml-docs
1 parent b527bb3 commit 280bcc6

File tree

82 files changed

+165
-165
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+165
-165
lines changed

Rubberduck.CodeAnalysis/Inspections/Concrete/AssignedByValParameterInspection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ namespace Rubberduck.CodeAnalysis.Inspections.Concrete
1515
/// Mutating the inputs destroys the initial state, and makes the intent ambiguous: if the calling code is meant
1616
/// to be able to access the modified values, then the parameter should be passed ByRef; the ByVal modifier might be a bug.
1717
/// </why>
18-
/// <example hasResults="true">
18+
/// <example hasResult="true">
1919
/// <![CDATA[
2020
/// Public Sub DoSomething(ByVal foo As Long)
2121
/// foo = foo + 1 ' is the caller supposed to see the updated value?
2222
/// Debug.Print foo
2323
/// End Sub
2424
/// ]]>
2525
/// </example>
26-
/// <example hasResults="false">
26+
/// <example hasResult="false">
2727
/// <![CDATA[
2828
/// Public Sub DoSomething(ByVal foo As Long)
2929
/// Dim bar As Long

Rubberduck.CodeAnalysis/Inspections/Concrete/AssignmentNotUsedInspection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace Rubberduck.CodeAnalysis.Inspections.Concrete
1919
/// <why>
2020
/// The first assignment is likely redundant, since it is being overwritten by the second.
2121
/// </why>
22-
/// <example hasResults="true">
22+
/// <example hasResult="true">
2323
/// <![CDATA[
2424
/// Public Sub DoSomething()
2525
/// Dim foo As Long
@@ -28,7 +28,7 @@ namespace Rubberduck.CodeAnalysis.Inspections.Concrete
2828
/// End Sub
2929
/// ]]>
3030
/// </example>
31-
/// <example hasResults="false">
31+
/// <example hasResult="false">
3232
/// <![CDATA[
3333
/// Public Sub DoSomething(ByVal foo As Long)
3434
/// Dim bar As Long

Rubberduck.CodeAnalysis/Inspections/Concrete/AttributeValueOutOfSyncInspection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace Rubberduck.CodeAnalysis.Inspections.Concrete
1818
/// Keeping Rubberduck annotation comments in sync with the hidden VB attribute values, surfaces these hidden attributes in the VBE code panes;
1919
/// Rubberduck can rewrite the attributes to match the corresponding annotation comment.
2020
/// </why>
21-
/// <example hasResults="true">
21+
/// <example hasResult="true">
2222
/// <![CDATA[
2323
/// '@Description("foo")
2424
/// Public Sub DoSomething()
@@ -27,7 +27,7 @@ namespace Rubberduck.CodeAnalysis.Inspections.Concrete
2727
/// End Sub
2828
/// ]]>
2929
/// </example>
30-
/// <example hasResults="false">
30+
/// <example hasResult="false">
3131
/// <![CDATA[
3232
/// '@Description("foo")
3333
/// Public Sub DoSomething()

Rubberduck.CodeAnalysis/Inspections/Concrete/BooleanAssignedInIfElseInspection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace Rubberduck.CodeAnalysis.Inspections.Concrete
1313
/// <why>
1414
/// The assignment could be made directly to the result of the conditional Boolean expression instead.
1515
/// </why>
16-
/// <example hasResults="true">
16+
/// <example hasResult="true">
1717
/// <![CDATA[
1818
/// Public Sub DoSomething(ByVal value As Long)
1919
/// Dim result As Boolean
@@ -26,7 +26,7 @@ namespace Rubberduck.CodeAnalysis.Inspections.Concrete
2626
/// End Sub
2727
/// ]]>
2828
/// </example>
29-
/// <example hasResults="false">
29+
/// <example hasResult="false">
3030
/// <![CDATA[
3131
/// Public Sub DoSomething(ByVal value As Long)
3232
/// Dim result As Boolean

Rubberduck.CodeAnalysis/Inspections/Concrete/ConstantNotUsedInspection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Rubberduck.CodeAnalysis.Inspections.Concrete
1414
/// <why>
1515
/// Declarations that are never used should be removed.
1616
/// </why>
17-
/// <example hasResults="true">
17+
/// <example hasResult="true">
1818
/// <![CDATA[
1919
/// Private Const foo As Long = 42
2020
///
@@ -23,7 +23,7 @@ namespace Rubberduck.CodeAnalysis.Inspections.Concrete
2323
/// End Sub
2424
/// ]]>
2525
/// </example>
26-
/// <example hasResults="false">
26+
/// <example hasResult="false">
2727
/// <![CDATA[
2828
/// Private Const foo As Long = 42
2929
///

Rubberduck.CodeAnalysis/Inspections/Concrete/DefTypeStatementInspection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Rubberduck.CodeAnalysis.Inspections.Concrete
1414
/// <why>
1515
/// These declarative statements make the first letter of identifiers determine the data type.
1616
/// </why>
17-
/// <example hasResults="true">
17+
/// <example hasResult="true">
1818
/// <![CDATA[
1919
/// DefBool B
2020
/// DefDbl D

Rubberduck.CodeAnalysis/Inspections/Concrete/DuplicatedAnnotationInspection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace Rubberduck.CodeAnalysis.Inspections.Concrete
1515
/// <why>
1616
/// Rubberduck annotations should not be specified more than once for a given module, member, variable, or expression.
1717
/// </why>
18-
/// <example hasResults="true">
18+
/// <example hasResult="true">
1919
/// <![CDATA[
2020
/// '@Folder("Bar")
2121
/// '@Folder("Foo")
@@ -25,7 +25,7 @@ namespace Rubberduck.CodeAnalysis.Inspections.Concrete
2525
/// End Sub
2626
/// ]]>
2727
/// </example>
28-
/// <example hasResults="false">
28+
/// <example hasResult="false">
2929
/// <![CDATA[
3030
/// '@Folder("Foo.Bar")
3131
///

Rubberduck.CodeAnalysis/Inspections/Concrete/EmptyBlock/EmptyCaseBlockInspection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace Rubberduck.CodeAnalysis.Inspections.Concrete.EmptyBlock
1313
/// <why>
1414
/// Case blocks in VBA do not "fall through"; an empty 'Case' block might be hiding a bug.
1515
/// </why>
16-
/// <example hasResults="true">
16+
/// <example hasResult="true">
1717
/// <![CDATA[
1818
/// Public Sub DoSomething(ByVal foo As Long)
1919
/// Select Case foo
@@ -24,7 +24,7 @@ namespace Rubberduck.CodeAnalysis.Inspections.Concrete.EmptyBlock
2424
/// End Sub
2525
/// ]]>
2626
/// </example>
27-
/// <example hasResults="false">
27+
/// <example hasResult="false">
2828
/// <![CDATA[
2929
/// Public Sub DoSomething(ByVal foo As Long)
3030
/// Select Case foo

Rubberduck.CodeAnalysis/Inspections/Concrete/EmptyBlock/EmptyDoWhileBlockInspection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace Rubberduck.CodeAnalysis.Inspections.Concrete.EmptyBlock
1313
/// <why>
1414
/// Dead code should be removed. A loop without a body is usually redundant.
1515
/// </why>
16-
/// <example hasResults="true">
16+
/// <example hasResult="true">
1717
/// <![CDATA[
1818
/// Public Sub DoSomething(ByVal foo As Long)
1919
/// Do
@@ -22,7 +22,7 @@ namespace Rubberduck.CodeAnalysis.Inspections.Concrete.EmptyBlock
2222
/// End Sub
2323
/// ]]>
2424
/// </example>
25-
/// <example hasResults="false">
25+
/// <example hasResult="false">
2626
/// <![CDATA[
2727
/// Public Sub DoSomething(ByVal foo As Long)
2828
/// Do

Rubberduck.CodeAnalysis/Inspections/Concrete/EmptyBlock/EmptyElseBlockInspection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace Rubberduck.CodeAnalysis.Inspections.Concrete.EmptyBlock
1414
/// Empty code blocks are redundant, dead code that should be removed. They can also be misleading about their intent:
1515
/// an empty block may be signalling an unfinished thought or an oversight.
1616
/// </why>
17-
/// <example hasResults="true">
17+
/// <example hasResult="true">
1818
/// <![CDATA[
1919
/// Public Sub DoSomething(ByVal foo As Boolean)
2020
/// If foo Then
@@ -24,7 +24,7 @@ namespace Rubberduck.CodeAnalysis.Inspections.Concrete.EmptyBlock
2424
/// End Sub
2525
/// ]]>
2626
/// </example>
27-
/// <example hasResults="false">
27+
/// <example hasResult="false">
2828
/// <![CDATA[
2929
/// Public Sub DoSomething(ByVal foo As Boolean)
3030
/// If foo Then

0 commit comments

Comments
 (0)