nicklockwood / SwiftFormat

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

fileHeader --header strip fails for no empty lines between last header comment and first import #1396

Closed mpkeefe closed 1 year ago

mpkeefe commented 1 year ago

Swift files that begin like this

//  AuthProvider.swift
//  xxxxxxxxxx
//
//  Created by xxxxx, xxxxxx on 6/14/21.
//  Copyright © 2021 xxxxxxxxxxx. All rights reserved.
//
import Foundation

are not getting the header stripped. This feels like an easy case to match, so I'm wondering if for some reason these cannot be stripped safely?

mpkeefe commented 1 year ago

Just re-read the readme, never mind!