nicklockwood / SwiftFormat

A command-line tool and Xcode Extension for formatting Swift code
MIT License
7.77k stars 629 forks source link

`fileHeader` option not working with Xcode extension #1517

Open laralove143 opened 12 months ago

laralove143 commented 12 months ago

I set the fileHeader option to //\n// {file}\n// Lara Kayaalp\n//\n// Created by Lara Kayaalp on {created}.\n// but it doesn't do anything, it works fine from the CLI

nicklockwood commented 11 months ago

@laralove143 unfortunately the Xcode extension isn't able to see the name of the file or it's creation date due to Apple sandboxing. For that reason, the fileHeader placeholders won't work from in the extension (I should probably produce an error for this and add it to the known issues).

laralove143 commented 11 months ago

ah thats a bummer but thanks for letting me know