You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Drop defensive error branches in new fix-path code
User feedback: don't write error checks for branches that can't be
reached. Mirror the pattern at internal/archetype/gensection/ranges.go:59
(\"NewFile never errors with current implementation\").
- buildPostFixFile: drop the lint.NewFile error return; signature
becomes plain *lint.File. Caller no longer needs to handle a
parse error after fix.
- cachedGitignore: drop the filepath.Abs fallback. On the rare error
case Abs returns the input string unchanged, which is still a
usable cache key for the inputs the fix pipeline passes
(filepath.Dir(path) or f.RootDir).
Coverage on the new functions is now 100%.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments