Closed pauby closed 4 years ago
The lint failure seems to be a problem with the pipeline as all the PSSA highlights are warnings but there is an error at the end.
I'm putting this comment here just to draw attention to the lint error which looks very much to be a non-issue.
@pauby Lint errors are fixed now https://github.com/psake/PowerShellBuild/commit/b9ebdd875bbac62d152421432566513a5e1fc21b. Shouldn't be an issue.
Description
Build.CompileModule
is$true
thenBuild.Exclude
is treated as an array of regular expressions and the files found to be included into the compiled PSM1 file are matched and excluded;Build.Exclude
is an array of regular expressions ifBuild.CompileModule
is$true
;Related Issue
40 - note that I added this PR for discussion so it's clearer what I'm doing.
Motivation and Context
Currently, if you compile the module then all PS1 files found recursively from
General.SrcRootDir
are included into the compiled PSM1 file. This is clearly not desired behaviour.How Has This Been Tested?
This issue was found, fixed and tested in one of my own private projects. It now has the desired behaviour.
Types of changes
Checklist:
Fixes #40