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
--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
@ -17,7 +17,7 @@
--exponentgrouping disabled
--extensionacl on-declarations
--fractiongrouping disabled
--header ignore
--header strip
--hexgrouping 4,8
--hexliteralcase uppercase
--ifdef indent

View File

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

View File

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

View File

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

View File

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

View File

@ -1,6 +1,5 @@
/*
See LICENSE folder for this samples licensing information.
Abstract:
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 SwiftUI

View File

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

View File

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

View File

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

View File

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

View File

@ -1,6 +1,5 @@
/*
See LICENSE folder for this samples licensing information.
Abstract:
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 UIKit

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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