Moulinette
An internal audit tool used by Prolific Interactive to ensure code quality and standards.
Requirements
- Xcode 8.3.3 or up
Instructions
How to build and run Moulinette on an Xcode project.
From the command line
- Open the project in Xcode by double clicking on the .xcodeprojfile or runningopen Moulinette.xcodeproj.
- Build the project using CMD B.
- Copy the executable file titled Moulinettefrom/Build/Products/Debug/to youryour_project_repo/subdirectory.
- Run from the command line: ./Moulinette -projectName <project-name> -auditSubDirectory <subdirectory>.
From Xcode
- Open the project in Xcode as in step 1 from above.
- Set the projectNameandauditSubDirectoryvariables inProjectSettings.swift.
- Build and run the project using CMD R.
How To Contribute
How to create a rule
Process
- Pick a rule on the Trello board (https://trello.com/b/CNYIKBlQ/pios-moulinette).
- Assess the requirements to create this rule (eg: talk with other members of the moulinette team).
- Start working on the rule
- New rules conform to the SwiftRuleprotocol inSwiftRule.swift.
- Comment the rule:
- A comment explaining what the rule is checking should be present before the class declaration.
- Each methods (public / private / internal) should be commented and their behavior explained.
 
- Create the Unit Tests for the rule or create a task on Trello to remind to do it.
- If you create the unit tests:
- Comment every test with a clear explanation of what you're testing and what you're expecting.
 
- If you create a task on Trello.
- Comment the task and provide edge cases that the rule should cover and their expectations.
 
 
- If you create the unit tests:
 
- New rules conform to the 
- Make a PR.
- Add all the PiOS Moulinette members in the PR.
- Only 2 approvals are required for merging the rule.
- Explain in your PR what your rule is testing and provided urls for your story and any other story related to this rule (eg: Provide also unit test link even if not made).
 
Coffee
Tool calling the moulinette to generate multiple audit.
Authors
- Jonathan Samudio
Requirements
- Xcode 8.3.3 or up
Instructions
How to build and run Coffee on multiple projects.
From the command line
- Open the project in Xcode by double clicking on the .xcodeprojfile or runningopen Coffee.xcodeproj.
- Set your target to release mode & Build the project using CMD B.
- Copy the executable file titled Coffeefrom/Build/Products/Debug/to youryour_project_repo/subdirectory.
- Run from the command line: ./Coffee -moulinettePath </$path/to/moulinette/binary/Moulinette> -projectDirectory </$path/to/projects/directory/>")