code: protected boolean shouldProcess(File pathname) throws AnalysisException {
          try {
              // Do not scan the node_modules (or bower_components) directory
              final String canonicalPath = pathname.getCanonicalPath();
              if (canonicalPath.contains(File.separator + "node_modules" + File.separator)
                      || canonicalPath.contains(File.separator + "bower_components" + File.separator)) {
                  LOGGER.debug("Skipping analysis of node/bower module: {}", canonicalPath);
                  return false;
              }
          } catch (IOException ex) {
              throw new AnalysisException("Unable to process dependency", ex);
          }
          return true;
      }
docs: Determines if the path contains "/node_modules/" or "/bower_components/"
  (i.e. it is a child module). This analyzer does not scan child modules.
  
  @param pathname the path to test
  @return <code>true</code> if the path does not contain "/node_modules/"
  or "/bower_components/"
  @throws AnalysisException thrown if the canonical path cannot be obtained
  from the given file