Add codespell support with configuration and fixes (#21807)

Co-authored-by: Claude Code 2.1.142 / Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Yaroslav Halchenko
2026-05-30 20:15:13 +00:00
committed by GitHub
co-authored by Claude Code 2.1.142 / Claude Opus 4.7
parent c221cd06ad
commit 451cc6c048
13 changed files with 63 additions and 11 deletions
+1 -1
View File
@@ -185,7 +185,7 @@ func (r *fileRestorer) restoreFiles(ctx context.Context) error {
file.sparse = false
}
// empty file or one with already uptodate content. Make sure that the file size is correct
// empty file or one with already up-to-date content. Make sure that the file size is correct
if !restoredBlobs {
err := r.truncateFileToSize(file.location, file.size)
if errFile := r.sanitizeError(file, err); errFile != nil {
+1 -1
View File
@@ -232,7 +232,7 @@ func (w *filesWriter) writeToFile(path string, blob []byte, offset int64, create
bucket.files[path].users--
if bucket.files[path].users == 0 {
delete(bucket.files, path)
// Add to cache to allow re-use. Cache will close files on overflow.
// Add to cache to allow reuse. Cache will close files on overflow.
w.cacheMu.Lock()
w.cache.Add(path, wr)
w.cacheMu.Unlock()