You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/Public/Get-SqlDscAudit.ps1
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -25,11 +25,11 @@
25
25
Get the audit named **MyFileAudit**.
26
26
27
27
.OUTPUTS
28
-
`[Microsoft.SqlServer.Management.Smo.Audit]`
28
+
`[Microsoft.SqlServer.Management.Smo.Audit[]]`
29
+
Array of SMO Audit objects from the target SQL Server instance.
29
30
#>
30
31
functionGet-SqlDscAudit
31
32
{
32
-
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseOutputTypeCorrectly','', Justification ='Because the rule does not understands that the command returns [System.String[]] when using , (comma) in the return statement')]
33
33
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('UseSyntacticallyCorrectExamples','', Justification ='Because the rule does not yet support parsing the code when a parameter type is not available. The ScriptAnalyzer rule UseSyntacticallyCorrectExamples will always error in the editor due to https://github.com/indented-automation/Indented.ScriptAnalyzerRules/issues/8.')]
Array of SMO ConfigProperty objects representing server configuration options.
34
35
#>
35
36
functionGet-SqlDscConfigurationOption
36
37
{
37
-
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseOutputTypeCorrectly','', Justification ='Because the rule does not understands that the command returns [System.String[]] when using , (comma) in the return statement')]
38
38
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('UseSyntacticallyCorrectExamples','', Justification ='Because the rule does not yet support parsing the code when a parameter type is not available. The ScriptAnalyzer rule UseSyntacticallyCorrectExamples will always error in the editor due to https://github.com/indented-automation/Indented.ScriptAnalyzerRules/issues/8.')]
Copy file name to clipboardExpand all lines: source/Public/Get-SqlDscDatabasePermission.ps1
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,6 @@
36
36
#>
37
37
functionGet-SqlDscDatabasePermission
38
38
{
39
-
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseOutputTypeCorrectly','', Justification ='Because the rule does not understands that the command returns [System.String[]] when using , (comma) in the return statement')]
40
39
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('UseSyntacticallyCorrectExamples','', Justification ='Because the rule does not yet support parsing the code when a parameter type is not available. The ScriptAnalyzer rule UseSyntacticallyCorrectExamples will always error in the editor due to https://github.com/indented-automation/Indented.ScriptAnalyzerRules/issues/8.')]
41
40
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('AvoidThrowOutsideOfTry','', Justification ='Because the code throws based on an prior expression')]
42
41
[CmdletBinding()]
@@ -97,6 +96,6 @@ function Get-SqlDscDatabasePermission
Copy file name to clipboardExpand all lines: source/Public/Get-SqlDscServerPermission.ps1
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,6 @@
95
95
#>
96
96
functionGet-SqlDscServerPermission
97
97
{
98
-
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseOutputTypeCorrectly','', Justification ='Because the rule does not understands that the command returns [System.String[]] when using , (comma) in the return statement')]
99
98
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('UseSyntacticallyCorrectExamples','', Justification ='Because the rule does not yet support parsing the code when a parameter type is not available. The ScriptAnalyzer rule UseSyntacticallyCorrectExamples will always error in the editor due to https://github.com/indented-automation/Indented.ScriptAnalyzerRules/issues/8.')]
100
99
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('AvoidThrowOutsideOfTry','', Justification ='Because the code throws based on an prior expression')]
101
100
[CmdletBinding(DefaultParameterSetName='ByName')]
@@ -196,6 +195,6 @@ function Get-SqlDscServerPermission
Copy file name to clipboardExpand all lines: source/Public/Get-SqlDscTraceFlag.ps1
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,6 @@
45
45
#>
46
46
functionGet-SqlDscTraceFlag
47
47
{
48
-
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSUseOutputTypeCorrectly','', Justification ='Because the rule does not understands that the command returns [System.UInt32[]] when using , (comma) in the return statement')]
49
48
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('UseSyntacticallyCorrectExamples','', Justification ='Because the rule does not yet support parsing the code when a parameter type is not available. The ScriptAnalyzer rule UseSyntacticallyCorrectExamples will always error in the editor due to https://github.com/indented-automation/Indented.ScriptAnalyzerRules/issues/8.')]
0 commit comments