mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
18 lines
365 B
Swift
18 lines
365 B
Swift
//
|
|
// RuleParameter.swift
|
|
// SwiftLint
|
|
//
|
|
// Created by JP Simard on 2015-05-16.
|
|
// Copyright (c) 2015 Realm. All rights reserved.
|
|
//
|
|
|
|
public struct RuleParameter<T> {
|
|
public let severity: ViolationSeverity
|
|
public let value: T
|
|
|
|
public init(severity: ViolationSeverity, value: T) {
|
|
self.severity = severity
|
|
self.value = value
|
|
}
|
|
}
|