-
Notifications
You must be signed in to change notification settings - Fork 0
contribute rules.md
We are delighted that you want to be part of this project! If you have an idea for a new koan that you would like to implement, simply follow these steps to collaborate with us:
-
Clone the repository and set it up locally.
-
Run
composer install
-
Implement the koan on a new branch that branches off from
master
. If you're already part of the project, please follow the defined standards for commits and branch naming. For branches:numberIssue-name-of-branch
. For commits:[numberIssue] - Name of commit
. Remember that in numberIssue you must replace it with the number of the issue to which it refers and name-of-branch with the descriptive name of the branch (same with commits). -
When implementing a new koan, pay attention to the style used in previous koans and try to replicate it:
-
Use
@test
and@testdox
annotations before each test. -
Add a relevant comment about the test followed by
@testdox
. -
Include any interesting resources you used for inspiration in the koan. If you feel it's necessary to provide additional resources within a test, feel free to add them using the
=>
syntax. For example:/** * @test * @testdox Arrays can be of type key=>value => https://www.w3schools.com/php/php_arrays_associative.asp */
-
Aim to give the tests meaningful and descriptive names. If the name begins with a verb, use the third person. For example:
getsTheLengthOfAnArray
.
-
-
Once you have implemented the koan, push the branch and create a pull request. It will be reviewed, and we can continue improving the project together!
Thank you for your contribution, and we look forward to your creative additions to the project!