Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Merge pull request #26 from tigattack/dev
Browse files Browse the repository at this point in the history
Merge dev into master
  • Loading branch information
tigattack authored Dec 20, 2021
2 parents e184757 + 200699b commit d2bedea
Show file tree
Hide file tree
Showing 23 changed files with 1,084 additions and 516 deletions.
26 changes: 13 additions & 13 deletions .github/scripts/pssa-settings.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -35,26 +35,26 @@
)
}
PSPlaceCloseBrace = @{
Enable = $true
NoEmptyLineBefore = $false
IgnoreOneLineBlock = $true
NewLineAfter = $true
}
Enable = $true
NoEmptyLineBefore = $false
IgnoreOneLineBlock = $true
NewLineAfter = $true
}
PSPlaceOpenBrace = @{
Enable = $true
OnSameLine = $true
NewLineAfter = $true
IgnoreOneLineBlock = $true
}
Enable = $true
OnSameLine = $true
NewLineAfter = $true
IgnoreOneLineBlock = $true
}
PSUseConsistentIndentation = @{
Enable = $true
IndentationSize = 4
PipelineIndentation = 'IncreaseIndentationForFirstPipeline'
Kind = 'tab'
}
PSAvoidLongLines = @{
Enable = $true
MaximumLineLength = 155
}
Enable = $true
MaximumLineLength = 155
}
}
}
3 changes: 2 additions & 1 deletion .github/scripts/pssa.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ $issues = foreach ($i in $psFiles.FullName) {
Invoke-ScriptAnalyzer -Path $i -Recurse -Settings ./.github/scripts/pssa-settings.psd1
}

# Get results, types and report to GitHub Actions
# init and set variables
$errors = $warnings = $infos = $unknowns = 0

# Get results, types and report to GitHub Actions
foreach ($i in $issues) {
switch ($i.Severity) {
{$_ -eq 'Error' -or $_ -eq 'ParseError'} {
Expand Down
Loading

0 comments on commit d2bedea

Please sign in to comment.