1 parent 177baf7 commit 7362c32Copy full SHA for 7362c32
2 files changed
src/New-DocumentType.psm1
@@ -1,3 +1,5 @@
1
+using namespace System.Diagnostics.CodeAnalysis
2
+
3
<#
4
.SYNOPSIS
5
Creates a new document type declaration.
@@ -10,6 +12,7 @@ function New-HtmlDocumentType {
10
12
[Alias("doctype")]
11
13
[CmdletBinding()]
14
[OutputType([string])]
15
+ [SuppressMessage("PSUseShouldProcessForStateChangingFunctions", "")]
16
param (
17
# The value of the document type.
18
[Parameter(Position = 0, ValueFromPipeline)]
tool/Lint.ps1
@@ -1,5 +1,5 @@
using module PSScriptAnalyzer
"Performing the static analysis of source code..."
-$PSScriptRoot, "test" | Invoke-ScriptAnalyzer -Recurse
+$PSScriptRoot, "src", "test" | Invoke-ScriptAnalyzer -Recurse
Test-ModuleManifest Html.psd1 | Out-Null
0 commit comments