[Phpmyadmin-devel] Maximum length of variable names
marc at infomarc.info
Sun Jan 5 20:41:00 CET 2014
Le 2014-01-05 14:31, Hugues Peccatte a écrit :
> 2014/1/5 Marc Delisle <marc at infomarc.info <mailto:marc at infomarc.info>>
> I'm aware that I'm opening a can of worms, but can we discuss PHPMD
> In particular, I find that to obey the maximum variable name (20
> characters) rule, one has to sometimes abbreviate at the expanse of
> I agree. Many rules are useful to keep the code clear, but sometimes it
> could be a constraint.
> Marc is talking about the length of variable names, but it's the same
> thing about the line length. Limit to 80 characters is out-of-dated. Our
> screen are larger than "before" so let's use more. (And you choose to
> use more because our standard is now 85 characters. In my job, we
> decided to use 120.)
> But this was only an example to support what Marc said.
Well, on my laptop, I don't have that much space and I'm happy with the
current line length limit.
> But if I'm right, the problem of PMD is that you can activate a group of
> rules but not a single rule. (Some one to contradict this please ?)
> One possibility could be to try to implement the interesting rules in
> PHPCS if they don't exist.
http://infomarc.info | http://phpmyadmin.net
More information about the Developers