-
Notifications
You must be signed in to change notification settings - Fork 2
/
ConfigKeys.py
46 lines (43 loc) · 1.33 KB
/
ConfigKeys.py
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
# Copyright (C) 2023 tracetronic GmbH
#
# SPDX-License-Identifier: MIT
from dataclasses import dataclass
@dataclass(frozen=True)
class ParameterKeys:
"""
This class supplies all possible config parameter keys used in the CustomChecks as constants.
"""
ALLOWLIST = 'Allowlist'
DENYLIST = 'Denylist'
CHECK = 'Check'
CUSTOM_MESSAGE = 'CustomMessage'
DESCRIPTION = 'Description'
FUNCTION = 'Function'
LOCALVAR = 'LocalVar'
UNDEFINED = 'Undefined'
MINLENGTH = 'MinLength'
NAME = 'Name'
NUMBER_OF_RELEVANT_CHARACTERS = 'NumberOfRelevantCharacters'
ORDER = 'Order'
PARAMETER = 'Parameter'
REGEX_DESCRIPTION = 'RegexDescription'
REGEX_PATTERN = 'RegexPattern'
RETURNVALUE = 'ReturnValue'
SORT_METHOD = 'SortMethod'
TESTCASEFLAG = 'TestCaseFlag'
VERSION = 'Version'
ALLOW_UNDEFINED = 'AllowUndefinedVariables'
SEARCH_DEPTH = 'SearchDepth'
@dataclass(frozen=True)
class ConditionKeys:
"""
This class supplies all possible config condition keys used in the CustomChecks as constants.
"""
PROJECT_NAME = 'ProjectName'
PACKAGE_NAME = 'PackageName'
PROJECT_FOLDER = 'ProjectFolder'
PACKAGE_FOLDER = 'PackageFolder'
PACKAGE_PROPERTIES = 'PackageProperties'
REGEX_PATTERN = 'RegexPattern'
TESTCASEFLAG = 'TestCaseFlag'
ENABLED = 'Enabled'