Skip to content

Commit dfeba61

Browse files
committed
refactor: simplify string concatenation in CoreUtils and add architecture diagram
1 parent 2a0fe66 commit dfeba61

2 files changed

Lines changed: 142 additions & 1 deletion

File tree

CodeLineCounter/Utils/CoreUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ public static string GetExportFileNameWithExtension(string filePath, ExportForma
164164
}
165165
else
166166
{
167-
fileName = fileName + newExtension;
167+
fileName += newExtension;
168168
}
169169
}
170170
else

assets/archi.drawio

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
<mxfile host="Electron" agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/26.0.9 Chrome/128.0.6613.186 Electron/32.2.5 Safari/537.36" version="26.0.9">
2+
<diagram name="Page-1" id="Di_wswiE_DfTQekGuGSe">
3+
<mxGraphModel dx="1418" dy="820" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="827" math="0" shadow="0">
4+
<root>
5+
<mxCell id="0" />
6+
<mxCell id="1" parent="0" />
7+
<mxCell id="Kdr1_eZEDmylv_fYRMB--1" value="CodeLineCounter.Utils" style="whiteSpace=wrap;strokeWidth=2;verticalAlign=bottom;fontStyle=1;fillColor=#ffe6cc;strokeColor=#d79b00;" vertex="1" parent="1">
8+
<mxGeometry x="352" y="328" width="829" height="104" as="geometry" />
9+
</mxCell>
10+
<mxCell id="Kdr1_eZEDmylv_fYRMB--2" value="CodeLineCounter.Services" style="whiteSpace=wrap;strokeWidth=2;verticalAlign=bottom;fontStyle=1;fillColor=#fff2cc;strokeColor=#d6b656;" vertex="1" parent="1">
11+
<mxGeometry x="152" y="174" width="938" height="104" as="geometry" />
12+
</mxCell>
13+
<mxCell id="Kdr1_eZEDmylv_fYRMB--3" value="CodeLineCounter.Models" style="whiteSpace=wrap;strokeWidth=2;verticalAlign=bottom;fontStyle=1;fillColor=#d5e8d4;strokeColor=#82b366;" vertex="1" parent="1">
14+
<mxGeometry x="81" y="482" width="1305" height="104" as="geometry" />
15+
</mxCell>
16+
<mxCell id="Kdr1_eZEDmylv_fYRMB--4" value="CodeLineCounter.Tests" style="whiteSpace=wrap;strokeWidth=2;verticalAlign=bottom;fontStyle=1;fillColor=#f5f5f5;strokeColor=#666666;fontColor=#333333;" vertex="1" parent="1">
17+
<mxGeometry x="20" y="20" width="1299" height="104" as="geometry" />
18+
</mxCell>
19+
<mxCell id="Kdr1_eZEDmylv_fYRMB--5" value="CodeMetricsAnalyzerTests" style="whiteSpace=wrap;strokeWidth=2;" vertex="1" parent="1">
20+
<mxGeometry x="828" y="45" width="244" height="54" as="geometry" />
21+
</mxCell>
22+
<mxCell id="Kdr1_eZEDmylv_fYRMB--6" value="DependencyAnalyzerTests" style="whiteSpace=wrap;strokeWidth=2;" vertex="1" parent="1">
23+
<mxGeometry x="482" y="45" width="244" height="54" as="geometry" />
24+
</mxCell>
25+
<mxCell id="Kdr1_eZEDmylv_fYRMB--7" value="CoreUtilsTests" style="whiteSpace=wrap;strokeWidth=2;" vertex="1" parent="1">
26+
<mxGeometry x="1123" y="45" width="161" height="54" as="geometry" />
27+
</mxCell>
28+
<mxCell id="Kdr1_eZEDmylv_fYRMB--8" value="FileUtilsTests" style="whiteSpace=wrap;strokeWidth=2;" vertex="1" parent="1">
29+
<mxGeometry x="55" y="45" width="154" height="54" as="geometry" />
30+
</mxCell>
31+
<mxCell id="Kdr1_eZEDmylv_fYRMB--9" value="DependencyRelation" style="whiteSpace=wrap;strokeWidth=2;" vertex="1" parent="1">
32+
<mxGeometry x="116" y="507" width="206" height="54" as="geometry" />
33+
</mxCell>
34+
<mxCell id="Kdr1_eZEDmylv_fYRMB--10" value="AnalysisResult" style="whiteSpace=wrap;strokeWidth=2;" vertex="1" parent="1">
35+
<mxGeometry x="748" y="507" width="160" height="54" as="geometry" />
36+
</mxCell>
37+
<mxCell id="Kdr1_eZEDmylv_fYRMB--11" value="CodeMetricsResult" style="whiteSpace=wrap;strokeWidth=2;" vertex="1" parent="1">
38+
<mxGeometry x="1159" y="507" width="191" height="54" as="geometry" />
39+
</mxCell>
40+
<mxCell id="Kdr1_eZEDmylv_fYRMB--12" value="CodeMetricsAnalyzer" style="whiteSpace=wrap;strokeWidth=2;" vertex="1" parent="1">
41+
<mxGeometry x="846" y="199" width="209" height="54" as="geometry" />
42+
</mxCell>
43+
<mxCell id="Kdr1_eZEDmylv_fYRMB--13" value="DependencyAnalyzer" style="whiteSpace=wrap;strokeWidth=2;" vertex="1" parent="1">
44+
<mxGeometry x="500" y="199" width="209" height="54" as="geometry" />
45+
</mxCell>
46+
<mxCell id="Kdr1_eZEDmylv_fYRMB--14" value="DependencyGraphGenerator" style="whiteSpace=wrap;strokeWidth=2;" vertex="1" parent="1">
47+
<mxGeometry x="187" y="199" width="263" height="54" as="geometry" />
48+
</mxCell>
49+
<mxCell id="Kdr1_eZEDmylv_fYRMB--15" value="CoreUtils" style="whiteSpace=wrap;strokeWidth=2;" vertex="1" parent="1">
50+
<mxGeometry x="1020" y="353" width="126" height="54" as="geometry" />
51+
</mxCell>
52+
<mxCell id="Kdr1_eZEDmylv_fYRMB--16" value="FileUtils" style="whiteSpace=wrap;strokeWidth=2;" vertex="1" parent="1">
53+
<mxGeometry x="508" y="353" width="119" height="54" as="geometry" />
54+
</mxCell>
55+
<mxCell id="Kdr1_eZEDmylv_fYRMB--17" value="" style="curved=1;startArrow=none;endArrow=block;exitX=0.65;exitY=1;entryX=0.5;entryY=0;rounded=0;" edge="1" parent="1" source="Kdr1_eZEDmylv_fYRMB--12" target="Kdr1_eZEDmylv_fYRMB--11">
56+
<mxGeometry relative="1" as="geometry">
57+
<Array as="points">
58+
<mxPoint x="1010" y="278" />
59+
<mxPoint x="1255" y="303" />
60+
</Array>
61+
</mxGeometry>
62+
</mxCell>
63+
<mxCell id="Kdr1_eZEDmylv_fYRMB--18" value="" style="curved=1;startArrow=none;endArrow=block;exitX=0.03;exitY=1;entryX=1;entryY=0.2;rounded=0;" edge="1" parent="1" source="Kdr1_eZEDmylv_fYRMB--12" target="Kdr1_eZEDmylv_fYRMB--16">
64+
<mxGeometry relative="1" as="geometry">
65+
<Array as="points">
66+
<mxPoint x="762" y="278" />
67+
<mxPoint x="762" y="328" />
68+
</Array>
69+
</mxGeometry>
70+
</mxCell>
71+
<mxCell id="Kdr1_eZEDmylv_fYRMB--19" value="" style="curved=1;startArrow=none;endArrow=block;exitX=0.17;exitY=1;entryX=0.65;entryY=0;rounded=0;" edge="1" parent="1" source="Kdr1_eZEDmylv_fYRMB--13" target="Kdr1_eZEDmylv_fYRMB--9">
72+
<mxGeometry relative="1" as="geometry">
73+
<Array as="points">
74+
<mxPoint x="472" y="278" />
75+
<mxPoint x="278" y="303" />
76+
<mxPoint x="278" y="482" />
77+
</Array>
78+
</mxGeometry>
79+
</mxCell>
80+
<mxCell id="Kdr1_eZEDmylv_fYRMB--20" value="" style="curved=1;startArrow=none;endArrow=block;exitX=0.84;exitY=1;entryX=1;entryY=0.17;rounded=0;" edge="1" parent="1" source="Kdr1_eZEDmylv_fYRMB--13" target="Kdr1_eZEDmylv_fYRMB--16">
81+
<mxGeometry relative="1" as="geometry">
82+
<Array as="points">
83+
<mxPoint x="742" y="278" />
84+
<mxPoint x="742" y="328" />
85+
</Array>
86+
</mxGeometry>
87+
</mxCell>
88+
<mxCell id="Kdr1_eZEDmylv_fYRMB--21" value="" style="curved=1;startArrow=none;endArrow=block;exitX=0.5;exitY=1;entryX=0.37;entryY=0;rounded=0;" edge="1" parent="1" source="Kdr1_eZEDmylv_fYRMB--14" target="Kdr1_eZEDmylv_fYRMB--9">
89+
<mxGeometry relative="1" as="geometry">
90+
<Array as="points">
91+
<mxPoint x="319" y="278" />
92+
<mxPoint x="170" y="303" />
93+
<mxPoint x="170" y="482" />
94+
</Array>
95+
</mxGeometry>
96+
</mxCell>
97+
<mxCell id="Kdr1_eZEDmylv_fYRMB--22" value="" style="curved=1;startArrow=none;endArrow=block;exitX=0.5;exitY=1;entryX=0.5;entryY=0;rounded=0;" edge="1" parent="1" source="Kdr1_eZEDmylv_fYRMB--5" target="Kdr1_eZEDmylv_fYRMB--12">
98+
<mxGeometry relative="1" as="geometry">
99+
<Array as="points" />
100+
</mxGeometry>
101+
</mxCell>
102+
<mxCell id="Kdr1_eZEDmylv_fYRMB--23" value="" style="curved=1;startArrow=none;endArrow=block;exitX=0.5;exitY=1;entryX=0.5;entryY=0;rounded=0;" edge="1" parent="1" source="Kdr1_eZEDmylv_fYRMB--6" target="Kdr1_eZEDmylv_fYRMB--13">
103+
<mxGeometry relative="1" as="geometry">
104+
<Array as="points" />
105+
</mxGeometry>
106+
</mxCell>
107+
<mxCell id="Kdr1_eZEDmylv_fYRMB--24" value="" style="curved=1;startArrow=none;endArrow=block;exitX=0.5;exitY=1;entryX=0.5;entryY=0;rounded=0;" edge="1" parent="1" source="Kdr1_eZEDmylv_fYRMB--7" target="Kdr1_eZEDmylv_fYRMB--15">
108+
<mxGeometry relative="1" as="geometry">
109+
<Array as="points">
110+
<mxPoint x="1203" y="278" />
111+
<mxPoint x="1083" y="303" />
112+
</Array>
113+
</mxGeometry>
114+
</mxCell>
115+
<mxCell id="Kdr1_eZEDmylv_fYRMB--25" value="" style="curved=1;startArrow=none;endArrow=block;exitX=0.5;exitY=1;entryX=0;entryY=0.11;rounded=0;" edge="1" parent="1" source="Kdr1_eZEDmylv_fYRMB--8" target="Kdr1_eZEDmylv_fYRMB--16">
116+
<mxGeometry relative="1" as="geometry">
117+
<Array as="points">
118+
<mxPoint x="132" y="278" />
119+
<mxPoint x="419" y="303" />
120+
<mxPoint x="419" y="328" />
121+
</Array>
122+
</mxGeometry>
123+
</mxCell>
124+
<mxCell id="Kdr1_eZEDmylv_fYRMB--26" value="" style="curved=1;startArrow=none;endArrow=block;exitX=0.5;exitY=1;entryX=1;entryY=0.2;rounded=0;" edge="1" parent="1" source="Kdr1_eZEDmylv_fYRMB--15" target="Kdr1_eZEDmylv_fYRMB--10">
125+
<mxGeometry relative="1" as="geometry">
126+
<Array as="points">
127+
<mxPoint x="1083" y="482" />
128+
</Array>
129+
</mxGeometry>
130+
</mxCell>
131+
<mxCell id="Kdr1_eZEDmylv_fYRMB--27" value="" style="curved=1;startArrow=none;endArrow=block;exitX=0.5;exitY=1;entryX=0;entryY=0.2;rounded=0;" edge="1" parent="1" source="Kdr1_eZEDmylv_fYRMB--16" target="Kdr1_eZEDmylv_fYRMB--10">
132+
<mxGeometry relative="1" as="geometry">
133+
<Array as="points">
134+
<mxPoint x="568" y="482" />
135+
</Array>
136+
</mxGeometry>
137+
</mxCell>
138+
</root>
139+
</mxGraphModel>
140+
</diagram>
141+
</mxfile>

0 commit comments

Comments
 (0)