Skip to content
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

DDC-585: Create a coding standards document #5091

Closed
doctrinebot opened this issue May 13, 2010 · 16 comments
Closed

DDC-585: Create a coding standards document #5091

doctrinebot opened this issue May 13, 2010 · 16 comments
Assignees

Comments

@doctrinebot
Copy link

Jira issue originally created by user romanb:

We need a new coding standards document for Doctrine 2.

@doctrinebot
Copy link
Author

@doctrinebot
Copy link
Author

Comment created by benjamin:

Has there been any work on a coding standards document yet?
I'm currently working on fixing documentation on this project, and it might be a good time to define a standard.
I've started compiling a few recommendations based on various feedbacks I've got in my pull requests, and I can post them here.
Please let me know if there have been previous attempts so far!

@doctrinebot
Copy link
Author

Comment created by @Ocramius:

[benjamin] [guiblanco] may have a CS ruleset, but it's not ready yet. Perfect timing btw, we really need to automate this to avoid having all these useless CS fix comments in pull requests

@doctrinebot
Copy link
Author

Comment created by benjamin:

Ok, I'll post my document here once ready, and [~guiblanco] will be able to compare it with his ruleset!

@doctrinebot
Copy link
Author

Comment created by benjamin:

Here is a first draft: https://gist.github.com/4676670

Please comment!

@doctrinebot
Copy link
Author

Comment created by benjamin:

[~guiblanco], if you don't have time to compare your ruleset with my draft, maybe you could publish your current ruleset so that others can have a look?

@doctrinebot
Copy link
Author

Comment created by benjamin:

Any update guys? I'm willing to spend some time on this work, but if no one answers, we won't be going forward :(

@doctrinebot
Copy link
Author

Comment created by @Ocramius:

[~benjamin] I think a pull request against the doctrine website (https://github.com/doctrine/doctrine-website-sphinx) would be fine...

@doctrinebot
Copy link
Author

Comment created by @deeky666:

This should go into https://github.com/doctrine/coding-standard repo (long term).

@doctrinebot
Copy link
Author

Comment created by phansys:

Could we define PSR-2 as base?

@doctrinebot
Copy link
Author

Comment created by @Ocramius:

Please just refer to https://github.com/doctrine/coding-standard, which is already PSR-2 based (with variations and more strictness)

@doctrinebot
Copy link
Author

Comment created by phansys:

@Ocramius, Is there a rule for spaces arround ! operator? #1133 (comment)

@doctrinebot
Copy link
Author

Comment created by phansys:

I just found another set of rules inside https://github.com/doctrine/doctrine2/blob/14ff7f50cfea67d8a4dca37b8ca364d2a83b9864/CONTRIBUTING.md#coding-standard. Which is the current valid standard?

@doctrinebot
Copy link
Author

Comment created by @Ocramius:

[~phansys] yes, that's doctrine specific (spaces around ! )

@doctrinebot doctrinebot added this to the 2.x milestone Dec 6, 2015
@Ocramius Ocramius removed this from the 2.x milestone Jan 12, 2017
@Majkl578
Copy link
Contributor

I think we can safely close this as Doctrine Coding Standard is now adopted by (almost all) Doctrine projects and also documented in README and (soon) on the website too. ☺️

@Majkl578 Majkl578 self-assigned this Jun 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants