Closed akshaymankar closed 1 month ago
Describe the bug
This causes executable files (like shellscripts) to not get formatted.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The shellscript is formatted according to shfmt
System information
treefmt v2.0.4 OS: Linux
Additional context
These lines seem to be ignoring too much: https://github.com/numtide/treefmt/blob/1427cc2d98d5270f5720e5edac1f34e10c602876/walk/git.go#L54-L57
Perhaps a check explicitly for directories and symlinks would be good.
@akshaymankar, I will cut a new release today.
Describe the bug
This causes executable files (like shellscripts) to not get formatted.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The shellscript is formatted according to shfmt
System information
treefmt v2.0.4 OS: Linux
Additional context
These lines seem to be ignoring too much:
https://github.com/numtide/treefmt/blob/1427cc2d98d5270f5720e5edac1f34e10c602876/walk/git.go#L54-L57
Perhaps a check explicitly for directories and symlinks would be good.