This module is very handy, however I have a few custom proprietary modules that are only used on our company site and never go through the project manager. It would be great if we had a feature to make a list of modules not to check or a option to skip a directory.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Christopher Riley created an issue. See original summary.

ndf’s picture

Status: Active » Postponed (maintainer needs more info)

Do you use this module with Drush of via the UI?
How do you propose this should work from a UX/UI perspective?
What is the benefit in your workflow?

Put this on postponed now. But if more people think this should be added, than feel free to change the issue-status to 'Needs work'.

Core modules are excluded. You can re-use that logic as a starting-point.

http://cgit.drupalcode.org/unused_modules/tree/unused_modules.inc
lines 73-74

 // Remove core modules.
    _unused_modules_remove_core_modules($available_modules);

lines 172-182

/**
 * Remove core modules.
 */
function _unused_modules_remove_core_modules(&$modules) {
  // Removes core modules from the array.
  foreach ($modules as $key => $module) {
    if (substr($module->uri, 0, 7) == 'modules') {
      unset($modules[$key]);
    }
  }
}

Maybe this can also help: https://www.drupal.org/node/302577

colinstillwell’s picture

Status: Postponed (maintainer needs more info) » Active

I have a use case for this myself, I am going to fork and create a merge request. Watch this space!

colinstillwell’s picture

Status: Active » Needs review

Work completed, merge request raised. Ready for review.

ndf’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me.
I didn't do a manual check though.

astonvictor’s picture

Status: Reviewed & tested by the community » Closed (outdated)

D7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.