diff --git a/Compile.ps1 b/Compile.ps1 index 72e32c0b..dab9e828 100644 --- a/Compile.ps1 +++ b/Compile.ps1 @@ -37,11 +37,11 @@ $header = @" "@ if (-NOT $SkipPreprocessing) { - # Dot source the 'Do-PreProcessing' Function from 'tools/Do-PreProcessing.ps1' Function - . "$workingdir\tools\Do-PreProcessing.ps1" + # Dot source the 'Invoke-Preprocessing' Function from 'tools/Invoke-Preprocessing.ps1' Script + . "$workingdir\tools\Invoke-Preprocessing.ps1" $msg = "Pre-req: Code Formatting" Update-Progress "Pre-req: Allocating Memory" 0 - Do-PreProcessing $msg + Invoke-Preprocessing $msg } # Create the script in memory. diff --git a/tools/Do-PreProcessing.ps1 b/tools/Invoke-Preprocessing.ps1 similarity index 87% rename from tools/Do-PreProcessing.ps1 rename to tools/Invoke-Preprocessing.ps1 index dc6f5ce6..ea31f4b1 100644 --- a/tools/Do-PreProcessing.ps1 +++ b/tools/Invoke-Preprocessing.ps1 @@ -1,4 +1,4 @@ -function Do-PreProcessing { +function Invoke-Preprocessing { param ( [Parameter(Mandatory, position=0)] [string]$ProgressStatusMessage, @@ -7,8 +7,8 @@ function Do-PreProcessing { [string]$ProgressActivity = "Pre-Processing" ) - # We could do Pre-processing on this script file, but by excluding it.. we could possible weird behavior, - # like future runs of this tool being different then previous ones, as the script has modified it self before one or more times. + # We can do Pre-processing on this script file, but by excluding it we're avoiding possible weird behavior, + # like future runs of this tool being different then previous ones, as the script has modified it self before (one or more times). # # Note: # There's way too many possible edge cases, not to mention there's no Unit Testing for these tools.. which's a Good Recipe for a Janky/Sensitive Script. @@ -21,7 +21,7 @@ function Do-PreProcessing { for ($i = 0; $i -lt $numOfFiles; $i++) { $file = $files[$i] - # Make sure the file isn't in Excluded Files List + # If the file is in Exclude List, don't proceed to check/modify said file. $fileIsExcluded = $False for ($j = 0; $j -lt $excludedFiles.Count; $j++) { $excluded = $excludedFiles[$j]