mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
77 lines
2.3 KiB
Swift
77 lines
2.3 KiB
Swift
//
|
|
// ConfigurationTests+ProjectMock.swift
|
|
// SwiftLint
|
|
//
|
|
// Created by Stéphane Copin on 7/24/17.
|
|
// Copyright © 2017 Realm. All rights reserved.
|
|
//
|
|
|
|
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)
|
|
}
|
|
}
|