Rename 'Do-PreProcessing' to 'Invoke-Preprocessing' - Update some Comments

This commit is contained in:
Mr.k 2024-07-26 17:25:15 +03:00
parent 1803337574
commit 24d33fccd2
No known key found for this signature in database
2 changed files with 7 additions and 7 deletions

View File

@ -37,11 +37,11 @@ $header = @"
"@ "@
if (-NOT $SkipPreprocessing) { if (-NOT $SkipPreprocessing) {
# Dot source the 'Do-PreProcessing' Function from 'tools/Do-PreProcessing.ps1' Function # Dot source the 'Invoke-Preprocessing' Function from 'tools/Invoke-Preprocessing.ps1' Script
. "$workingdir\tools\Do-PreProcessing.ps1" . "$workingdir\tools\Invoke-Preprocessing.ps1"
$msg = "Pre-req: Code Formatting" $msg = "Pre-req: Code Formatting"
Update-Progress "Pre-req: Allocating Memory" 0 Update-Progress "Pre-req: Allocating Memory" 0
Do-PreProcessing $msg Invoke-Preprocessing $msg
} }
# Create the script in memory. # Create the script in memory.

View File

@ -1,4 +1,4 @@
function Do-PreProcessing { function Invoke-Preprocessing {
param ( param (
[Parameter(Mandatory, position=0)] [Parameter(Mandatory, position=0)]
[string]$ProgressStatusMessage, [string]$ProgressStatusMessage,
@ -7,8 +7,8 @@ function Do-PreProcessing {
[string]$ProgressActivity = "Pre-Processing" [string]$ProgressActivity = "Pre-Processing"
) )
# We could do Pre-processing on this script file, but by excluding it.. we could possible weird behavior, # 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. # like future runs of this tool being different then previous ones, as the script has modified it self before (one or more times).
# #
# Note: # 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. # 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++) { for ($i = 0; $i -lt $numOfFiles; $i++) {
$file = $files[$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 $fileIsExcluded = $False
for ($j = 0; $j -lt $excludedFiles.Count; $j++) { for ($j = 0; $j -lt $excludedFiles.Count; $j++) {
$excluded = $excludedFiles[$j] $excluded = $excludedFiles[$j]