Files
SwiftLint/Tests/SwiftLintFrameworkTests/ConfigurationTests+ProjectMock.swift
T
JP Simard b83e0991b9 Remove all file headers
The MIT license doesn't require that all files be prepended with this
licensing or copyright information. Realm confirmed that they're ok with this
change. This will enable some companies to contribute to SwiftLint and the
date & authorship information will remain accessible via git source control.
2018-05-04 13:42:02 -07:00

69 lines
2.2 KiB
Swift

import Foundation
@testable import SwiftLintFramework
extension ConfigurationTests {
var projectMockPathLevel0: String {
return bundlePath.stringByAppendingPathComponent("ProjectMock")
}
var projectMockPathLevel1: String {
return projectMockPathLevel0.stringByAppendingPathComponent("Level1")
}
var projectMockPathLevel2: String {
return projectMockPathLevel1.stringByAppendingPathComponent("Level2")
}
var projectMockPathLevel3: String {
return projectMockPathLevel2.stringByAppendingPathComponent("Level3")
}
var projectMockYAML0: String {
return projectMockPathLevel0.stringByAppendingPathComponent(Configuration.fileName)
}
var projectMockYAML0CustomPath: String {
return projectMockPathLevel0.stringByAppendingPathComponent("custom.yml")
}
var projectMockYAML2: String {
return projectMockPathLevel2.stringByAppendingPathComponent(Configuration.fileName)
}
var projectMockSwift0: String {
return projectMockPathLevel0.stringByAppendingPathComponent("Level0.swift")
}
var projectMockSwift1: String {
return projectMockPathLevel1.stringByAppendingPathComponent("Level1.swift")
}
var projectMockSwift2: String {
return projectMockPathLevel2.stringByAppendingPathComponent("Level2.swift")
}
var projectMockSwift3: String {
return projectMockPathLevel3.stringByAppendingPathComponent("Level3.swift")
}
var projectMockConfig0: Configuration {
return Configuration(path: projectMockYAML0, rootPath: projectMockPathLevel0,
optional: false, quiet: true)
}
var projectMockConfig0CustomPath: Configuration {
return Configuration(path: projectMockYAML0CustomPath, rootPath: projectMockPathLevel0,
optional: false, quiet: true)
}
var projectMockConfig2: Configuration {
return Configuration(path: projectMockYAML2, optional: false, quiet: true)
}
var projectMockConfig3: Configuration {
return Configuration(path: Configuration.fileName, rootPath: projectMockPathLevel3,
optional: false, quiet: true)
}
}