mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
25 lines
770 B
Swift
25 lines
770 B
Swift
//
|
|
// RuleExample.swift
|
|
// SwiftLint
|
|
//
|
|
// Created by Chris Eidhof on 25/05/15.
|
|
// Copyright (c) 2015 Realm. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct RuleExample {
|
|
public let ruleName: String
|
|
public let ruleDescription: String
|
|
public let nonTriggeringExamples: [String]
|
|
public let triggeringExamples: [String]
|
|
public let showExamples: Bool
|
|
|
|
init(ruleName: String, ruleDescription: String, nonTriggeringExamples: [String], triggeringExamples: [String], showExamples: Bool = true) {
|
|
self.ruleName = ruleName
|
|
self.ruleDescription = ruleDescription
|
|
self.nonTriggeringExamples = nonTriggeringExamples
|
|
self.triggeringExamples = triggeringExamples
|
|
self.showExamples = showExamples
|
|
}
|
|
} |