dependency-check-core/src/main/java/org/owasp/dependencycheck/Engine.java
/**
     * Scans an array of files or directories. If a directory is specified, it
     * will be scanned recursively. Any dependencies identified are added to the
     * dependency collection.
     *
     * @param files an array of paths to files or directories to be analyzed.
     * @param projectReference the name of the project or scope in which the
     * dependency was identified
     * @return the list of dependencies
     * @since v1.4.4
     */
Scans an array of files or directories. If a directory is specified, it
will be scanned recursively. Any dependencies identified are added to the
dependency collection.

@param files an array of paths to files or directories to be analyzed.
@param projectReference the name of the project or scope in which the
dependency was identified
@return the list of dependencies
@since v1.4.4
Scans an array of files or directories . If a directory is specified it will be scanned recursively . Any dependencies identified are added to the dependency collection . @param files an array of paths to files or directories to be analyzed . @param projectReference the name of the project or scope in which the dependency was identified @return the list of dependencies @since v1 . 4 . 4
public List<Dependency> scan(File[] files, String projectReference) {
        final List<Dependency> deps = new ArrayList<>();
        for (File file : files) {
            final List<Dependency> d = scan(file, projectReference);
            if (d != null) {
                deps.addAll(d);
            }
        }
        return deps;
    }
public List < Dependency > scan ( File [ ] files , String projectReference ) { final List < Dependency > deps = new ArrayList < > ( ) ; for ( File file : files ) { final List < Dependency > d = scan ( file , projectReference ) ; if ( d != null ) { deps . addAll ( d ) ; } } return deps ; }
Scans an array of files or directories.
Scans an array of files or directories .