• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

consolidation / annotated-command / 937 / 3
45%
master: 45%

Build:
DEFAULT BRANCH: master
Ran 19 Sep 2018 03:47AM UTC
Files 53
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

19 Sep 2018 03:45AM UTC coverage: 90.087% (-0.7%) from 90.796%
DEPENDENCIES=highest

push

travis-ci

web-flow
Improve commandfile discovery for extensions installed via Composer. (#156)

When managing plugins / extensions with Composer, and placing them via Composer Installers, there will
be additional directories placed by Composer that we need to account for when finding commandfiles.

For example, Drush has the following recommended installer path:

    "drush/Commands/contrib/{$name}": ["type:drupal-drush"]

If the Composer project has a name similar to `my-cool-plugin`, then the old discovery code would
produce a namespace that included dashes, and that included the `contrib` portion of the path. Both
of these things are undesirable. PHP namespaces cannot contain dashes, and if the namespace in
the plugin contains "contrib", then it would not be possible to commit a copy of the repository
in a "custom" directory, or directly in "drush/Commands".

This PR transliterates '-' to '_' in namespaces, and also allows clients to define namespace
path components (e.g. 'custom' and 'contrib') that should be removed before returning the discovered
paths and namespaces to the client.

1245 of 1382 relevant lines covered (90.09%)

16.71 hits per line

Source Files on job 937.3 (DEPENDENCIES=highest)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 874
  • Travis Job 937.3
  • 7990d7c1 on github
  • Prev Job for DEPENDENCIES=highest on master (#936.3)
  • Next Job for DEPENDENCIES=highest on master (#938.3)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc