Skip to content

Commit 7362c32

Browse files
committed
Fix the warnings of the static analyzer
1 parent 177baf7 commit 7362c32

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/New-DocumentType.psm1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
using namespace System.Diagnostics.CodeAnalysis
2+
13
<#
24
.SYNOPSIS
35
Creates a new document type declaration.
@@ -10,6 +12,7 @@ function New-HtmlDocumentType {
1012
[Alias("doctype")]
1113
[CmdletBinding()]
1214
[OutputType([string])]
15+
[SuppressMessage("PSUseShouldProcessForStateChangingFunctions", "")]
1316
param (
1417
# The value of the document type.
1518
[Parameter(Position = 0, ValueFromPipeline)]

tool/Lint.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using module PSScriptAnalyzer
22

33
"Performing the static analysis of source code..."
4-
$PSScriptRoot, "test" | Invoke-ScriptAnalyzer -Recurse
4+
$PSScriptRoot, "src", "test" | Invoke-ScriptAnalyzer -Recurse
55
Test-ModuleManifest Html.psd1 | Out-Null

0 commit comments

Comments
 (0)