Remove 'Created by' line from SwiftFormat header by bjorkert · Pull Request #454 · loopandlearn/LoopFollow
Description
This pull request removes the // Created by {author} line from the file headers generated by our SwiftFormat script.
The swiftformat tool sources the author's name from the Git history. This has proven to be a source of instability and code churn for our project. Operations such as squashing commits during a merge can change the perceived author of a file in Git's history.
This leads to the // Created by... line fluctuating between different developers during routine builds, creating unnecessary diffs and noise in commits.
By removing this dynamic line from the header template, we ensure that file headers remain consistent and predictable across all development and CI environments. This change helps to reduce noise in our commit history and code reviews.
Changes Made
- Updated the SwiftFormat execution script to modify the
--headerparameter.- Before:
--header "LoopFollow\n{file}\nCreated by {author}." - After:
--header "LoopFollow\n{file}"
- Before:
- Ran SwiftFormat across the entire project to apply the new, cleaner header to all relevant files.