chore: force empty headers (#4491)

* chore: force empty headers

* fix: compilation errors

* chore: restore vendored headers

Co-authored-by: BendingBotRead <bendingbot-read@bendingspoons.com>
This commit is contained in:
Daniele Formichelli 2022-05-25 13:38:47 +02:00 committed by GitHub
parent 4b9638bae7
commit 5b7d0e7a16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
27 changed files with 14 additions and 79 deletions

View File

@ -1,7 +1,7 @@
# file options # file options
--symlinks ignore --symlinks ignore
--exclude Tests/XCTestManifests.swift,projects/tuist/features --exclude Tests/XCTestManifests.swift,projects/tuist/features,Sources/TuistSupport/Vendored,projects/tuist/fixtures/app_with_docc/Targets/SlothCreator
# format options # format options
@ -17,7 +17,7 @@
--exponentgrouping disabled --exponentgrouping disabled
--extensionacl on-declarations --extensionacl on-declarations
--fractiongrouping disabled --fractiongrouping disabled
--header ignore --header strip
--hexgrouping 4,8 --hexgrouping 4,8
--hexliteralcase uppercase --hexliteralcase uppercase
--ifdef indent --ifdef indent

View File

@ -1,10 +1,3 @@
//
// SHA256Digest.swift
// TuistSupport
//
// Created by Maksym Prokopchuk on 23.11.19.
//
import CommonCrypto import CommonCrypto
import Foundation import Foundation

View File

@ -316,39 +316,37 @@ extension XCTestCase {
@discardableResult public func XCTAssertContainsElementOfType<T>( @discardableResult public func XCTAssertContainsElementOfType<T>(
_ collection: [Any], _ collection: [Any],
_ element: T.Type, _ type: T.Type,
file: StaticString = #file, file: StaticString = #file,
line: UInt = #line line: UInt = #line
) -> T? { ) -> T? {
guard let element = collection.first(where: { $0 is T }) else { guard let element = collection.first(where: { $0 is T }) else {
XCTFail("Didn't find an element of type \(String(describing: element))", file: file, line: line) XCTFail("Didn't find an element of type \(String(describing: type))", file: file, line: line)
return nil return nil
} }
return element as? T return element as? T
} }
@discardableResult public func XCTAssertDoesntContainElementOfType<T>( public func XCTAssertDoesntContainElementOfType<T>(
_ collection: [Any], _ collection: [Any],
_ element: T.Type, _ type: T.Type,
file: StaticString = #file, file: StaticString = #file,
line: UInt = #line line: UInt = #line
) -> T? { ) {
if let element = collection.first(where: { $0 is T }) { if let element = collection.first(where: { $0 is T }) {
XCTFail("Found an element of type \(String(describing: element))", file: file, line: line) XCTFail("Found an element of type \(String(describing: type)): \(element)", file: file, line: line)
return nil
} }
return element as? T
} }
@discardableResult public func XCTAssertContainsElementOfType<T, U>( @discardableResult public func XCTAssertContainsElementOfType<T, U>(
_ collection: [Any], _ collection: [Any],
_ element: T.Type, _ type: T.Type,
after: U.Type, after: U.Type,
file: StaticString = #file, file: StaticString = #file,
line: UInt = #line line: UInt = #line
) -> T? { ) -> T? {
guard let elementIndex = collection.lastIndex(where: { $0 is T }) else { guard let elementIndex = collection.lastIndex(where: { $0 is T }) else {
XCTFail("Didn't found an element of type \(String(describing: element))", file: file, line: line) XCTFail("Didn't found an element of type \(String(describing: type))", file: file, line: line)
return nil return nil
} }
guard let previousElementIndex = collection.firstIndex(where: { $0 is U }) else { guard let previousElementIndex = collection.firstIndex(where: { $0 is U }) else {
@ -357,7 +355,7 @@ extension XCTestCase {
} }
XCTAssertTrue( XCTAssertTrue(
elementIndex > previousElementIndex, elementIndex > previousElementIndex,
"Expected element of type \(String(describing: element)) to be after an element of type \(String(describing: after)) but it's not", "Expected element of type \(String(describing: type)) to be after an element of type \(String(describing: after)) but it's not",
file: file, file: file,
line: line line: line
) )
@ -366,13 +364,13 @@ extension XCTestCase {
@discardableResult public func XCTAssertContainsElementOfType<T, U>( @discardableResult public func XCTAssertContainsElementOfType<T, U>(
_ collection: [Any], _ collection: [Any],
_ element: T.Type, _ type: T.Type,
before: U.Type, before: U.Type,
file: StaticString = #file, file: StaticString = #file,
line: UInt = #line line: UInt = #line
) -> T? { ) -> T? {
guard let elementIndex = collection.firstIndex(where: { $0 is T }) else { guard let elementIndex = collection.firstIndex(where: { $0 is T }) else {
XCTFail("Didn't found an element of type \(String(describing: element))", file: file, line: line) XCTFail("Didn't found an element of type \(String(describing: type))", file: file, line: line)
return nil return nil
} }
guard let afterElementIndex = collection.lastIndex(where: { $0 is U }) else { guard let afterElementIndex = collection.lastIndex(where: { $0 is U }) else {
@ -381,7 +379,7 @@ extension XCTestCase {
} }
XCTAssertTrue( XCTAssertTrue(
elementIndex < afterElementIndex, elementIndex < afterElementIndex,
"Expected element of type \(String(describing: element)) to be before an element of type \(String(describing: before)) but it's not", "Expected element of type \(String(describing: type)) to be before an element of type \(String(describing: before)) but it's not",
file: file, file: file,
line: line line: line
) )

View File

@ -1,10 +1,3 @@
//
// TestLoggingHandler.swift
// TuistSupportTesting
//
// Created by Atkinson, Oliver (Developer) on 20/02/2020.
//
import Foundation import Foundation
import TuistSupport import TuistSupport

View File

@ -1,6 +1,5 @@
/* /*
See LICENSE folder for this samples licensing information. See LICENSE folder for this samples licensing information.
Abstract: Abstract:
A view to customize a sloth. A view to customize a sloth.
*/ */

View File

@ -1,6 +1,5 @@
/* /*
See LICENSE folder for this samples licensing information. See LICENSE folder for this samples licensing information.
Abstract: Abstract:
A view to customize a sloth. A view to customize a sloth.
*/ */

View File

@ -1,10 +1,3 @@
/*
See LICENSE folder for this samples licensing information.
Abstract:
A view to customize a sloth.
*/
import SlothCreator import SlothCreator
import SwiftUI import SwiftUI

View File

@ -1,6 +1,5 @@
/* /*
See LICENSE folder for this samples licensing information. See LICENSE folder for this samples licensing information.
Abstract: Abstract:
A view to customize a sloth. A view to customize a sloth.
*/ */

View File

@ -1,6 +1,5 @@
/* /*
See LICENSE folder for this samples licensing information. See LICENSE folder for this samples licensing information.
Abstract: Abstract:
A view to customize a sloth. A view to customize a sloth.
*/ */

View File

@ -1,6 +1,5 @@
/* /*
See LICENSE folder for this samples licensing information. See LICENSE folder for this samples licensing information.
Abstract: Abstract:
A view to customize a sloth. A view to customize a sloth.
*/ */

View File

@ -1,6 +1,5 @@
/* /*
See LICENSE folder for this samples licensing information. See LICENSE folder for this samples licensing information.
Abstract: Abstract:
A view to customize a sloth. A view to customize a sloth.
*/ */

View File

@ -1,6 +1,5 @@
/* /*
See LICENSE folder for this samples licensing information. See LICENSE folder for this samples licensing information.
Abstract: Abstract:
A view to customize a sloth. A view to customize a sloth.
*/ */

View File

@ -1,10 +1,3 @@
//
// MessagesViewController.swift
// MyMessageExtension
//
// Created by Kassem Wridan on 30/06/2020.
//
import Messages import Messages
import UIKit import UIKit

View File

@ -1,3 +1 @@
//: Playground - noun: a place where people can play
import Foundation import Foundation

View File

@ -1,3 +1 @@
//: Playground - noun: a place where people can play
import Foundation import Foundation

View File

@ -1,3 +1 @@
//: Playground - noun: a place where people can play
import Foundation import Foundation

View File

@ -1,3 +1 @@
//: Playground - noun: a place where people can play
import Foundation import Foundation

View File

@ -1,3 +1 @@
//: Playground - noun: a place where people can play
import Foundation import Foundation

View File

@ -1,3 +1 @@
//: Playground - noun: a place where people can play
import Foundation import Foundation

View File

@ -1,3 +1 @@
//: Playground - noun: a place where people can play
import Foundation import Foundation

View File

@ -1,3 +1 @@
//: Playground - noun: a place where people can play
import Foundation import Foundation

View File

@ -1,3 +1 @@
//: Playground - noun: a place where people can play
import Foundation import Foundation

View File

@ -1,3 +1 @@
//: Playground - noun: a place where people can play
import Foundation import Foundation

View File

@ -1,3 +1 @@
//: Playground - noun: a place where people can play
import Foundation import Foundation

View File

@ -1,5 +1,3 @@
// Copyright © 2019 Sky. All rights reserved.
import XCTest import XCTest
class AppUITest: XCTestCase { class AppUITest: XCTestCase {

View File

@ -1,3 +1 @@
//: Playground - noun: a place where people can play
import Foundation import Foundation

View File

@ -1,5 +1,3 @@
// Copyright © 2019 Sky. All rights reserved.
import XCTest import XCTest
class AppUITest: XCTestCase { class AppUITest: XCTestCase {