-
Notifications
You must be signed in to change notification settings - Fork 6
/
treeformats.yml
189 lines (189 loc) · 4.48 KB
/
treeformats.yml
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
formats:
- format: java
description: "Base definitions for Java group and artifact identifiers."
identifier: "[\\w]"
types:
"" : "maven"
- format: maven
parent: java
description: "Default Maven Java tree output"
tool: "mvn dependency:tree"
cleanup: "^\\[INFO]\\s"
skip: ":test$"
namespace:
regex: "^([^:]*):([^:]*):([^:]*):([^:]*)"
group: 1
name:
regex: "^([^:]*):([^:]*):([^:]*):([^:]*)"
group: 2
version:
regex: "^([^:]*):([^:]*):([^:]*):([^:]*)"
group: 4
start: "^\\[INFO]\\s-+\\smaven-dependency-plugin"
end: "^\\[INFO]\\s-+$"
- format: gradle
parent: java
description: "Default Gradle Java tree output"
tool: "gradlew -q dependencies --configuration runtimeClasspath"
namespace:
regex: "^([^:]*):([^:]*):"
group: 1
name:
regex: "^([^:]*):([^:]*):"
group: 2
version:
regex: "[:\\s]([^:\\s]+)\\s*(\\(.+\\))?$"
group: 1
start: "^runtimeClasspath" # Only runtime dependencies
end: "^\\s*$" # Empty line
- format: npm
description: "Default NPM tree output"
tool: "npm list --all --production"
identifier: "[@\\w]"
types:
"": "npm"
namespace:
regex: "^(\\S+)/"
group: 1
name:
regex: "^(\\S+/)?(.+)@[^@]+$"
group: 2
version:
regex: "@([^@\\s]+)(\\s\\S+)?$"
group: 1
- format: nuget
description: "Tree output for NuGet based on tooling found in https://github.com/Brend-Smits/NugetTree"
tool: "dotnet src/NugetTree/bin/Debug/netcoreapp3.1/NugetTree.dll \"NugetTree.sln\" -t"
types:
"": "nuget"
name:
regex: "(^\\S+)"
version:
regex: "\\s(\\S+)"
- format: rust
description: "Default Rust (=Cargo) tree output"
tool: "cargo tree -e no-dev,no-build --locked"
types:
"" : "cargo"
identifier: "[-\\[\\w]"
skip: "^\\[.+]$"
internal: "\\([^*]+\\)"
name:
regex: "^([-\\w]+)\\s"
group: 1
version:
regex: "^\\S+\\sv(\\S+)(\\s.+)?$"
group: 1
- format: python
description: "Base definitions for Python group and artifact identifiers."
identifier: "[\\w]"
types:
"" : "pypi"
- format: pip
parent: python
description: "Non-hierarchical Python pip freeze format."
tool: "pip freeze"
name:
regex: "^([^=]+)="
group: 1
version:
regex: "=([^=]+)$"
group: 1
- format: pipenv
parent: python
description: "Default Python pipenv tree output"
tool: "pipenv graph --bare"
skip: ":test$"
name:
regex: "^(.+?)[=\\s]"
group: 1
version:
regex: "(\\S==|installed:\\s)([^\\]]+)\\]?$"
group: 2
- format: purl
description: "Tree output of SPDX-Builder itself."
tool: "SPDX-Builder <mode> --tree"
type:
regex: "^pkg:([^/]+)/"
group: 1
namespace:
regex: "^pkg:([^/]+)/([^/@]+)/.+@"
group: 2
replace:
"%21": "!"
"%23": "#"
"%24": "$"
"%25": "%"
"%26": "&"
"%27": "'"
"%28": "{"
"%29": "}"
"%2[Aa]": "*"
"%2[Bb]": "+"
"%2[Cc]": ","
"%2[Ff]": "/"
"%3[Aa]": ":"
"%3[Bb]": ";"
"%3[Dd]": "="
"%3[Ff]": "?"
"%40": "@"
"%5[Bb]": "["
"%5[Dd]": "]"
name:
regex: "/([^/]+)@"
group: 1
replace:
"%21": "!"
"%23": "#"
"%24": "$"
"%25": "%"
"%26": "&"
"%27": "'"
"%28": "{"
"%29": "}"
"%2[Aa]": "*"
"%2[Bb]": "+"
"%2[Cc]": ","
"%2[Ff]": "/"
"%3[Aa]": ":"
"%3[Bb]": ";"
"%3[Dd]": "="
"%3[Ff]": "?"
"%40": "@"
"%5[Bb]": "["
"%5[Dd]": "]"
version:
regex: "@(\\S+)($|\\s)"
group: 1
replace:
"%21": "!"
"%23": "#"
"%24": "$"
"%25": "%"
"%26": "&"
"%27": "'"
"%28": "{"
"%29": "}"
"%2[Aa]": "*"
"%2[Bb]": "+"
"%2[Cc]": ","
"%2[Ff]": "/"
"%3[Aa]": ":"
"%3[Bb]": ";"
"%3[Dd]": "="
"%3[Ff]": "?"
"%40": "@"
"%5[Bb]": "["
"%5[Dd]": "]"
relationship:
regex: "\\s\\[(.+)]"
group: 1
relationships:
"": DEPENDS_ON
"dynamic": DYNAMICALLY_LINKS
"static": STATICALLY_LINKS
"derived": DESCENDANT_OF
"contained": CONTAINS
"dev": DEVELOPED_USING
start: "^TREE start"
end: "^TREE end"