Closed (fixed)
Project:
Coder
Version:
8.x-3.x-dev
Component:
Coder Sniffer
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
26 May 2016 at 19:08 UTC
Updated:
16 Jun 2019 at 18:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
klausiYes, we aim to make Coder as PHPCS compliant as possible. It will probably not be fully compliant, because we don't use @author tags and some other documentation practices. But otherwise feel free to roll a patch to add a phpcs.xml.dist file and fix up some coding standards we are currently missing!
Comment #3
anoopjohn commentedPlease find a patch that adds a phpcs.xml.dist. I have excluded
PEAR.Commenting.FileComment.MissingAuthorTag
PEAR.Commenting.FileComment.MissingLicenseTag
PEAR.Commenting.ClassComment.MissingAuthorTag
PEAR.Commenting.ClassComment.MissingLicenseTag
Generic.Files.LineLength.TooLong
for now. Hope that is good to start.
Comment #5
klausiThanks, committed! I'm going to run phpcbf to automatically fix the trivial stuff now.
Comment #6
klausiOK, now we can fix stuff manually that is still reported by running phpcs.
Comment #7
anoopjohn commentedGreat. Do I create child issues with fixes per sub-sniff or by fixes per file?
Comment #8
anoopjohn commentedI see that there are not too many errors. I went ahead and created child issues by sniff (or groups of sniffs) and have attached patches.
Comment #17
klausiI think we are done here, there are some very minor exceptions in phpcs.xml dist that we can fix later if we want to.