Questions tagged [code-quality]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
489 views

PHP CodeSniffer: indentation of 2 is ignored, it just checks 4

# phpcs --version PHP_CodeSniffer version 1.3.3 (stable) by Squiz Pty Ltd. (http://www.squiz.net) # Trying to do this: phpcs --tab-width=2 includes/json/item/categorie.php FOUND 29 ERROR(S) AND 3 ...
4
votes
1answer
117 views

How to promote the quality/security of your a website to your its customers?

Our organization is building a Drupal web platform that we aim at reselling as a cloud service. In order to provide our customers with maximum confidence in our solution, we're looking at ways of ...
1
vote
2answers
58 views

How do you handle bad scripts or plugins

As web developers obviously we don't want to reinvent the wheel with everything we do so best practice would dictate when necessary we should use third party scripts and plugins. Recently I have ...
3
votes
1answer
798 views

How can I automatically clean, beautify, and autoindent dynamic HTML code?

Using content management systems to build dynamic sites invariably results in ugly HTML. Indent levels are often wrong, white space litters the page, and a host of other tiny annoyances plague anyone ...
1
vote
1answer
174 views

What are best practices for Drupal QA? For example, how would you check for hard coded broken links?

Looking for suggestions on how to QA a Drupal website. Thanks!
13
votes
2answers
20k views

How to ignore certain coding standard errors in PHP CodeSniffer

We have a PHP 5 web application and we're currently evaluating PHP CodeSniffer in order to decide whether forcing code standards improves code quality without causing too much of a headache. If it ...