mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
19 lines
366 B
Swift
19 lines
366 B
Swift
//
|
|
// ViolationSeverity.swift
|
|
// SwiftLint
|
|
//
|
|
// Created by JP Simard on 5/16/15.
|
|
// Copyright © 2015 Realm. All rights reserved.
|
|
//
|
|
|
|
public enum ViolationSeverity: String, Comparable {
|
|
case warning
|
|
case error
|
|
}
|
|
|
|
// MARK: Comparable
|
|
|
|
public func < (lhs: ViolationSeverity, rhs: ViolationSeverity) -> Bool {
|
|
return lhs == .warning && rhs == .error
|
|
}
|