Closed (won't fix)
Project:
Coder
Version:
6.x-2.0-beta1
Component:
Review/Rules
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Jun 2010 at 11:23 UTC
Updated:
30 Dec 2014 at 18:18 UTC
Jump to comment: Most recent
Comments
Comment #1
danielb commentedalso this #150626: Check for proper inline comment formatting
Comment #2
aspilicious commentedLine lengths over 80 chars is *only* a problem for comments in the header of functions.
Some comments like @see ...() don't need the dot.
So it is very hard to check those.
Comment #3
danielb commentedI don't understand what you mean. Are you saying it is not possible to test how many characters a line has?
Comment #4
aspilicious commentedIt is possible but sometimes it is allowed to exceed 80 characters.
So you can't say that comments bigger than 80 characters aren't allowed in every case.
Example
/*
* Docblock can't exceed 80 characters
*/
function test() {
foo() // this can exceed 80 chracters foooooooooooooooooooooooooooooooooooooooooooooooooooo bar
}
Comment #5
psynaptic commentedI want this.
I like what coder tough love is doing and want coder format to be able to format using these rules but they all are structured differently: coder tough love seems to extend coder, adding some more rules whereas coder format has its own parser which uses PHP's parser tokens.
I think what we need is a unified way of parsing Drupal source code. Maybe we just need to port coder_format to use grammar parser module?
Comment #6
sunComment in #4 is invalid. Only the phpDoc summary is allowed to exceed 80 chars.
However, this entire issue talks about warnings. coder_format does not output warnings, it takes action. Wrong component, I guess.
Comment #7
klausiCoder for Drupal 6 is now frozen and only security fixes will be applied. Feel free to update this issue and reopen against 7.x-2.x or 8.x-2.x.