Low Quality Documentation Detection
Configure what CommentSense considers “low quality” documentation (diagnostic CSENSE016).Low Quality Terms
Comma-separated list of terms that indicate incomplete or placeholder documentation. Values are case-insensitive.When any of these terms appear in documentation content, CSENSE016 is triggered.
Minimum Summary Length
Minimum length (in characters) for summary text, excluding trailing punctuation and whitespace.Set to
0 (default) to disable length checking.Ending Punctuation
Requires documentation to end with punctuation (
., !, or ?).CommentSense provides an automatic code fix to add missing ending punctuation.
Capitalization
Requires documentation to start with a capital letter (if it starts with a letter).
CommentSense provides an automatic code fix to correct capitalization.
Similarity Threshold
Threshold (0.0 to 1.0) for detecting documentation that is too similar to the member name.
0.0(default) - Disables similarity analysis1.0- Only flags documentation identical to the symbol name0.7to0.8- Recommended range for catching lazy documentation
Rename Similarity Threshold
Threshold (0.0 to 1.0) for fuzzy-matching when suggesting renames of stray documentation tags.
0.0- Disables rename suggestions0.5(default) - Moderate matching0.7to0.8- Stricter matching
Langword Enforcement
Configure keyword formatting (diagnostic CSENSE019).Comma-separated list of C# keywords that should be wrapped in
<see langword="..." /> tags. Values are case-insensitive.Note: Specifying this option replaces the default list entirely.CommentSense provides an automatic code fix to wrap keywords in
<see langword="..." /> tags. This fix supports Fix All in document, project, or solution.Ghost Reference Detection
Configure detection of parameter names in documentation that aren’t wrapped in<paramref /> or <typeparamref /> tags (diagnostics CSENSE020 and CSENSE021).
Controls how strictly to detect parameter/type parameter names in documentation text.Valid values:
safe- Only flags complex names (camelCase, PascalCase, underscores, digits). Ignores simple lowercase words (default)strict- Flags all matching parameter names regardless of casing or lengthoff- Disables ghost reference detection entirely
Safe Mode (Default)
Strict Mode
Off Mode
Safe mode is recommended for most projects as it avoids false positives on common English words while catching obvious parameter references.
Tag Order Enforcement
Configure the expected order of top-level XML documentation tags (diagnostic CSENSE024).Comma-separated list of tag names in their desired order. Tags not listed will have the lowest priority.Special behavior: If
returns is present but value is not (or vice versa), they are given the same priority.CommentSense provides an automatic code fix to reorder tags while preserving formatting. This fix supports Fix All in document, project, or solution.
Complete Quality Configuration Example
Here’s a comprehensive configuration for high-quality documentation standards:Related Rules
- CSENSE016 - Low quality documentation detection
- CSENSE019 - Langword enforcement
- CSENSE020 - Missing
<paramref />for parameter names - CSENSE021 - Missing
<typeparamref />for type parameter names - CSENSE024 - Tag order enforcement
See Also
- Visibility Levels - Configure which members are analyzed
- Exception Documentation - Configure exception documentation requirements
- Advanced Configuration - Additional configuration options