I'm looking for a tool to help the automation of best practices for Swift and iOS. One that can learn and enforce best practices, and enforce code style based on a set of custom or preset rules. The tool should detect bad indentation, when delegates or weak references are not nil'd out on
deinit, use of syntax (
I've looked at both Faus Pas (Obj-C only) and Code Climate (web-based), but I'm looking for a program that works specifically with Swift, can be installed locally on our development machines, and can be integrated as a build step with Jenkins or CircleCI.
I've modified my question slightly to include support for a mixed codebase containing both Objective-C and Swift (and potentially Objective-C++). The tools I have found previously only currently support Swift. As an alternative, I will also accept answers that use tools for each language that integrate nicely.