Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Standardise source file headers #109

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Example/KnitExample/ContentView.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright © Square, Inc. All rights reserved.
//
// Copyright © Block, Inc. All rights reserved.
//

import SwiftUI

Expand Down
4 changes: 3 additions & 1 deletion Example/KnitExample/KnitExampleApp.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright © Square, Inc. All rights reserved.
//
// Copyright © Block, Inc. All rights reserved.
//

import SwiftUI
import Knit
Expand Down
4 changes: 3 additions & 1 deletion Example/KnitExample/KnitExampleAssembly.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright © Square, Inc. All rights reserved.
//
// Copyright © Block, Inc. All rights reserved.
//

import Foundation
import Knit
Expand Down
4 changes: 3 additions & 1 deletion Example/KnitExample/KnitExampleUserAssembly.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright © Square, Inc. All rights reserved.
//
// Copyright © Block, Inc. All rights reserved.
//

import Foundation
import Knit
Expand Down
4 changes: 3 additions & 1 deletion Example/KnitExampleTests/TestModuleAssembler.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright © Square, Inc. All rights reserved.
//
// Copyright © Block, Inc. All rights reserved.
//

import Foundation
import Knit
Expand Down
2 changes: 1 addition & 1 deletion Sources/Knit/Module/DependencyBuilder.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © Square, Inc. All rights reserved.
// Copyright © Block, Inc. All rights reserved.
//

import Foundation
Expand Down
2 changes: 1 addition & 1 deletion Sources/Knit/Module/ModuleAssembler.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © Square, Inc. All rights reserved.
// Copyright © Block, Inc. All rights reserved.
//

/// ModuleAssembler wraps the Swinject Assembler to resolves the full tree of module dependencies.
Expand Down
2 changes: 1 addition & 1 deletion Sources/Knit/Module/ModuleAssembly.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © Square, Inc. All rights reserved.
// Copyright © Block, Inc. All rights reserved.
//

import Foundation
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//
// Copyright © Block, Inc. All rights reserved.
//

extension Resolver {

Expand Down
3 changes: 3 additions & 0 deletions Sources/Knit/ServiceCollection/ServiceCollection.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//
// Copyright © Block, Inc. All rights reserved.
//

/// Represents the aggregate of all services registered using ``Container/registerIntoCollection(_:factory:)``
/// or ``Container/autoregisterIntoCollection(_:initializer:)``.
Expand Down
4 changes: 4 additions & 0 deletions Sources/Knit/ServiceCollection/ServiceCollector.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
//
// Copyright © Block, Inc. All rights reserved.
//

import Foundation
import Swinject

Expand Down
2 changes: 1 addition & 1 deletion Sources/Knit/WeakResolver.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © Square, Inc. All rights reserved.
// Copyright © Block, Inc. All rights reserved.
//

import Swinject
Expand Down
4 changes: 4 additions & 0 deletions Sources/KnitCodeGen/AssemblyParsing.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
//
// Copyright © Block, Inc. All rights reserved.
//

import Foundation
import SwiftSyntax
import SwiftParser
Expand Down
4 changes: 4 additions & 0 deletions Sources/KnitCodeGen/Configuration.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
//
// Copyright © Block, Inc. All rights reserved.
//

import Foundation
import SwiftSyntax

Expand Down
4 changes: 4 additions & 0 deletions Sources/KnitCodeGen/ConfigurationSet.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
//
// Copyright © Block, Inc. All rights reserved.
//

import Foundation
import SwiftSyntax
import SwiftSyntaxBuilder
Expand Down
2 changes: 1 addition & 1 deletion Sources/KnitCodeGen/FunctionCallRegistrationParsing.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © Square, Inc. All rights reserved.
// Copyright © Block, Inc. All rights reserved.
//

import Foundation
Expand Down
4 changes: 3 additions & 1 deletion Sources/KnitCodeGen/HeaderSourceFile.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright © Square, Inc. All rights reserved.
//
// Copyright © Block, Inc. All rights reserved.
//

import Foundation
import SwiftSyntax
Expand Down
4 changes: 3 additions & 1 deletion Sources/KnitCodeGen/KnitDirectives.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright © Square, Inc. All rights reserved.
//
// Copyright © Block, Inc. All rights reserved.
//

import Foundation
import SwiftSyntax
Expand Down
5 changes: 1 addition & 4 deletions Sources/KnitCodeGen/ModuleAssemblyExtensionSourceFile.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
//
// ModuleAssemblyExtensionSourceFile.swift
//
//
// Created by Brad Fol on 8/4/23.
// Copyright © Block, Inc. All rights reserved.
//

import SwiftSyntax
Expand Down
4 changes: 3 additions & 1 deletion Sources/KnitCodeGen/ModuleImport.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright © Square, Inc. All rights reserved.
//
// Copyright © Block, Inc. All rights reserved.
//

import Foundation
import SwiftSyntax
Expand Down
4 changes: 3 additions & 1 deletion Sources/KnitCodeGen/NamedRegistrationGroup.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright © Square, Inc. All rights reserved.
//
// Copyright © Block, Inc. All rights reserved.
//

import Foundation

Expand Down
4 changes: 4 additions & 0 deletions Sources/KnitCodeGen/Registration.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
//
// Copyright © Block, Inc. All rights reserved.
//

import SwiftSyntax

public struct Registration: Equatable, Codable {
Expand Down
3 changes: 3 additions & 0 deletions Sources/KnitCodeGen/RegistrationIntoCollection.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//
// Copyright © Block, Inc. All rights reserved.
//

/// Represents a single concrete factory registered into a collection
/// A separate instance will be created for each call to `{auto}registerIntoCollection`
Expand Down
5 changes: 1 addition & 4 deletions Sources/KnitCodeGen/SourceFileSyntax+Write.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
//
// SourceFileSyntax+Write.swift
//
//
// Created by Brad Fol on 8/4/23.
// Copyright © Block, Inc. All rights reserved.
//

import Foundation
Expand Down
4 changes: 3 additions & 1 deletion Sources/KnitCodeGen/SyntaxError.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright © Square, Inc. All rights reserved.
//
// Copyright © Block, Inc. All rights reserved.
//

import Foundation
import SwiftSyntax
Expand Down
2 changes: 1 addition & 1 deletion Sources/KnitCodeGen/TriviaProvider.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © Square, Inc. All rights reserved.
// Copyright © Block, Inc. All rights reserved.
//

import Foundation
Expand Down
5 changes: 3 additions & 2 deletions Sources/KnitCodeGen/TypeNamer.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Created by Alexander skorulis on 6/7/2023.
// Copyright © Square, Inc. All rights reserved.
//
// Copyright © Block, Inc. All rights reserved.
//

import Foundation

Expand Down
4 changes: 4 additions & 0 deletions Sources/KnitCodeGen/TypeSafetySourceFile.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
//
// Copyright © Block, Inc. All rights reserved.
//

import Foundation
import SwiftSyntax
import SwiftSyntaxBuilder
Expand Down
4 changes: 4 additions & 0 deletions Sources/KnitCodeGen/UnitTestSourceFile.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
//
// Copyright © Block, Inc. All rights reserved.
//

import SwiftSyntax
import SwiftSyntaxBuilder

Expand Down
5 changes: 1 addition & 4 deletions Sources/KnitCommand/GenCommand.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
//
// GenCommand.swift
//
//
// Created by Brad Fol on 8/4/23.
// Copyright © Block, Inc. All rights reserved.
//

import ArgumentParser
Expand Down
4 changes: 4 additions & 0 deletions Sources/KnitCommand/KnitCommand.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
//
// Copyright © Block, Inc. All rights reserved.
//

import ArgumentParser

@main
Expand Down
5 changes: 1 addition & 4 deletions Sources/KnitCommand/ModuleDependenciesCommand.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
//
// ModuleDependenciesCommand.swift
//
//
// Created by Brad Fol on 8/4/23.
// Copyright © Block, Inc. All rights reserved.
//

import ArgumentParser
Expand Down
2 changes: 1 addition & 1 deletion Tests/KnitCodeGenTests/AssemblyParsingTests.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © Square, Inc. All rights reserved.
// Copyright © Block, Inc. All rights reserved.
//

@testable import KnitCodeGen
Expand Down
4 changes: 3 additions & 1 deletion Tests/KnitCodeGenTests/ConfigurationSetTests.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Created by Alexander skorulis on 8/8/2023.
//
// Copyright © Block, Inc. All rights reserved.
//

@testable import KnitCodeGen
import XCTest
Expand Down
4 changes: 3 additions & 1 deletion Tests/KnitCodeGenTests/HeaderSourceFileTests.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright © Square, Inc. All rights reserved.
//
// Copyright © Block, Inc. All rights reserved.
//

@testable import KnitCodeGen
import SwiftSyntax
Expand Down
4 changes: 3 additions & 1 deletion Tests/KnitCodeGenTests/KnitDirectivesTests.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Created by Alexander skorulis on 28/7/2023.
//
// Copyright © Block, Inc. All rights reserved.
//

@testable import KnitCodeGen
import SwiftSyntax
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
//
// ModuleAssemblyExtensionSourceFileTests.swift
//
//
// Created by Brad Fol on 8/7/23.
// Copyright © Block, Inc. All rights reserved.
//

@testable import KnitCodeGen
Expand Down
4 changes: 3 additions & 1 deletion Tests/KnitCodeGenTests/NamedRegistrationGroupTests.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright © Square, Inc. All rights reserved.
//
// Copyright © Block, Inc. All rights reserved.
//

@testable import KnitCodeGen
import Foundation
Expand Down
2 changes: 1 addition & 1 deletion Tests/KnitCodeGenTests/RegistrationParsingTests.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © Square, Inc. All rights reserved.
// Copyright © Block, Inc. All rights reserved.
//

@testable import KnitCodeGen
Expand Down
4 changes: 3 additions & 1 deletion Tests/KnitCodeGenTests/TypeNamerTests.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright © Square, Inc. All rights reserved.
//
// Copyright © Block, Inc. All rights reserved.
//

import Foundation
@testable import KnitCodeGen
Expand Down
4 changes: 3 additions & 1 deletion Tests/KnitCodeGenTests/TypeSafetySourceFileTests.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright © Square, Inc. All rights reserved.
//
// Copyright © Block, Inc. All rights reserved.
//

@testable import KnitCodeGen
import Foundation
Expand Down
4 changes: 3 additions & 1 deletion Tests/KnitCodeGenTests/UnitTestSourceFileTests.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// Copyright © Square, Inc. All rights reserved.
//
// Copyright © Block, Inc. All rights reserved.
//

@testable import KnitCodeGen
import Foundation
Expand Down
2 changes: 1 addition & 1 deletion Tests/KnitTests/DependencyBuilderTests.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © Square, Inc. All rights reserved.
// Copyright © Block, Inc. All rights reserved.
//

@testable import Knit
Expand Down
2 changes: 1 addition & 1 deletion Tests/KnitTests/ModuleAssemblerTests.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © Square, Inc. All rights reserved.
// Copyright © Block, Inc. All rights reserved.
//

@testable import Knit
Expand Down
2 changes: 1 addition & 1 deletion Tests/KnitTests/ModuleAssemblyOverrideTests.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © Square, Inc. All rights reserved.
// Copyright © Block, Inc. All rights reserved.
//

@testable import Knit
Expand Down
4 changes: 4 additions & 0 deletions Tests/KnitTests/ServiceCollectorTests.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
//
// Copyright © Block, Inc. All rights reserved.
//

import Knit
import XCTest

Expand Down
2 changes: 1 addition & 1 deletion Tests/KnitTests/TestResolver.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © Square, Inc. All rights reserved.
// Copyright © Block, Inc. All rights reserved.
//

@testable import Knit
Expand Down
2 changes: 1 addition & 1 deletion Tests/KnitTests/WeakResolverTests.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// Copyright © Square, Inc. All rights reserved.
// Copyright © Block, Inc. All rights reserved.
//

import Knit
Expand Down