Ignore file rename / remove operations as they don't contribute to the codebase. (#1)

This commit is contained in:
2025-12-16 19:11:25 +00:00
committed by GitHub
parent 8423b6ada1
commit aedcf87338
3 changed files with 47 additions and 0 deletions
+7
View File
@@ -63,3 +63,10 @@ func IsDocumentationFile(filename string) bool {
func IsMeaningfulLine(line string) bool {
return !IsWhitespaceLine(line) && !IsCommentLine(line)
}
// 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 IsRenameOrMove(fromName, toName string) bool {
return fromName != "" && toName != "" && fromName != toName
}