Vale CMS Need more than a rule playground? Explore
Package Explorer

Comments

The comments in code: Go doc comments, Javadoc, and KDoc conventions, plus owned TODOs and no commented-out code in any language Vale extracts comments from.

jdkato/comments 0 stars 1.3K downloads v0.1.0 · Sep 24, 2026 latest release stylecode Vale ≥ 3.23.0

Getting started

Add it to your .vale.ini, then run vale sync.

Packages = Comments

[*.md]
BasedOnStyles = Vale, Comments

# Also in this package; add the ones you want:
# GoDoc, Javadoc, KDoc

The name installs the latest release each time vale sync runs. To stay on v0.1.0, the release this page describes, give its URL instead:

Packages = https://github.com/jdkato/comments/releases/download/v0.1.0/Comments.zip

Rules 14

2 error10 warning2 suggestion
  • Comments 3 rules
  • Comments.Code suggestion existence scope: comment

    Commented-out code. Delete it; version control remembers.

  • Comments.Markers suggestion substitution scope: comment

    Use 'TODO(name):' instead of '%s', so the note is collected with the rest.

  • Comments.Todo warning existence scope: comment Style guide

    '%s' names no owner. Write TODO(name): or TODO(#issue): so it can be followed up.

  • GoDoc 4 rules
  • GoDoc.Deprecated warning existence scope: comment.go Style guide

    Mark deprecation with a 'Deprecated: ' paragraph, which the tools read.

  • GoDoc.Package warning existence scope: comment.go Style guide

    A package comment reads 'Package name ...'.

  • GoDoc.Sentence warning existence scope: comment.go Style guide

    A doc comment is a complete sentence: end it with a period.

  • GoDoc.This warning existence scope: comment.go Style guide

    Start with the name it documents, not '%s'.

  • Javadoc 4 rules
  • Javadoc.EmptyTag error existence scope: comment.block.java Style guide

    '%s' says nothing. Describe it, or drop the tag.

  • Javadoc.Summary warning existence scope: comment.block.java Style guide

    The first sentence is the summary the tools show; end it with a period.

  • Javadoc.TagOrder warning existence scope: comment.block.java Style guide

    Order the tags @param, @return, then @throws.

  • Javadoc.This warning existence scope: comment.block.java Style guide

    Say what it does, not '%s'.

  • KDoc 3 rules
  • KDoc.EmptyTag error existence scope: comment.block.kt Style guide

    '%s' says nothing. Describe it, or drop the tag.

  • KDoc.Summary warning existence scope: comment.block.kt Style guide

    The first sentence is the summary the tools show; end it with a period.

  • KDoc.This warning existence scope: comment.block.kt Style guide

    Say what it does, not '%s'.