Skip to content

Commit 7d030f7

Browse files
committed
Prettified ProjectLength counter method
1 parent db05702 commit 7d030f7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

MDX2JSON/Tests.cls.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,18 @@ do ##class(MDX2JSON.Tests).ProjectLength()</Description>
1515
<ReturnType>%String</ReturnType>
1616
<Implementation><![CDATA[
1717
Set rset = ##class(%ResultSet).%New("%DynamicQuery:SQL")
18-
Do rset.Prepare("SELECT Name FROM %Dictionary.ClassDefinition WHERE Name [ '"_Mask_"'")
18+
Do rset.Prepare("SELECT Name FROM %Dictionary.ClassDefinition WHERE NOT Name %STARTSWITH '%sqlcq' AND Name [ '"_Mask_"'")
1919
Do rset.Execute()
20-
Set count=0
20+
Set count = 0
2121
2222
While (rset.Next()) {
2323
Set class = rset.Data("Name")
24-
Do ##class(%Compiler.UDL.TextServices).GetTextAsArray($Namespace,class,.raw)
25-
Set lines = $O(raw($C(0)),-1)
26-
W class , " " , lines,!
24+
Do ##class(%Compiler.UDL.TextServices).GetTextAsArray($Namespace, class, .raw)
25+
Set lines = $O(raw($C(0)), -1)
26+
Write class, $JUSTIFY("",30-$L(class)), $J(lines,5), !
2727
Set count = count + lines
2828
}
29-
W "Total ",count
29+
Write "Total ", $JUSTIFY("",24), $J(count,5)
3030
]]></Implementation>
3131
</Method>
3232

0 commit comments

Comments
 (0)