An internal audit tool used by Prolific Interactive to ensure code quality and standards.
- Xcode 8.3.3 or up
How to build and run Moulinette on an Xcode project.
- Open the project in Xcode by double clicking on the
.xcodeproj
file or runningopen Moulinette.xcodeproj
. - Build the project using
CMD B
. - Copy the executable file titled
Moulinette
from/Build/Products/Debug/
to youryour_project_repo/subdirectory
. - Run from the command line:
./Moulinette -projectName <project-name> -auditSubDirectory <subdirectory>
.
- Open the project in Xcode as in step 1 from above.
- Set the
projectName
andauditSubDirectory
variables inProjectSettings.swift
. - Build and run the project using
CMD R
.
- 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
SwiftRule
protocol 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).
Tool calling the moulinette to generate multiple audit.
- Jonathan Samudio
- Xcode 8.3.3 or up
How to build and run Coffee on multiple projects.
- Open the project in Xcode by double clicking on the
.xcodeproj
file or runningopen Coffee.xcodeproj
. - Set your target to release mode & Build the project using
CMD B
. - Copy the executable file titled
Coffee
from/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/>")