Skip to content

Commit 4a9760b

Browse files
committed
Merge branch 'dev'
2 parents 80f90c8 + 84b2a17 commit 4a9760b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1000
-740
lines changed

.gitignore

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ publish/
140140
# Publish Web Output
141141
*.[Pp]ublish.xml
142142
*.azurePubxml
143-
# TODO: Comment the next line if you want to checkin your web deploy settings
143+
# TODO: Comment the next line if you want to checkin your web deploy settings
144144
# but database connection strings (with potential passwords) will be unencrypted
145145
*.pubxml
146146
*.publishproj
@@ -234,3 +234,16 @@ _Pvt_Extensions
234234

235235
# FAKE - F# Make
236236
.fake/
237+
238+
# Ignore debug script file
239+
Scripts/debug.ps1
240+
241+
# Ignore meta test files
242+
Tests/Meta/FileContent.Tests.ps1
243+
Tests/Meta/FileEncoding.Tests.ps1
244+
Tests/Meta/FileFormatting.Tests.ps1
245+
Tests/Meta/ProjectStructure.Tests.ps1
246+
Tests/Meta/ScriptAnalyzer.Tests.ps1
247+
248+
# Ignore assembly
249+
Modules/SecurityFever/SecurityFever.dll

Functions/Set-ScriptLogger.ps1

Lines changed: 0 additions & 129 deletions
This file was deleted.

Functions/Start-ScriptLogger.ps1

Lines changed: 0 additions & 130 deletions
This file was deleted.

Functions/Stop-ScriptLogger.ps1

Lines changed: 0 additions & 32 deletions
This file was deleted.

Functions/Get-ScriptLogger.ps1 renamed to Modules/ScriptLogger/Functions/Get-ScriptLogger.ps1

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,38 @@
11
<#
2-
.SYNOPSIS
2+
.SYNOPSIS
33
Get the current script logger.
44
5-
.DESCRIPTION
6-
Returns an object with the current configuration of the script logger
7-
inside this PowerShell session.
5+
.DESCRIPTION
6+
Returns an object with the current configuration of the script logger inside
7+
this PowerShell session.
88
9-
.EXAMPLE
10-
C:\> Get-ScriptLogger
9+
.INPUTS
10+
None.
11+
12+
.OUTPUTS
13+
ScriptLogger.Configuration. Configuration of the script logger instance.
14+
15+
.EXAMPLE
16+
PS C:\> Get-ScriptLogger
1117
Get the current script logger object.
1218
13-
.NOTES
19+
.NOTES
1420
Author : Claudio Spizzi
1521
License : MIT License
1622
17-
.LINK
23+
.LINK
1824
https://github.com/claudiospizzi/ScriptLogger
1925
#>
2026

2127
function Get-ScriptLogger
2228
{
2329
[CmdletBinding()]
30+
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSAvoidGlobalVars', '')]
2431
param
2532
(
2633
)
2734

28-
if ($Global:ScriptLogger -ne $null)
35+
if ($null -ne $Global:ScriptLogger)
2936
{
3037
return $Global:ScriptLogger
3138
}

0 commit comments

Comments
 (0)