Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

Version 1 Next »

In-Portal uses Phing build tool to assist developers in performing code-related analytics/fixing. The following tools are used:

  • PHP Lint (lint)
  • PHP Mess Detector (phpmd)
  • PHP Code Sniffer (phpcs)
  • PHP Code Sniffer Fixer (phpcbf)
  • PHP Copy Paste Detector (phpcpd)
  • PHP Documentor (phpdoc)
  • PHPUnit (phpunit)

Historically the first three are most time consuming. For example on a large project:

  • PHP Mess Detector could run 17 minutes;
  • PHP Code Sniffer could run 7 minutes.

This ends up every build taking at least 24 minutes.

Solution

Use caching command-line options provided by the PHP_CodeSniffer (–cache) and PHP_MessDetector (–cache & --cache-file).

Related Tasks

  • No labels