-
-
Notifications
You must be signed in to change notification settings - Fork 138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Discussion: Agree and implement CGL #658
Comments
What I have collected so far, from old issues, the exercise code I have seen and my own favourites:
|
I would personally go for camelCase for functions too, like I think it should be possible to have the phpcs scan for all this, in most IDEs. But would have to check when it differers in different files. But perhaps it is possible as we stick to conventions of e.g. |
For test files, readability in the online editor is important. In addition to 60 chars line length:
When a test fails, these rules help to have all of the code executed in one box directly below the failure message. For CLI users it makes no difference, as we do not teach "PHPUnit for production use". Edit: Add constants and other instance variables |
After briefly talking with @mk-mxp about coding guidelines #652 (comment) we agreed to split this out in a separate issue to follow up on this later.
We should agree on it first, though. I think tools like rector or other static code tools would be able to streamline this for us, when we have an agreement on what should be when.
The text was updated successfully, but these errors were encountered: