Given a URL inside of a comment block
And this URL exceeds 80 characters
Then I get a warning.

I consider this behavior a false positive. The rule should test if the exceeding character sequence is a URL.

Comments

adam-vessey’s picture

I've run into this as well... I don't know that it should be done in the general case--for any URL which may occur--but only where we should expect to be able to parse one... @see and @link (which explicitly mentions that items over 80 characters are permitted under certain conditions).

adam-vessey’s picture

Actually, looks like there is an exception made for the @link bit, I just didn't understand the code standards documentation... I was trying to break the @link ... @endlink bit across multiple lines (the exception requires it to all be on one line).

Perhaps an exception should be added for @see as well?

klausi’s picture

Issue summary: View changes
Status: Active » Closed (won't fix)

Coder 7.x is frozen now and will not receive updates. Coder 8.x-2.x can be used to check code for any Drupal version, Coder 8.x-2.x also supports the phpcbf command to automatically fix conding standard errors. Please check if this issue is still relevant and reopen against that version if necessary.