internal

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package internal provides diff parsing utilities for extracting TODO comments.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractChangedPaths added in v0.5.1

func ExtractChangedPaths(diffOutput string) []string

func ParseDiff

func ParseDiff(diffOutput string) []types.TODO

ParseDiff extracts TODO comments from git diff output using regex (legacy).

func ParseDiffWithContents added in v0.5.0

func ParseDiffWithContents(diffOutput string, files map[string][]byte) []types.TODO

ParseDiffWithContents extracts TODO comments using Tree-sitter for supported languages, falling back to regex for unsupported files. files maps file paths to their full post-change content. For files not present in the map, TODOs are extracted from the diff output using regex.

Types

This section is empty.

Directories

Path Synopsis
Package github wraps the `gh` CLI to fetch pull request diffs and file contents.
Package github wraps the `gh` CLI 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL