Documentation
¶
Overview ¶
Package internal provides diff parsing utilities for extracting TODO comments.
Index ¶
- func ExtractChangedPaths(diffOutput string) []string
- func ExtractPathsRequiringContents(diffOutput string, todoTypes []string) []string
- func ParseDiff(diffOutput string) []types.TODO
- func ParseDiffWithContents(diffOutput string, files map[string][]byte) []types.TODO
- func ParseDiffWithContentsAndTypes(diffOutput string, files map[string][]byte, todoTypes []string) []types.TODO
- func ParseDiffWithTypes(diffOutput string, todoTypes []string) []types.TODO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractChangedPaths ¶ added in v0.5.1
func ExtractPathsRequiringContents ¶ added in v1.1.10
ExtractPathsRequiringContents returns supported changed files whose added lines contain one of the configured TODO markers.
func ParseDiff ¶
ParseDiff extracts TODO comments from git diff output using regex. Uses the default built-in TODO marker types.
func ParseDiffWithContents ¶ added in v0.5.0
ParseDiffWithContents extracts TODO comments using Tree-sitter for supported languages, falling back to regex for unsupported files. Uses the default built-in TODO marker types.
func ParseDiffWithContentsAndTypes ¶ added in v1.1.0
func ParseDiffWithContentsAndTypes(diffOutput string, files map[string][]byte, todoTypes []string) []types.TODO
ParseDiffWithContentsAndTypes extracts TODO comments using Tree-sitter for supported languages, falling back to regex for unsupported files. todoTypes specifies which marker types to detect.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package config provides severity configuration loading from YAML files.
|
Package config provides severity configuration loading from YAML files. |
|
Package github wraps the `gh` CLI and GitHub REST API to fetch pull request diffs and file contents.
|
Package github wraps the `gh` CLI and GitHub REST API to fetch pull request diffs and file contents. |
|
Package output renders TODO results to the terminal.
|
Package output renders TODO results to the terminal. |
|
Package todotype provides the default classification for TODO-style comment types.
|
Package todotype provides the default classification for TODO-style comment types. |