coding-standards-php icon indicating copy to clipboard operation
coding-standards-php copied to clipboard

PHP_CodeSniffer rules (sniffs) for Acquia coding standards

Results 6 coding-standards-php issues
Sort by recently updated
recently updated
newest added

This is a ground-up rewrite of the Acquia PHP standard to be based on PSR-12 and compatible with Drupal standards. In other words, any code adhering to Acquia PHP will...

Our code standards forbid throws tags since they quickly become stale. Additionally, I'm testing whether it's better to import the PhpStorm inspections profile as a separate profile rather than clobbering...

As a developer I would like to `@see` a non-Drupal link Right now you cannot use `@see` to link to other documentation in regards to a change. This is also...

The [Drupal.org Composer service](https://www.drupal.org/project/project_composer) handles sub-extensions and their dependencies separately such that `drupal/example_submodule` can have different dependencies from `drupal/example`. Indeed, if a submodule requires packages that are not technically required...

enhancement

There doesn't seem to be any enforcement of mixing `snake_case` for variable names with `lowerCamelCase`. (For example, the following variable passed PHPCS: `$commit_messageFailedPatches`) Can we add something to enforce one...

It's time to start testing our standards. There are some precedents we can look to in https://github.com/squizlabs/PHP_CodeSniffer/tree/master/tests and https://github.com/slevomat/coding-standard/tree/master/tests. They take slightly different approaches; I think both will be informative....

enhancement