Files
SwiftLint/Source/SwiftLintFramework/Rule.swift
T
2015-05-25 14:46:13 -07:00

21 lines
444 B
Swift

//
// Rule.swift
// SwiftLint
//
// Created by JP Simard on 2015-05-16.
// Copyright (c) 2015 Realm. All rights reserved.
//
import SourceKittenFramework
public protocol Validatable {
var identifier: String { get }
func validateFile(file: File) -> [StyleViolation]
var example: RuleExample? { get }
}
protocol ParameterizedRule: Rule {
typealias ParameterType
var parameters: [RuleParameter<ParameterType>] { get }
}