Skip to content

Add metadata to docs #1731

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/Cmdlets/Get-ScriptAnalyzerRule.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
---
external help file: Microsoft.Windows.PowerShell.ScriptAnalyzer.dll-Help.xml
Module Name: PSScriptAnalyzer
ms.custom: PSSA v1.20.0
ms.date: 10/07/2021
online version: https://docs.microsoft.com/powershell/module/psscriptanalyzer/get-scriptanalyzerrule?view=ps-modules&wt.mc_id=ps-gethelp
schema: 2.0.0
Expand Down
3 changes: 2 additions & 1 deletion docs/Cmdlets/Invoke-Formatter.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
---
external help file: Microsoft.Windows.PowerShell.ScriptAnalyzer.dll-Help.xml
Module Name: PSScriptAnalyzer
ms.custom: PSSA v1.20.0
ms.date: 10/07/2021
online version: https://docs.microsoft.com/powershell/module/psscriptanalyzer/invoke-formatter?view=ps-modules&wt.mc_id=ps-gethelp
schema: 2.0.0
Expand Down
3 changes: 2 additions & 1 deletion docs/Cmdlets/Invoke-ScriptAnalyzer.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
---
external help file: Microsoft.Windows.PowerShell.ScriptAnalyzer.dll-Help.xml
Module Name: PSScriptAnalyzer
ms.custom: PSSA v1.20.0
ms.date: 10/07/2021
online version: https://docs.microsoft.com/powershell/module/psscriptanalyzer/invoke-scriptanalyzer?view=ps-modules&wt.mc_id=ps-gethelp
schema: 2.0.0
Expand Down
11 changes: 6 additions & 5 deletions docs/Cmdlets/PSScriptAnalyzer.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
---
Module Name: PSScriptAnalyzer
Module Guid: d6245802-193d-4068-a631-8863a4342a18
ms.date: 10/07/2021
Download Help Link: https://aka.ms/ps-modules-help
---
Download Help Link: https://aka.ms/ps-modules-help
Help Version: 1.20.0
Locale: en-US
Module Guid: d6245802-193d-4068-a631-8863a4342a18
Module Name: PSScriptAnalyzer
ms.custom: PSSA v1.20.0
ms.date: 10/07/2021
---

# PSScriptAnalyzer Module
Expand Down
9 changes: 8 additions & 1 deletion docs/Rules/AlignAssignmentStatement.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# AlignAssignmentStatement
---
description: Align assignment statement
ms.custom: PSSA v1.20.0
ms.date: 10/18/2021
ms.topic: reference
title: AlignAssignmentStatement
---
# AlignAssignmentStatement

**Severity Level: Warning**

Expand Down
7 changes: 7 additions & 0 deletions docs/Rules/AvoidAssignmentToAutomaticVariable.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
description: Changing automatic variables might have undesired side effects
ms.custom: PSSA v1.20.0
ms.date: 10/18/2021
ms.topic: reference
title: AvoidAssignmentToAutomaticVariable
---
# AvoidAssignmentToAutomaticVariable

**Severity Level: Warning**
Expand Down
7 changes: 7 additions & 0 deletions docs/Rules/AvoidDefaultValueForMandatoryParameter.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
description: Avoid Default Value For Mandatory Parameter
ms.custom: PSSA v1.20.0
ms.date: 10/18/2021
ms.topic: reference
title: AvoidDefaultValueForMandatoryParameter
---
# AvoidDefaultValueForMandatoryParameter

**Severity Level: Warning**
Expand Down
7 changes: 7 additions & 0 deletions docs/Rules/AvoidDefaultValueSwitchParameter.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
description: Switch Parameters Should Not Default To True
ms.custom: PSSA v1.20.0
ms.date: 10/18/2021
ms.topic: reference
title: AvoidDefaultValueSwitchParameter
---
# AvoidDefaultValueSwitchParameter

**Severity Level: Warning**
Expand Down
7 changes: 7 additions & 0 deletions docs/Rules/AvoidGlobalAliases.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
description: Avoid global aliases.
ms.custom: PSSA v1.20.0
ms.date: 10/18/2021
ms.topic: reference
title: AvoidGlobalAliases
---
# AvoidGlobalAliases

**Severity Level: Warning**
Expand Down
7 changes: 7 additions & 0 deletions docs/Rules/AvoidGlobalFunctions.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
description: Avoid global functions and aliases
ms.custom: PSSA v1.20.0
ms.date: 10/18/2021
ms.topic: reference
title: AvoidGlobalFunctions
---
# AvoidGlobalFunctions

**Severity Level: Warning**
Expand Down
7 changes: 7 additions & 0 deletions docs/Rules/AvoidGlobalVars.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
description: No Global Variables
ms.custom: PSSA v1.20.0
ms.date: 10/18/2021
ms.topic: reference
title: AvoidGlobalVars
---
# AvoidGlobalVars

**Severity Level: Warning**
Expand Down
7 changes: 7 additions & 0 deletions docs/Rules/AvoidInvokingEmptyMembers.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
description: Avoid Invoking Empty Members
ms.custom: PSSA v1.20.0
ms.date: 10/18/2021
ms.topic: reference
title: AvoidInvokingEmptyMembers
---
# AvoidInvokingEmptyMembers

**Severity Level: Warning**
Expand Down
7 changes: 7 additions & 0 deletions docs/Rules/AvoidLongLines.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
description: Avoid long lines
ms.custom: PSSA v1.20.0
ms.date: 10/18/2021
ms.topic: reference
title: AvoidLongLines
---
# AvoidLongLines

**Severity Level: Warning**
Expand Down
7 changes: 7 additions & 0 deletions docs/Rules/AvoidMultipleTypeAttributes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
description: Avoid multiple type specifiers on parameters.
ms.custom: PSSA v1.20.0
ms.date: 10/18/2021
ms.topic: reference
title: AvoidMultipleTypeAttributes
---
# AvoidMultipleTypeAttributes

**Severity Level: Warning**
Expand Down
7 changes: 7 additions & 0 deletions docs/Rules/AvoidNullOrEmptyHelpMessageAttribute.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
description: Avoid using null or empty HelpMessage parameter attribute.
ms.custom: PSSA v1.20.0
ms.date: 10/18/2021
ms.topic: reference
title: AvoidNullOrEmptyHelpMessageAttribute
---
# AvoidNullOrEmptyHelpMessageAttribute

**Severity Level: Warning**
Expand Down
7 changes: 7 additions & 0 deletions docs/Rules/AvoidOverwritingBuiltInCmdlets.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
description: Avoid overwriting built in cmdlets
ms.custom: PSSA v1.20.0
ms.date: 10/18/2021
ms.topic: reference
title: AvoidOverwritingBuiltInCmdlets
---
# AvoidOverwritingBuiltInCmdlets

**Severity Level: Warning**
Expand Down
7 changes: 7 additions & 0 deletions docs/Rules/AvoidShouldContinueWithoutForce.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
description: Avoid Using ShouldContinue Without Boolean Force Parameter
ms.custom: PSSA v1.20.0
ms.date: 10/18/2021
ms.topic: reference
title: AvoidShouldContinueWithoutForce
---
# AvoidShouldContinueWithoutForce

**Severity Level: Warning**
Expand Down
7 changes: 7 additions & 0 deletions docs/Rules/AvoidTrailingWhitespace.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
description: Avoid trailing whitespace
ms.custom: PSSA v1.20.0
ms.date: 10/18/2021
ms.topic: reference
title: AvoidTrailingWhitespace
---
# AvoidTrailingWhitespace

**Severity Level: Information**
Expand Down
7 changes: 7 additions & 0 deletions docs/Rules/AvoidUsingCmdletAliases.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
description: Avoid Using Cmdlet Aliases or omitting the 'Get-' prefix.
ms.custom: PSSA v1.20.0
ms.date: 10/18/2021
ms.topic: reference
title: AvoidUsingCmdletAliases
---
# AvoidUsingCmdletAliases

**Severity Level: Warning**
Expand Down
11 changes: 9 additions & 2 deletions docs/Rules/AvoidUsingComputerNameHardcoded.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
description: Avoid Using ComputerName Hardcoded
ms.custom: PSSA v1.20.0
ms.date: 10/18/2021
ms.topic: reference
title: AvoidUsingComputerNameHardcoded
---
# AvoidUsingComputerNameHardcoded

**Severity Level: Error**
Expand All @@ -11,7 +18,7 @@ The names of computers should never be hard coded as this will expose sensitive

Remove hard coded computer names.

## Example
## Example 1

### Wrong

Expand All @@ -31,7 +38,7 @@ Function Invoke-MyCommand ($ComputerName)
}
```

## Example
## Example 2

### Wrong

Expand Down
7 changes: 7 additions & 0 deletions docs/Rules/AvoidUsingConvertToSecureStringWithPlainText.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
description: Avoid Using SecureString With Plain Text
ms.custom: PSSA v1.20.0
ms.date: 10/18/2021
ms.topic: reference
title: AvoidUsingConvertToSecureStringWithPlainText
---
# AvoidUsingConvertToSecureStringWithPlainText

**Severity Level: Error**
Expand Down
7 changes: 7 additions & 0 deletions docs/Rules/AvoidUsingDeprecatedManifestFields.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
description: Avoid Using Deprecated Manifest Fields
ms.custom: PSSA v1.20.0
ms.date: 10/18/2021
ms.topic: reference
title: AvoidUsingDeprecatedManifestFields
---
# AvoidUsingDeprecatedManifestFields

**Severity Level: Warning**
Expand Down
7 changes: 7 additions & 0 deletions docs/Rules/AvoidUsingDoubleQuotesForConstantString.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
description: Avoid using double quotes if the string is constant.
ms.custom: PSSA v1.20.0
ms.date: 10/18/2021
ms.topic: reference
title: AvoidUsingDoubleQuotesForConstantString
---
# AvoidUsingDoubleQuotesForConstantString

**Severity Level: Information**
Expand Down
7 changes: 7 additions & 0 deletions docs/Rules/AvoidUsingEmptyCatchBlock.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
description: Avoid Using Empty Catch Block
ms.custom: PSSA v1.20.0
ms.date: 10/18/2021
ms.topic: reference
title: AvoidUsingEmptyCatchBlock
---
# AvoidUsingEmptyCatchBlock

**Severity Level: Warning**
Expand Down
7 changes: 7 additions & 0 deletions docs/Rules/AvoidUsingInvokeExpression.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
description: Avoid Using Invoke-Expression
ms.custom: PSSA v1.20.0
ms.date: 10/18/2021
ms.topic: reference
title: AvoidUsingInvokeExpression
---
# AvoidUsingInvokeExpression

**Severity Level: Warning**
Expand Down
7 changes: 7 additions & 0 deletions docs/Rules/AvoidUsingPlainTextForPassword.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
description: Avoid Using Plain Text For Password Parameter
ms.custom: PSSA v1.20.0
ms.date: 10/18/2021
ms.topic: reference
title: AvoidUsingPlainTextForPassword
---
# AvoidUsingPlainTextForPassword

**Severity Level: Warning**
Expand Down
7 changes: 7 additions & 0 deletions docs/Rules/AvoidUsingPositionalParameters.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
description: Avoid Using Positional Parameters
ms.custom: PSSA v1.20.0
ms.date: 10/18/2021
ms.topic: reference
title: AvoidUsingPositionalParameters
---
# AvoidUsingPositionalParameters

** Severity Level: Information **
Expand Down
7 changes: 7 additions & 0 deletions docs/Rules/AvoidUsingUsernameAndPasswordParams.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
description: Avoid Using Username and Password Parameters
ms.custom: PSSA v1.20.0
ms.date: 10/18/2021
ms.topic: reference
title: AvoidUsingUsernameAndPasswordParams
---
# AvoidUsingUsernameAndPasswordParams

**Severity Level: Error**
Expand Down
7 changes: 7 additions & 0 deletions docs/Rules/AvoidUsingWMICmdlet.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
description: Avoid Using Get-WMIObject, Remove-WMIObject, Invoke-WmiMethod, Register-WmiEvent, Set-WmiInstance
ms.custom: PSSA v1.20.0
ms.date: 10/18/2021
ms.topic: reference
title: AvoidUsingWMICmdlet
---
# AvoidUsingWMICmdlet

**Severity Level: Warning**
Expand Down
7 changes: 7 additions & 0 deletions docs/Rules/AvoidUsingWriteHost.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
description: Avoid Using Write-Host
ms.custom: PSSA v1.20.0
ms.date: 10/18/2021
ms.topic: reference
title: AvoidUsingWriteHost
---
# AvoidUsingWriteHost

**Severity Level: Warning**
Expand Down
7 changes: 7 additions & 0 deletions docs/Rules/DSCDscExamplesPresent.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
description: DSC examples are present
ms.custom: PSSA v1.20.0
ms.date: 10/18/2021
ms.topic: reference
title: DSCDscExamplesPresent
---
# DscExamplesPresent

**Severity Level: Information**
Expand Down
7 changes: 7 additions & 0 deletions docs/Rules/DSCDscTestsPresent.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
---
description: Dsc tests are present
ms.custom: PSSA v1.20.0
ms.date: 10/18/2021
ms.topic: reference
title: DSCDscTestsPresent
---
# DscTestsPresent

**Severity Level: Information**
Expand Down
Loading