Files
SwiftLint/Source/SwiftLintFramework/ASTRule.swift
T
2015-05-25 14:45:28 -07:00

25 lines
602 B
Swift

//
// ASTRule.swift
// SwiftLint
//
// Created by JP Simard on 2015-05-16.
// Copyright (c) 2015 Realm. All rights reserved.
//
import SourceKittenFramework
import SwiftXPC
protocol ASTRule: Rule {
func validateFile(file: File, dictionary: XPCDictionary) -> [StyleViolation]
func validateFile(file: File,
kind: SwiftDeclarationKind,
dictionary: XPCDictionary) -> [StyleViolation]
}
public protocol RuleExample {
var ruleName: String { get }
var ruleDescription: String { get }
var correctExamples: [String] { get }
var failingExamples: [String] { get }
}