Skip to content

Commit ca1e015

Browse files
committed
Move Command Data Files from Engine\Settings -> Engine\CommandDataFiles.
Previously they were mixed in with the Settings Preset files. This wasn't an issue as all settings file were always PSD1 and these command data files are JSON. If we are to support other settings file formats, then we need to separate these. They are now copied to a CommandDataFiles directory in the built module. Two rules load these and will need to be fixed up to load them from the new directory: - Rules/AvoidOverwritingBuiltInCmdlets.cs - Rules/UseCompatibleCmdlets.cs
1 parent 3a4681d commit ca1e015

9 files changed

+3
-0
lines changed

build.psm1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,9 @@ function Start-ScriptAnalyzerBuild
254254
$settingsFiles = Get-Childitem "$projectRoot\Engine\SettingsPresets" | ForEach-Object -MemberName FullName
255255
Publish-File $settingsFiles (Join-Path -Path $script:destinationDir -ChildPath Settings)
256256

257+
$settingsFiles = Get-Childitem "$projectRoot\Engine\CommandDataFiles" | ForEach-Object -MemberName FullName
258+
Publish-File $settingsFiles (Join-Path -Path $script:destinationDir -ChildPath CommandDataFiles)
259+
257260
$rulesProjectOutputDir = if ($env:TF_BUILD) {
258261
"$projectRoot\bin\${buildConfiguration}\${framework}" }
259262
else {

0 commit comments

Comments
 (0)