Skip to content

Latest commit

Β 

History

History
37 lines (32 loc) Β· 1.23 KB

File metadata and controls

37 lines (32 loc) Β· 1.23 KB

Code Documentation Workload (Working)

Generates XML documentation comments for public-scoped C# code using AI.

What it Documents:

  • πŸ“˜ Methods (including parameters and return values)
  • πŸ“— Properties (get/set descriptions)
  • πŸ“™ Fields (constants and read-only fields)
  • πŸ“• Events (when they're raised)
  • πŸ““ Classes (coming soon)

Features:

  • Analyzes code with Roslyn compiler
  • Respects visibility levels (configurable: Public, Internal, Protected, Private)
  • Processes one member at a time for accuracy
  • Validates AI responses and removes hallucinations:
    • Invalid parameters that don't exist
    • Duplicate <param> tags
    • Multiple <summary>, <remarks>, or <returns> tags
    • <returns> tags on void methods
    • Empty XML tags
  • Tracks statistics: tokens used, items documented, errors, sanitization fixes

Configuration:

{
  "Workload": {
    "SolutionPath": "MyProject.sln",
    "IgnoreProjects": ["MyProject.Tests.csproj"],
    "CodeDocumentation": {
      "DocumentVisibility": "Public"
    }
  }
}

Note: SolutionPath and IgnoreProjects are configured at the parent Workload level. By default, all projects in the solution are processed. See Configuration Guide for details.