-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstrictdoc_config.py
More file actions
48 lines (44 loc) · 1.48 KB
/
strictdoc_config.py
File metadata and controls
48 lines (44 loc) · 1.48 KB
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
import os
import sys
from strictdoc.core.project_config import ProjectConfig, SourceNodesEntry
sys.path.append(os.path.join(os.path.dirname(__file__), "tools/requirements"))
from validation_plugin import LinuxValidationPlugin
def create_config() -> ProjectConfig:
config = ProjectConfig(
project_title="Linux",
project_features=[
"DIFF",
"REQUIREMENT_TO_SOURCE_TRACEABILITY",
"SOURCE_FILE_LANGUAGE_PARSERS",
"TRACEABILITY_SCREEN",
"DEEP_TRACEABILITY_SCREEN",
],
include_doc_paths = ["Documentation/requirements/**"],
source_nodes=[
SourceNodesEntry(
path="drivers/",
uid="DOC-SUBSYS-CHARMISC",
node_type="REQUIREMENT",
sdoc_to_source_map={
"MID": "SPDX-Req-ID",
"STATEMENT": "SPDX-Req-Text",
}
),
SourceNodesEntry(
path="kernel/trace/",
uid="DOC-SUBSYS-TRACING",
node_type="REQUIREMENT",
sdoc_to_source_map={
"MID": "SPDX-Req-ID",
"STATEMENT": "SPDX-Req-Text",
}
),
],
include_source_paths = [
"drivers/char/mem.c",
"kernel/trace/trace_events.c",
"tools/testing/selftests/devmem/*.c",
],
user_plugin=LinuxValidationPlugin(),
)
return config