feat: update acronym to 'Hushing' and fix backup creation bug

- Update SHUSH acronym from 'Hiding' to 'Hushing' (better reflects removal)
- Fix critical error handling bug in file backup creation using io.Copy
- Remove golangci-lint references from Makefile and CLAUDE.md
- Update README, LLM guide, and CLI description with new acronym
- Create TASKS.md to track project improvements
This commit is contained in:
carraes
2025-07-07 09:31:37 -03:00
parent 8152e62cf5
commit 79b20776fc
6 changed files with 12 additions and 26 deletions
+3 -16
View File
@@ -3,6 +3,7 @@ package processor
import (
"bufio"
"fmt"
"io"
"io/fs"
"os"
"path/filepath"
@@ -208,22 +209,8 @@ func (p *Processor) createBackup(filename string) error {
}
defer dstFile.Close()
buffer := make([]byte, 1024)
for {
n, err := srcFile.Read(buffer)
if err != nil && err.Error() != "EOF" {
return err
}
if n == 0 {
break
}
if _, err := dstFile.Write(buffer[:n]); err != nil {
return err
}
}
return nil
_, err = io.Copy(dstFile, srcFile)
return err
}
func (p *Processor) showPreview(filename string, language types.Language) error {