Closed kateinoigakukun closed 6 years ago
You can create external plugins in IBLinterFile.swift
IBLinterFile.swift
import IBLinter import IBLinterKit struct FooRule: Rule { /*...*/ } let linter = IBLinter() linter.run(externalRules: [FooRule.self])
Build libIBLinterKit.dylib and execute swift -L /usr/local/lib/iblinter -I /usr/local/lib/iblinter -lIBLinterKit ./IBLinterFile.swift in CLI iblinter
libIBLinterKit.dylib
swift -L /usr/local/lib/iblinter -I /usr/local/lib/iblinter -lIBLinterKit ./IBLinterFile.swift
iblinter
Like this https://github.com/danger/danger-swift
You can create external plugins in
IBLinterFile.swift
IBLinterFile.swift
executorIBLinterFile.swift
in XcodeHow this works
Build
libIBLinterKit.dylib
and executeswift -L /usr/local/lib/iblinter -I /usr/local/lib/iblinter -lIBLinterKit ./IBLinterFile.swift
in CLIiblinter
Like this https://github.com/danger/danger-swift