diff

package
v0.2.37 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCommentLine

func IsCommentLine(line string) bool

IsCommentLine checks if a line is a code comment (should not count as meaningful contribution) Note: Empty/whitespace lines are NOT comments - use IsWhitespaceLine for those.

func IsCommentedOutCode added in v0.2.35

func IsCommentedOutCode(line string) bool

IsCommentedOutCode attempts to detect if a comment line contains commented-out code rather than an actual comment. This is a heuristic and may have false positives/negatives.

func IsDocCommentLine added in v0.2.35

func IsDocCommentLine(line string) bool

IsDocCommentLine checks if a line is a documentation comment (JSDoc, JavaDoc, Rust doc, etc.) These are comments specifically meant to document code, as opposed to regular comments.

func IsDocumentationFile

func IsDocumentationFile(filename string) bool

IsDocumentationFile checks if a file is documentation-only

func IsMeaningfulLine

func IsMeaningfulLine(line string) bool

IsMeaningfulLine checks if a line of code is meaningful (not a comment or whitespace)

func IsRenameOrMove added in v0.2.34

func IsRenameOrMove(fromName, toName string) bool

IsRenameOrMove checks if a file change represents a rename or move operation rather than actual content modification. A rename/move is detected when both the source (fromName) and destination (toName) paths exist and differ.

func IsWhitespaceLine

func IsWhitespaceLine(line string) bool

IsWhitespaceLine checks if a line contains only whitespace characters

Types

This section is empty.

Jump to

Keyboard shortcuts

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