function ret = checkForUnresolvedFiles(h, varargin)
% CHECKFORUNRESOLVEDFILES - returns true if any files within buildInfo have
%missing paths or extensions.
%
%call the method like this:
%
% h.checkForUnresolvedFiles(<optional args>)
%
% args description
% 'skipPaths' don't check for missing paths

% Copyright 2015-2019 The MathWorks, Inc.

persistent p
if isempty(p)
p = inputParser;
addParameter(p, 'skipPaths', false, @islogical);
end
parse(p, varargin{:});

missingPaths = ~p.Results.skipPaths && h.Settings.HasUnresolvedPaths;
missingExts = h.Settings.HasUnresolvedExtensions;

ret = (missingPaths || missingExts);