-
Notifications
You must be signed in to change notification settings - Fork 2
Description
Strange, I thought I tested it, but my plugin currently seems to only check for files in the first glob!
Example
For instance
checkVSIncludes(['/Content/**/*.less', '/Content/*.css']);
returns:
There is 1 of the total 467 checked files NOT included in './MyProject.Web.csproj' ..
./Content/somefile.css
...`
While the same check but specified in another order
checkVSIncludes(['/Content/*.css', '/Content/**/*.less',]); ...
returns:
All 17 checked files are included in './MyProject.Web.csproj'.
This is a bug since both should obviously return the same result:
There is 1 of the total 484 (=467+17) checked files NOT included...
I'll fix it.
Workaround
As a workaround until then you can use multiple calls with a single glob. So for the above example something like:
checkVSIncludes(['/Content/**/*.less']);
checkVSIncludes(['/Content/*.css']);
The numbering in the results seems a bit off, but at least any files missing in ANY of the globs are listed.