mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
17 lines
449 B
Swift
17 lines
449 B
Swift
public extension Configuration {
|
|
enum IndentationStyle: Equatable {
|
|
case tabs
|
|
case spaces(count: Int)
|
|
|
|
public static var `default` = spaces(count: 4)
|
|
|
|
internal init?(_ object: Any?) {
|
|
switch object {
|
|
case let value as Int: self = .spaces(count: value)
|
|
case let value as String where value == "tabs": self = .tabs
|
|
default: return nil
|
|
}
|
|
}
|
|
}
|
|
}
|