Closed samikeijonen closed 6 years ago
I'm pretty happy about the phpcs.xml at the moment.
This is probably one of the biggest projects left for the theme before the 1.0.0 release. We need to pay attention to the WPTRT coding standards project. We'll want to take advantage of that and integrate it with any custom rules.
Please name it .phpcs.xml.dist
, and add phpcs.xml
and .phpcs.xml
to the .gitignore
file.
This allows the distributed config file to be trumped by a local config file.
@samikeijonen I'll add some feedback about your config file, to your repo :-)
Closing this specific ticket as fixed. We should open new tickets to address other issues.
In particular, our end goal would be to utilize the WP TRT standards.
Project code should be checked using PHPCS. In most cases there should be custom
phpcs.xml
for creating custom ruleset good for project.Couple of examples:
phpcs.xml
file in _s.This way we can also check PHP compatibility for different versions.