Skip to content

Add PHP-CS-Fixer with the Symfony2 coding standards #8

@xiehan

Description

@xiehan

NPR used to have its own handcrafted PHP standards (briefly explained here), but last December we decided to adopt the Symfony2 coding standards and enforce them using PHP-CS-Fixer with a pre-commit hook in order to reduce the time spent during code reviews on pointing out standards violations. This practice has been very successful and is worth rolling out to our other codebases, particular open source ones like this one. It'd be great if we could similarly have our coding style enforced at commit time so that we don't even need to have a section on style in our CONTRIBUTING.md doc and can instead just assume that any commits to this codebase follow our standards.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions