Skip to content

Commit 4126186

Browse files
committed
reworded xmldoc content for attribute annotations, changed a parameter types e.g. "String" to "Text" as per review comments
1 parent 7a8c7b3 commit 4126186

21 files changed

+53
-35
lines changed

Rubberduck.CodeAnalysis/Inspections/Concrete/ThunderCode/OnErrorGoToMinusOneInspection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace Rubberduck.CodeAnalysis.Inspections.Concrete.ThunderCode
1313
/// <why>
1414
/// This inpection is flagging code we dubbed "ThunderCode",
1515
/// code our friend Andrew Jackson would have written to confuse Rubberduck's parser and/or resolver.
16-
/// 'On Error GoTo -1' is poorly documented and uselessly complicates error handling.
16+
/// 'On Error GoTo -1' is poorly documented and uselessly complicates error handling. Consider using 'On Error GoTo 0' instead.
1717
/// </why>
1818
internal sealed class OnErrorGoToMinusOneInspection : ParseTreeInspectionBase<VBAParser.OnErrorStmtContext>
1919
{

Rubberduck.Parsing/Annotations/Concrete/DefaultMemberAnnotation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
namespace Rubberduck.Parsing.Annotations
88
{
99
/// <summary>
10-
/// @DefaultMember annotation, uses the VB_UserMemId attribute to make a class member the default member of that class. Use the quick-fixes to "Rubberduck Opportunities" code inspections to synchronize annotations and attributes.
10+
/// @DefaultMember annotation, indicates that the member should have a VB_UserMemId attribute value (0) making it the default member of that class. Use the quick-fixes to "Rubberduck Opportunities" code inspections to synchronize annotations and attributes.
1111
/// </summary>
1212
/// <example>
1313
/// <module name="Class1" type="Class Module">

Rubberduck.Parsing/Annotations/Concrete/DescriptionAnnotation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Rubberduck.Parsing.Annotations
77
/// <summary>
88
/// @Description annotation, uses the VB_Description member attribute to provide a docstring for a module member. Use the quick-fixes to "Rubberduck Opportunities" code inspections to synchronize annotations and attributes.
99
/// </summary>
10-
/// <parameter name="DocString" type="String">
10+
/// <parameter name="DocString" type="Text">
1111
/// This string literal parameter does not support expressions and/or multiline inputs. The string literal is used as-is as the value of the hidden member attribute.
1212
/// </parameter>
1313
/// <remarks>

Rubberduck.Parsing/Annotations/Concrete/EnumeratorMemberAnnotation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
namespace Rubberduck.Parsing.Annotations
77
{
88
/// <summary>
9-
/// @Enumerator annotation, uses the VB_UserMemId attribute to make a class member the enumerator-provider member of that class, enabling For Each iteration of custom collections. Use the quick-fixes to "Rubberduck Opportunities" code inspections to synchronize annotations and attributes.
9+
/// @Enumerator annotation, indicates that the member should have a VB_UserMemId attribute value (-4) making it the enumerator-provider member of that class, enabling 'For Each' iteration of custom collections. Use the quick-fixes to "Rubberduck Opportunities" code inspections to synchronize annotations and attributes.
1010
/// </summary>
1111
/// <example>
1212
/// <module name="Class1" type="Class Module">

Rubberduck.Parsing/Annotations/Concrete/ExcelHotKeyAnnotation.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
namespace Rubberduck.Parsing.Annotations
99
{
1010
/// <summary>
11-
/// @ExcelHotkey annotation, uses a VB_ProcData.VB_Invoke_Func metadata attribute to map a hotkey to a standard module procedure. Use the quick-fixes to "Rubberduck Opportunities" code inspections to synchronize annotations and attributes.
11+
/// @ExcelHotkey annotation, indicates the presence of a VB_ProcData.VB_Invoke_Func metadata attribute value that maps a hotkey to a standard module procedure ("macro"). Use the quick-fixes to "Rubberduck Opportunities" code inspections to synchronize annotations and attributes.
1212
/// </summary>
13-
/// <parameter name="Key" type="String*1">
13+
/// <parameter name="Key" type="Text">
1414
/// A single-letter string argument maps the hotkey. If the letter is in UPPER CASE, the hotkey is Ctrl+Shift+letter; if the letter is lower case, the hotkey is Ctrl+letter. Avoid remapping commonly used keyboard shortcuts!
1515
/// </parameter>
1616
/// <example>

Rubberduck.Parsing/Annotations/Concrete/ExposedModuleAnnotation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
namespace Rubberduck.Parsing.Annotations
66
{
77
/// <summary>
8-
/// @Exposed annotation, uses the VB_Exposed module attribute to make a class visible to a referencing project (classes are otherwise private). Use the quick-fixes to "Rubberduck Opportunities" code inspections to synchronize annotations and attributes.
8+
/// @Exposed annotation, indicates the presence of a VB_Exposed module attribute value (True) to make a class visible to a referencing project (classes are otherwise private by default). Use the quick-fixes to "Rubberduck Opportunities" code inspections to synchronize annotations and attributes.
99
/// </summary>
1010
/// <example>
1111
/// <module name="Class1" type="Class Module">

Rubberduck.Parsing/Annotations/Concrete/FolderAnnotation.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
namespace Rubberduck.Parsing.Annotations
22
{
33
/// <summary>
4-
/// @Folder annotation, determines where in a custom folder structure a given module appears in the Code Explorer toolwindow.
4+
/// @Folder annotation, used by Rubberduck to represent and organize modules under a custom folder structure.
55
/// </summary>
6-
/// <parameter name="Path" type="String">
6+
/// <parameter name="Path" type="Text">
77
/// This string literal argument uses the dot "." character to indicate parent/child folders. Consider using folder names that are valid in the file system; PascalCase names are ideal.
88
/// </parameter>
99
/// <example>
@@ -16,6 +16,18 @@
1616
/// End Sub
1717
/// ]]>
1818
/// </module>
19+
/// <module name="Module1" type="Standard Module">
20+
/// <![CDATA[
21+
/// '@Folder("Parent.Child")
22+
/// Option Explicit
23+
///
24+
/// Public Sub Macro1()
25+
/// With New Class1 '@Folder does not affect namespace or referencing code in any way.
26+
/// .DoSomething
27+
/// End With
28+
/// End Sub
29+
/// ]]>
30+
/// </module>
1931
/// </example>
2032
public sealed class FolderAnnotation : AnnotationBase
2133
{

Rubberduck.Parsing/Annotations/Concrete/IgnoreAnnotation.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
namespace Rubberduck.Parsing.Annotations
22
{
33
/// <summary>
4-
/// @Ignore annotation, used for ignoring inspection results at member and local level.
4+
/// @Ignore annotation, used by Rubberduck to filter inspection results at member and local level.
55
/// </summary>
6-
/// <parameter name="Inspections" type="ParamArray (Identifier)">
7-
/// This annotation optionally takes a comma-separated list of inspection names as argument. If no specific inspection is provided, then all inspections should ignore the annotated target.
6+
/// <parameter name="Inspections" type="InspectionNames">
7+
/// This annotation takes a comma-separated list of inspection names as arguments (at least one is required).
88
/// </parameter>
99
/// <remarks>
1010
/// Use the @IgnoreModule annotation to annotate at module level.

Rubberduck.Parsing/Annotations/Concrete/IgnoreModuleAnnotation.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
namespace Rubberduck.Parsing.Annotations
22
{
33
/// <summary>
4-
/// @IgnoreModule annotation, used for ignoring inspection results module-wide.
4+
/// @IgnoreModule annotation, used by Rubberduck to filter inspection results module-wide.
55
/// </summary>
6-
/// <parameter name="Inspections" type="ParamArray (Identifier)">
7-
/// This annotation optionally takes a comma-separated list of inspection names as argument. If no specific inspection is provided, then all inspections would ignore the annotated module.
6+
/// <parameter name="Inspections" type="InspectionNames">
7+
/// This annotation optionally takes a comma-separated list of inspection names as argument. If no specific inspection name is provided, then all inspections should ignore the annotated module.
88
/// </parameter>
99
/// <remarks>
10-
/// Use this annotation judiciously: while it silences false positives, it also silences legitimate inspection results.
10+
/// Use this annotation judiciously: while it silences false positives, it also silences legitimate inspection results; useful for muting results in legacy code while still inspecting new code.
1111
/// </remarks>
1212
/// <example>
1313
/// <module name="Class1" type="Class Module">

Rubberduck.Parsing/Annotations/Concrete/IgnoreTestAnnotation.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
namespace Rubberduck.Parsing.Annotations
22
{
33
/// <summary>
4-
/// @IgnoreTest annotation, used for ignoring a particular unit test in a test module.
4+
/// @IgnoreTest annotation, used by Rubberduck for skipping a particular test when running the tests of a test module.
55
/// </summary>
6+
/// <parameter name="Reason" type="Text">
7+
/// An optional argument/comment describing the reason for ignoring the test.
8+
/// </parameter>
69
/// <remarks>
7-
/// Test Explorer will skip tests decorated with this annotation.
10+
/// Test Explorer will skip tests decorated with this annotation. Use the ignore/un-ignore commands to automatically add or remove this annotation to a particular test without browsing to its source.
811
/// </remarks>
912
/// <example>
1013
/// <module name="Tests" type="Standard Module">
@@ -14,7 +17,7 @@
1417
///
1518
/// '...
1619
///
17-
/// '@IgnoreTest
20+
/// '@IgnoreTest("Foo is currently breaking this test, see issue #42")
1821
/// '@TestMethod("Category")
1922
/// Private Sub GivenFoo_DoesBar()
2023
/// '...

0 commit comments

Comments
 (0)