mirror of
https://github.com/TheAlgorithms/PHP.git
synced 2025-07-10 03:26:19 +02:00
updating contribution guide to include requirement for unit tests to be passing and code is linted with phpcs
This commit is contained in:
@ -62,9 +62,12 @@ We want your work to be readable by others; therefore, we encourage you to note
|
||||
|
||||
If you used a Wikipedia article or some other source material to create your algorithm, please add the URL in a docstring or comment to help your reader
|
||||
|
||||
- Write tests
|
||||
- Write proper unit tests (see examples in [tests](https://github.com/TheAlgorithms/PHP/tree/master/tests) and ensure all unit tests are passing (composer run-script test)
|
||||
|
||||
- Avoid importing external libraries for basic algorithms. Only use them for complicated algorithms
|
||||
|
||||
- Ensure code is linted with phpcs, and passing all linting checks (vendor/bin/phpcs -n)
|
||||
|
||||
#### Other Standard While Submitting Your Work
|
||||
|
||||
- File extension for code should be `.php`
|
||||
|
Reference in New Issue
Block a user