Skip to content

Commit 6eb3667

Browse files
author
azurepowershell
committed
Sync tools folder from main branch to generation branch
1 parent 842d75a commit 6eb3667

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.azure-pipelines/code-sign.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ jobs:
3838
displayName: 'Install PowerShellGet [v2.1.3 has a Publish-Module bug]'
3939

4040
- task: DotNetCoreCLI@2
41-
displayName: Build
41+
displayName: Build For Target Module
4242
condition: ne('${{ parameters.TargetModule }}', 'none')
4343
inputs:
4444
command: custom
4545
custom: msbuild
4646
arguments: 'build.proj /t:"Build;CopyAboutTopics;GenerateHelp" /p:"Configuration=Release;GenerateDocumentationFile=true;TargetModule=${{ parameters.TargetModule }}"'
4747
- task: DotNetCoreCLI@2
48-
displayName: Build
48+
displayName: Build For Modified Modules
4949
condition: eq('${{ parameters.TargetModule }}', 'none')
5050
inputs:
5151
command: custom

build.proj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@
221221

222222
<Target Name="StaticAnalysisExample" Condition="'$(RunStaticAnalysis)' == 'true'" AfterTargets="StaticAnalysisHelp">
223223
<Message Importance="high" Text="Running static analysis for PowerShell examples..." />
224-
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;. $(RepoTools)StaticAnalysis/ExampleAnalyzer/Measure-MarkdownOrScript.ps1 -MarkdownPaths $(RepoArtifacts)FilesChanged.txt -RulePaths $(RepoTools)StaticAnalysis/ExampleAnalyzer/AnalyzeRules/*.psm1 &quot;"/>
224+
<Exec Command="$(PowerShellCoreCommandPrefix) &quot;. $(RepoTools)StaticAnalysis/ExampleAnalyzer/Measure-MarkdownOrScript.ps1 -MarkdownPaths $(RepoArtifacts)FilesChanged.txt -RulePaths $(RepoTools)StaticAnalysis/ExampleAnalyzer/AnalyzeRules/*.psm1 -NotCleanScripts &quot;"/>
225225
</Target>
226226

227227
<Target Name="StaticAnalysisFileChange" Condition="'$(RunStaticAnalysis)' == 'true'">

tools/StaticAnalysis/ExampleAnalyzer/utils.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,10 +494,10 @@ function Get-ScriptAnalyzerResult {
494494

495495
# Invoke PSScriptAnalyzer : input scriptblock, output error set in $result with property: RuleName, Message, Extent
496496
if ($null -eq $RulePaths) {
497-
$analysisResults = Invoke-ScriptAnalyzer -Path $ScriptPath -IncludeDefaultRules:$IncludeDefaultRules.IsPresent -Debug
497+
$analysisResults = Invoke-ScriptAnalyzer -Path $ScriptPath -IncludeDefaultRules:$IncludeDefaultRules.IsPresent
498498
}
499499
else {
500-
$analysisResults = Invoke-ScriptAnalyzer -Path $ScriptPath -CustomRulePath $RulePaths -IncludeDefaultRules:$IncludeDefaultRules.IsPresent -Debug
500+
$analysisResults = Invoke-ScriptAnalyzer -Path $ScriptPath -CustomRulePath $RulePaths -IncludeDefaultRules:$IncludeDefaultRules.IsPresent
501501
}
502502
$errors = @()
503503
foreach($analysisResult in $analysisResults){

0 commit comments

Comments
 (0)