Open
Description
Problem
Here is the error:
An engine timed out
E11
The phpmd engine failed to complete in time.
Engine timeouts are generally caused by either an abnormally large number of files under analysis or from attempting to analyze a file not typically intended for static analysis. We recommend excluding:
Third party libraries
Production assets, such as minimized or cross-compiled files
Automated test suites
For more information, see our documentation on file and path exclusions.
I experienced this on these repos:
- https://codeclimate.com/github/josephdpurcell/magento2
- https://codeclimate.com/github/josephdpurcell/orocommerce
- https://codeclimate.com/github/josephdpurcell/platform
- https://codeclimate.com/github/josephdpurcell/drupal-8.1.x
- https://codeclimate.com/github/josephdpurcell/drupal-8.2.x
- https://codeclimate.com/github/josephdpurcell/drupal-8.3.x
- https://codeclimate.com/github/josephdpurcell/drupal-9.x
I expect this will be a common problem for other large PHP projects.
Proposed Solution
I see at least two options:
- Investigate to see why PHPMD takes longer than PHPCS or other engines.
- Set the default timeout limit just for the PHPMD engine to 30 mins instead of 15 mins.
Metadata
Assignees
Labels
No labels