-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (58 loc) · 3.67 KB
/
test-analysis-failure.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Test Analysis Failure
# Runs for PRs opened for any branch, and pushes to the dev branch.
on:
pull_request:
push:
branches:
- dev
jobs:
call-test-analysis-failure-nuget:
name: Test Analysis Failure - NuGet PackageReference
uses: Lombiq/GitHub-Actions/.github/workflows/test-analysis-failure.yml@dev
with:
machine-types: "['ubuntu-24.04', 'windows-2022']"
build-directory: TestSolutions/Lombiq.Analyzers.PowerShell.PackageReference
timeout-minutes: 30
build-expected-code-analysis-errors: |
MSB3073: The command exited with non-zero code.
PSAvoidExclaimOperator: Avoid using the ! negation operator
PSAvoidUsingAutomaticVariableAlias: '$_' is an alias of '$PSItem'.
PSAvoidUsingCmdletAliases: '%' is an alias of 'ForEach-Object'.
PSAvoidUsingDoubleQuotesForConstantString: Use single quotes when a string is constant.
PSAvoidUsingEmptyCatchBlock: Empty catch block is used.
PSAvoidUsingLineContinuation: Using backtick (line continuation) makes the code harder to read and maintain.
PSAvoidUsingUnnecessaryBracesInVariableNames: Variable names should not use unnecessary braces
PSAvoidUsingWriteHost: File 'Violate-Analyzers.ps1' uses Write-Host.
PSPlaceOpenBrace: Open brace is not on a new line.
PSUseApprovedVerbs: The cmdlet 'Violate-Analyzers' uses an unapproved verb.
PSUseConsistentIndentation: Indentation not consistent
PSUseCorrectAutomaticVariableNames: Automatic variables should be used exactly as they are documented
PSUseCorrectParameterNameCasing: Parameter names should start with an uppercase letter
PSUseCorrectVariableNameCasing: Variable names should start with a lowercase letter
PSUseParametersAsDeclared: Parameters should be used with exactly as they were declared
PSUseSingularNouns: The cmdlet 'Violate-Analyzers' uses a plural noun.
call-test-analysis-failure-local:
name: Test Analysis Failure - Local ProjectReference
uses: Lombiq/GitHub-Actions/.github/workflows/test-analysis-failure.yml@dev
with:
machine-types: "['ubuntu-24.04', 'windows-2022']"
build-directory: TestSolutions/Lombiq.Analyzers.PowerShell.ProjectReference
timeout-minutes: 30
build-expected-code-analysis-errors: |
MSB3073: The command exited with non-zero code.
PSAvoidExclaimOperator: Avoid using the ! negation operator
PSAvoidUsingAutomaticVariableAlias: '$_' is an alias of '$PSItem'.
PSAvoidUsingCmdletAliases: '%' is an alias of 'ForEach-Object'.
PSAvoidUsingDoubleQuotesForConstantString: Use single quotes when a string is constant.
PSAvoidUsingEmptyCatchBlock: Empty catch block is used.
PSAvoidUsingLineContinuation: Using backtick (line continuation) makes the code harder to read and maintain.
PSAvoidUsingUnnecessaryBracesInVariableNames: Variable names should not use unnecessary braces
PSAvoidUsingWriteHost: File 'Violate-Analyzers.ps1' uses Write-Host.
PSPlaceOpenBrace: Open brace is not on a new line.
PSUseApprovedVerbs: The cmdlet 'Violate-Analyzers' uses an unapproved verb.
PSUseConsistentIndentation: Indentation not consistent
PSUseCorrectAutomaticVariableNames: Automatic variables should be used exactly as they are documented
PSUseCorrectParameterNameCasing: Parameter names should start with an uppercase letter
PSUseCorrectVariableNameCasing: Variable names should start with a lowercase letter
PSUseParametersAsDeclared: Parameters should be used with exactly as they were declared
PSUseSingularNouns: The cmdlet 'Violate-Analyzers' uses a plural noun.