This is a Github template repo with just a readme file that you are reading right now and a magical .github
folder which contains Github Actions that automatically check your code against WordPress Coding Standards.
As you are here, you are most likely looking to work with rtCamp where code quality is very important to us. But even if you have no intention to join rtCamp, you are free to use this repo and automated checks present in it, to improve your WordPress coding skill.
There are three ways to use this template repo:
- If you are looking to work with rtCamp, it's better to start using this assignment link.
- When you open the link, Github will prompt you to "Accept this assignment".
- Clicking the "Accept..." button creates a private copy of this repo to which you and rtCamp's evaluators will have access. Your access level for the repo will be admin-level.
- You are expected to push all your codes to this new repo. Make sure you do not touch
.github
folder accidentally as it can break the magic. - If you have developed any theme or plugin codes in the past, you are free to push those codes in your private repo.
- When pushing existing large code-base, we request you to commit them in chunks — ideally one PHP file at a time. You can commit all non-PHP files at once as rtBot only checks PHP codes at the moment. It is yet to Learn JavaScript Deeply!
Advantages
- You will not have to configure anything. You can just accept the assignment from the link and start pushing your codes right away.
- As you are repo-admin for your copy, at any time, you can move the repo to your personal space. After all, you should have right over your code.
- You can click "Use this template" button or visit this link
- You will be prompted to select the name/destination for new repo.
- Please note that you may need to configure automated code review yourself. If you do not, your assignment may not be considered for review.
You are free to do whatever you would like to do with this repo. Please note that you may need to configure automated code review yourself.
- The coding standard rulest in the automated PHPCS checks are configured to check database, security, and basic code analysis related checks mainly. Ref. to list of rulesets.
- It will not check for inline code comments, code formatting, and spacing issues, those checks have been excluded. But it is good to have these as well in your code.
- This is a good starting point for understanding the WordPress Coding Standards.
- Guide to setup the WordPress Coding Standard checks in your IDE.