Skip to content

Additional inspection result for '@Description("") #5001

Open
@ChrisBrackett

Description

@ChrisBrackett

What
RD tells me an annotation is present but an attribute is missing if I leave this in my code:
'@Description("")
I would like it to tell me the annotation is blank.

Why
I paste blank description and module description annotations and fill them in later. This would clearly show where I intend to have annotations but have not yet written them. Additionally, if RD ever includes a feature to auto-add blank description annotations to every procedure and module (to encourage documentation of code) this additional annotation would play nicely with that.

Example
This code should trigger the inspection:

'@Description("")
Public Sub DoSomething() ' double quotes in description annotation
End Sub

'@Description()
Public Sub DoSomethingElse() ' no double quotes in description annotation
End Sub

Resources
Each inspection needs a number of resource strings - please provide a suggestion here:

  • InspectionNames: Blank Attribute
  • InspectionInfo: A blank Rubberduck annotation is specified for a module or member.
  • InspectionResults:

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementFeature requests, or enhancements to existing features. Ideas. Anything within the project's scope.feature-annotationsfeature-inspectionsup-for-grabsUse this label in conjunction with a difficulty level label, e.g. difficulty-02-ducky

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions