Skip to content

Commit f177d30

Browse files
hoe-jocastler
authored andcommitted
[rules_score]: update plantuml tooling
- accept ports and resolve to componenets - allow parsing of together
1 parent 411b704 commit f177d30

23 files changed

Lines changed: 694 additions & 13 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
' *******************************************************************************
2+
' Copyright (c) 2026 Contributors to the Eclipse Foundation
3+
'
4+
' See the NOTICE file(s) distributed with this work for additional
5+
' information regarding copyright ownership.
6+
'
7+
' This program and the accompanying materials are made available under the
8+
' terms of the Apache License Version 2.0 which is available at
9+
' https://www.apache.org/licenses/LICENSE-2.0
10+
'
11+
' SPDX-License-Identifier: Apache-2.0
12+
' *******************************************************************************
13+
@startuml
14+
15+
package "SampleSEooC" as SampleSEooC {
16+
component "ComponentA" as ComponentA <<component>> {
17+
}
18+
component "ComponentB" as ComponentB <<component>> {
19+
}
20+
ComponentA -( ComponentB : provides
21+
ComponentA )- ComponentB : requires
22+
}
23+
24+
@enduml
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"arrow_lollipop.puml": {
3+
"SampleSEooC": {
4+
"id": "SampleSEooC",
5+
"name": "SampleSEooC",
6+
"alias": "SampleSEooC",
7+
"parent_id": null,
8+
"comp_type": "Package",
9+
"stereotype": null,
10+
"relations": []
11+
},
12+
"SampleSEooC.ComponentA": {
13+
"id": "SampleSEooC.ComponentA",
14+
"name": "ComponentA",
15+
"alias": "ComponentA",
16+
"parent_id": "SampleSEooC",
17+
"comp_type": "Component",
18+
"stereotype": "component",
19+
"relations": [
20+
{
21+
"target": "SampleSEooC.ComponentB",
22+
"annotation": "provides",
23+
"relation_type": "None"
24+
},
25+
{
26+
"target": "SampleSEooC.ComponentB",
27+
"annotation": "requires",
28+
"relation_type": "None"
29+
}
30+
]
31+
},
32+
"SampleSEooC.ComponentB": {
33+
"id": "SampleSEooC.ComponentB",
34+
"name": "ComponentB",
35+
"alias": "ComponentB",
36+
"parent_id": "SampleSEooC",
37+
"comp_type": "Component",
38+
"stereotype": "component",
39+
"relations": []
40+
}
41+
}
42+
}
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"port_alias.puml": {
3+
"SampleSEooC": {
4+
"id": "SampleSEooC",
5+
"name": "SampleSEooC",
6+
"alias": "SampleSEooC",
7+
"parent_id": null,
8+
"comp_type": "Package",
9+
"stereotype": null,
10+
"relations": []
11+
},
12+
"SampleSEooC.ClientComp": {
13+
"id": "SampleSEooC.ClientComp",
14+
"name": "ClientComp",
15+
"alias": "ClientComp",
16+
"parent_id": "SampleSEooC",
17+
"comp_type": "Component",
18+
"stereotype": "component",
19+
"relations": [
20+
{
21+
"target": "SampleSEooC.ServerComp",
22+
"annotation": "calls",
23+
"relation_type": "None"
24+
}
25+
]
26+
},
27+
"SampleSEooC.ServerComp": {
28+
"id": "SampleSEooC.ServerComp",
29+
"name": "ServerComp",
30+
"alias": "ServerComp",
31+
"parent_id": "SampleSEooC",
32+
"comp_type": "Component",
33+
"stereotype": "component",
34+
"relations": []
35+
}
36+
}
37+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
' *******************************************************************************
2+
' Copyright (c) 2026 Contributors to the Eclipse Foundation
3+
'
4+
' See the NOTICE file(s) distributed with this work for additional
5+
' information regarding copyright ownership.
6+
'
7+
' This program and the accompanying materials are made available under the
8+
' terms of the Apache License Version 2.0 which is available at
9+
' https://www.apache.org/licenses/LICENSE-2.0
10+
'
11+
' SPDX-License-Identifier: Apache-2.0
12+
' *******************************************************************************
13+
@startuml
14+
15+
package "SampleSEooC" as SampleSEooC {
16+
component "ClientComp" as ClientComp <<component>> {
17+
portout out1 as pOut
18+
}
19+
component "ServerComp" as ServerComp <<component>> {
20+
portin in1 as pIn
21+
}
22+
pOut --> pIn : calls
23+
}
24+
25+
@enduml
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"port_basic.puml": {
3+
"SampleSEooC": {
4+
"id": "SampleSEooC",
5+
"name": "SampleSEooC",
6+
"alias": "SampleSEooC",
7+
"parent_id": null,
8+
"comp_type": "Package",
9+
"stereotype": null,
10+
"relations": []
11+
},
12+
"SampleSEooC.ComponentA": {
13+
"id": "SampleSEooC.ComponentA",
14+
"name": "ComponentA",
15+
"alias": "ComponentA",
16+
"parent_id": "SampleSEooC",
17+
"comp_type": "Component",
18+
"stereotype": "component",
19+
"relations": []
20+
}
21+
}
22+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
' *******************************************************************************
2+
' Copyright (c) 2026 Contributors to the Eclipse Foundation
3+
'
4+
' See the NOTICE file(s) distributed with this work for additional
5+
' information regarding copyright ownership.
6+
'
7+
' This program and the accompanying materials are made available under the
8+
' terms of the Apache License Version 2.0 which is available at
9+
' https://www.apache.org/licenses/LICENSE-2.0
10+
'
11+
' SPDX-License-Identifier: Apache-2.0
12+
' *******************************************************************************
13+
@startuml
14+
15+
package "SampleSEooC" as SampleSEooC {
16+
component "ComponentA" as ComponentA <<component>> {
17+
portin portIn1
18+
portout portOut1
19+
port portBoth
20+
}
21+
}
22+
23+
@enduml
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
"port_deep_nesting.puml": {
3+
"Root": {
4+
"id": "Root",
5+
"name": "Root",
6+
"alias": "Root",
7+
"parent_id": null,
8+
"comp_type": "Package",
9+
"stereotype": null,
10+
"relations": []
11+
},
12+
"Root.SampleSEooC": {
13+
"id": "Root.SampleSEooC",
14+
"name": "SampleSEooC",
15+
"alias": "SampleSEooC",
16+
"parent_id": "Root",
17+
"comp_type": "Package",
18+
"stereotype": null,
19+
"relations": []
20+
},
21+
"Root.SampleSEooC.ClientComp": {
22+
"id": "Root.SampleSEooC.ClientComp",
23+
"name": "ClientComp",
24+
"alias": "ClientComp",
25+
"parent_id": "Root.SampleSEooC",
26+
"comp_type": "Component",
27+
"stereotype": "component",
28+
"relations": [
29+
{
30+
"target": "Root.SampleSEooC.ServerComp",
31+
"annotation": "calls",
32+
"relation_type": "None"
33+
}
34+
]
35+
},
36+
"Root.SampleSEooC.ServerComp": {
37+
"id": "Root.SampleSEooC.ServerComp",
38+
"name": "ServerComp",
39+
"alias": "ServerComp",
40+
"parent_id": "Root.SampleSEooC",
41+
"comp_type": "Component",
42+
"stereotype": "component",
43+
"relations": []
44+
}
45+
}
46+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
' *******************************************************************************
2+
' Copyright (c) 2026 Contributors to the Eclipse Foundation
3+
'
4+
' See the NOTICE file(s) distributed with this work for additional
5+
' information regarding copyright ownership.
6+
'
7+
' This program and the accompanying materials are made available under the
8+
' terms of the Apache License Version 2.0 which is available at
9+
' https://www.apache.org/licenses/LICENSE-2.0
10+
'
11+
' SPDX-License-Identifier: Apache-2.0
12+
' *******************************************************************************
13+
@startuml
14+
15+
package "Root" as Root {
16+
package "SampleSEooC" as SampleSEooC {
17+
component "ClientComp" as ClientComp <<component>> {
18+
portout out1
19+
}
20+
component "ServerComp" as ServerComp <<component>> {
21+
portin in1
22+
}
23+
ClientComp --> in1 : calls
24+
}
25+
}
26+
27+
@enduml
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"port_relation_lifting.puml": {
3+
"SampleSEooC": {
4+
"id": "SampleSEooC",
5+
"name": "SampleSEooC",
6+
"alias": "SampleSEooC",
7+
"parent_id": null,
8+
"comp_type": "Package",
9+
"stereotype": null,
10+
"relations": []
11+
},
12+
"SampleSEooC.ClientComp": {
13+
"id": "SampleSEooC.ClientComp",
14+
"name": "ClientComp",
15+
"alias": "ClientComp",
16+
"parent_id": "SampleSEooC",
17+
"comp_type": "Component",
18+
"stereotype": "component",
19+
"relations": [
20+
{
21+
"target": "SampleSEooC.ServerComp",
22+
"annotation": "calls",
23+
"relation_type": "None"
24+
}
25+
]
26+
},
27+
"SampleSEooC.ServerComp": {
28+
"id": "SampleSEooC.ServerComp",
29+
"name": "ServerComp",
30+
"alias": "ServerComp",
31+
"parent_id": "SampleSEooC",
32+
"comp_type": "Component",
33+
"stereotype": "component",
34+
"relations": []
35+
}
36+
}
37+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
' *******************************************************************************
2+
' Copyright (c) 2026 Contributors to the Eclipse Foundation
3+
'
4+
' See the NOTICE file(s) distributed with this work for additional
5+
' information regarding copyright ownership.
6+
'
7+
' This program and the accompanying materials are made available under the
8+
' terms of the Apache License Version 2.0 which is available at
9+
' https://www.apache.org/licenses/LICENSE-2.0
10+
'
11+
' SPDX-License-Identifier: Apache-2.0
12+
' *******************************************************************************
13+
@startuml
14+
15+
package "SampleSEooC" as SampleSEooC {
16+
component "ClientComp" as ClientComp <<component>> {
17+
portout out1
18+
}
19+
component "ServerComp" as ServerComp <<component>> {
20+
portin in1
21+
}
22+
ClientComp --> in1 : calls
23+
}
24+
25+
@enduml

0 commit comments

Comments
 (0)