Files
SwiftLint/Source/SwiftLintFramework/Protocols/Rule.swift
T
JP Simard 8a30cb2e3d organize Xcode project
make Extensions, Models & Protocols groups under SourceKittenFramework
2015-11-15 15:07:25 -08:00

22 lines
487 B
Swift

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