Details

    • Type: Language-Specification
    • Status: Active
    • Resolution: Unresolved
    • Labels:
      None
    • List of parameters:
      • key: legalCommentPattern
      • Description: Pattern for text of trailing comments that are allowed.
      • Default: ^'\s*\S+\s*$
    • Impact:
      Unknown 'null' severity
    • Likelihood:
      Unknown 'null' severity

      Description

      Noncompliant Code Example

      With the default comment pattern ^'\s*\S+\s*$, which ignores single word comments:

      Module Module1
        Sub Main()
          Console.WriteLine("Hello, world!") ' Noncompliant - My first program!
          Console.WriteLine("Hello, world!") ' CompliantOneWord
        End Sub
      End Module
      

      Compliant Solution

      Module Module1
        Sub Main()
          ' Compliant - My first program!
          Console.WriteLine("Hello, world!")
          Console.WriteLine("Hello, world!") ' CompliantOneWord
        End Sub
      End Module
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              ann.campbell.2 Ann Campbell
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: