IBDecodable / IBLinter

A linter tool for Interface Builder
MIT License
950 stars 40 forks source link

Add plugin feature #50

Closed kateinoigakukun closed 6 years ago

kateinoigakukun commented 6 years ago

You can create external plugins in IBLinterFile.swift

import IBLinter
import IBLinterKit

struct FooRule: Rule { /*...*/ }

let linter = IBLinter()
linter.run(externalRules: [FooRule.self])

How this works

Build libIBLinterKit.dylib and execute swift -L /usr/local/lib/iblinter -I /usr/local/lib/iblinter -lIBLinterKit ./IBLinterFile.swift in CLI iblinter

Like this https://github.com/danger/danger-swift