-
Notifications
You must be signed in to change notification settings - Fork 0
/
ps-rule.yaml
78 lines (62 loc) · 1.67 KB
/
ps-rule.yaml
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#
# PSRule for Azure configuration
#
# Please see the documentation for all configuration options:
# https://aka.ms/ps-rule/options
# https://aka.ms/ps-rule-azure/options
# Configure binding for local rules.
binding:
preferTargetInfo: true
targetType:
- type
- resourceType
requires:
PSRule: '@pre >=2.9.0'
PSRule.Rules.Azure: '@pre >=1.27.3'
configuration:
# Enable automatic expansion of JSON parameter files.
AZURE_PARAMETER_FILE_EXPANSION: true
# Enable automatic expansion of Azure Bicep source files.
AZURE_BICEP_FILE_EXPANSION: true
# Configures the number of seconds to wait for build Bicep files.
AZURE_BICEP_FILE_EXPANSION_TIMEOUT: 10
# Enable automatic expansion of Bicep parameter files.
AZURE_BICEP_PARAMS_FILE_EXPANSION: true
# Enable Bicep CLI checks.
AZURE_BICEP_CHECK_TOOL: true
# Configure the minimum version of the Bicep CLI.
AZURE_BICEP_MINIMUM_VERSION: '0.18.4'
input:
pathIgnore:
# Ignore other files in the repository.
- '.vscode/'
- '.github/'
- '*.md'
# Exclude bicepconfig.json
- 'bicepconfig.json'
# ignore all bicep files except the ones that have been created to test modules
- 'modules/**/*.bicep'
- '!modules/**/*.tests.bicep'
rule:
exclude:
- Azure.Storage.UseReplication
include:
module:
- PSRule.Rules.Azure
execution:
aliasReference: Warn
duplicateResourceId: Error
languageMode: FullLanguage
initialSessionState: BuiltIn
invariantCulture: Warn
ruleExcluded: Ignore
ruleInconclusive: Warn
ruleSuppressed: Warn
suppressionGroupExpired: Warn
unprocessedObject: Ignore
output:
as: Detail
banner: Default
culture: [en-GB]
encoding: Default
footer: Default