Welcome to mirror list, hosted at ThFree Co, Russian Federation.

settings.psd1 « pslint « sanity « controller « _util « ansible_test « lib « test - github.com/ansible/ansible.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 41be367404baf0bc35a8bd7a803e8005672a3321 (plain)
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
@{
    Rules        = @{
        PSAvoidLongLines                   = @{
            Enable            = $true
            MaximumLineLength = 160
        }
        PSAvoidSemicolonsAsLineTerminators = @{
            Enable = $true
        }
        PSPlaceOpenBrace                   = @{
            Enable             = $true
            OnSameLine         = $true
            IgnoreOneLineBlock = $true
            NewLineAfter       = $true
        }
        PSPlaceCloseBrace                  = @{
            Enable             = $true
            IgnoreOneLineBlock = $true
            NewLineAfter       = $true
            NoEmptyLineBefore  = $false
        }
        PSUseConsistentIndentation         = @{
            Enable              = $true
            IndentationSize     = 4
            PipelineIndentation = 'IncreaseIndentationForFirstPipeline'
            Kind                = 'space'
        }
        PSUseConsistentWhitespace          = @{
            Enable                                  = $true
            CheckInnerBrace                         = $true
            CheckOpenBrace                          = $true
            CheckOpenParen                          = $true
            CheckOperator                           = $true
            CheckPipe                               = $true
            CheckPipeForRedundantWhitespace         = $false
            CheckSeparator                          = $true
            CheckParameter                          = $false
            IgnoreAssignmentOperatorInsideHashTable = $false
        }
    }
    ExcludeRules = @(
        'PSUseOutputTypeCorrectly',
        'PSUseShouldProcessForStateChangingFunctions',
        # We send strings as plaintext so will always come across the 3 issues
        'PSAvoidUsingPlainTextForPassword',
        'PSAvoidUsingConvertToSecureStringWithPlainText',
        'PSAvoidUsingUserNameAndPassWordParams',
        # We send the module as a base64 encoded string and a BOM will cause
        # issues here
        'PSUseBOMForUnicodeEncodedFile',
        # Too many false positives, there are many cases where shared utils
        # invoke user defined code but not all parameters are used.
        'PSReviewUnusedParameter'
    )
}