PSCodeHealthSettings.json

{
    "PerFunctionMetrics": [
        {
            "LinesOfCode": {
                "WarningThreshold": 30,
                "FailThreshold": 60,
                "HigherIsBetter": false
            }
        },
        {
            "ScriptAnalyzerFindings": {
                "WarningThreshold": 7,
                "FailThreshold": 12,
                "HigherIsBetter": false
            }
        },
        {
            "TestCoverage": {
                "WarningThreshold": 80,
                "FailThreshold": 70,
                "HigherIsBetter": true
            }
        },
        {
            "CommandsMissed": {
                "WarningThreshold": 6,
                "FailThreshold": 12,
                "HigherIsBetter": false
            }
        },
        {
            "Complexity": {
                "WarningThreshold": 15,
                "FailThreshold": 30,
                "HigherIsBetter": false
            }
        },
        {
            "MaximumNestingDepth": {
                "WarningThreshold": 4,
                "FailThreshold": 8,
                "HigherIsBetter": false
            }
        }
    ],
    "OverallMetrics": [
        {
            "LinesOfCodeTotal": {
                "WarningThreshold": 1000,
                "FailThreshold": 2000,
                "HigherIsBetter": false
            }
        },
        {
            "LinesOfCodeAverage": {
                "WarningThreshold": 30,
                "FailThreshold": 60,
                "HigherIsBetter": false
            }
        },
        {
            "ScriptAnalyzerFindingsTotal": {
                "WarningThreshold": 30,
                "FailThreshold": 60,
                "HigherIsBetter": false
            }
        },
        {
            "ScriptAnalyzerErrors": {
                "WarningThreshold": 1,
                "FailThreshold": 3,
                "HigherIsBetter": false
            }
        },
        {
            "ScriptAnalyzerWarnings": {
                "WarningThreshold": 10,
                "FailThreshold": 20,
                "HigherIsBetter": false
            }
        },
        {
            "ScriptAnalyzerInformation": {
                "WarningThreshold": 20,
                "FailThreshold": 40,
                "HigherIsBetter": false
            }
        },
        {
            "ScriptAnalyzerFindingsAverage": {
                "WarningThreshold": 7,
                "FailThreshold": 12,
                "HigherIsBetter": false
            }
        },
        {
            "NumberOfFailedTests": {
                "WarningThreshold": 1,
                "FailThreshold": 3,
                "HigherIsBetter": false
            }
        },
        {
            "TestsPassRate": {
                "WarningThreshold": 99,
                "FailThreshold": 97,
                "HigherIsBetter": true
            }
        },
        {
            "TestCoverage": {
                "WarningThreshold": 80,
                "FailThreshold": 70,
                "HigherIsBetter": true
            }
        },
        {
            "CommandsMissedTotal": {
                "WarningThreshold": 200,
                "FailThreshold": 400,
                "HigherIsBetter": false
            }
        },
        {
            "ComplexityAverage": {
                "WarningThreshold": 15,
                "FailThreshold": 30,
                "HigherIsBetter": false
            }
        },
        {
            "NestingDepthAverage": {
                "WarningThreshold": 4,
                "FailThreshold": 8,
                "HigherIsBetter": false
            }
        }
    ]
}