AutoFix is a new feature in Swift-Clean that will attempt to make changes in your code on your behalf. Not every rule in our Survey is AutoFix enabled, but at the time of launch, 17 out of the 30 rules are supported. AutoFix is a great way to save time and automate the mundane and time consuming errors that may exist in a project. We have tested this extensively, but if you run into any issues with it, please reprot it to us and we will get it fixed immediately.
1. The configuration file
After you take the survey, you can download a configuration file that represents the standards that you selected in the survey. This file is critical to applying your standards in Xcode. You can also choose to download and apply rules that have been chosen by fellow developers.
2. Setting up the app
Once you have downloaded the app, initial setup is quite easy. To get up and running, you first need to make sure that Swift-Clean is in your Applications directory. Next, make sure the configuration file is in your project directory next to your .xcodeproj file (or below). Then, select the .xcodeproj file in the Mac app and we will add the necessary run script to your project for you. You need to do this separately for every project you want to scan.
3. The Run Script
Once you press the Install Run Script button, you are all done! We move all of the necessary components into place and add (or update) a run script build phase to your project for you. Just build and run your project and you will be good to go.
4. Tweaking the results
If you don't specify or exclude any class prefixes, our app will evaluate ALL .swift files in your project directory. That may be overkill so we recommend testing by prefixes. If there are more tests you want added, send us an email! We would love to hear from you.
Thanks for your interest in using Swift-Clean. With the release of the non-Mac App Store version of our tool, you can now purchase a site license that allows you to use Swift-Clean on any computer at a site, or at multiple sites with a multi-site license. Each license will be entitled to receive the same updates that the MAS version will receive. Below is the pricing structure for site licenses:
To purchase a site license, please send us a payment via PayPal to our account at firstname.lastname@example.org. We reserve the right to suspend the license if we discover that the terms of the license are being abused. In order to use a site license, download the free version of Swift-Clean and paste the license ID into the activation field when prompted. Thank you!