mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
25 lines
602 B
Swift
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 }
|
|
} |