Provide documentation stating the differences between Drupal Coding Standard, PSR and PEAR Coding Standards.

This will allow developers familiar with those coding standards to get a faster start when trying to code for Drupal.

Comments

ribeirobreno created an issue. See original summary.

quietone’s picture

Priority: Major » Normal

@ribeirobreno, thank you for the suggestion.

Since this issue was created automated tests have been added to core that check new code against the current Drupal coding standards. The tests can be run locally, providing immediate feedback, so I don't think that updates to the documentation are needed.

There are instructions for installing PHP CodeSniffer for local use available. There will be instructions available, via a search, for how to setup phpcs with your choice of IDE.

Using the automated tool is a more effective long term solution that working to explain the differences between Drupal coding standards and other standards. That would be an ongoing and time consuming task.

I think this is a won't fix. I will ask in #coding-standards.

quietone’s picture

Status: Active » Needs review
bbrala’s picture

Status: Needs review » Closed (won't fix)

Since it is a changing target, i rather not have it documented. This will lead to extra work with little benifit i think. So i agree, closing as wont-fix..