gitweb on Svarog
projekti pod git sistemom za održavanje verzija -- projects under the git version control system
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 42de096)
raw | patch | inline | side by side (parent: 42de096)
author | Doni Pracner <quinnuendo@gmail.com> | |
Tue, 19 Sep 2017 18:52:10 +0000 (20:52 +0200) | ||
committer | Doni Pracner <quinnuendo@gmail.com> | |
Tue, 19 Sep 2017 18:52:10 +0000 (20:52 +0200) |
changed the script so that all the generated columns in
a metrics comparison have different names. they will
all have an adequate prefix - either P1, P2, DIFF or %.
a metrics comparison have different names. they will
all have an adequate prefix - either P1, P2, DIFF or %.
src-wsl/metrics.wsl | patch | blob | history |
diff --git a/src-wsl/metrics.wsl b/src-wsl/metrics.wsl
index 8dff9dba81793749185d99dd1d0ef9c53f8c7a64..d5638474a05b127cafec5d7f584be28c4bbda00c 100644 (file)
--- a/src-wsl/metrics.wsl
+++ b/src-wsl/metrics.wsl
OD
END;
-MW_PROC @Write_Metrics_List() ==
- @WS("McCabe Cyclo");@WS(Field_Separator);
- @WS("McCabe Essential");@WS(Field_Separator);
- @WS("Statements");@WS(Field_Separator);
- @WS("Expressions");@WS(Field_Separator);
- @WS("CFDF");@WS(Field_Separator);
- @WS("Size");@WS(Field_Separator);
- @WS("Structure")
+MW_PROC @Write_Metrics_List(prefix VAR) ==
+ @WS(prefix);@WS("McCabe Cyclo");@WS(Field_Separator);
+ @WS(prefix);@WS("McCabe Essential");@WS(Field_Separator);
+ @WS(prefix);@WS("Statements");@WS(Field_Separator);
+ @WS(prefix);@WS("Expressions");@WS(Field_Separator);
+ @WS(prefix);@WS("CFDF");@WS(Field_Separator);
+ @WS(prefix);@WS("Size");@WS(Field_Separator);
+ @WS(prefix);@WS("Structure")
END;
MW_PROC @Metrics_Main() ==
SKIP
ELSIF filename = "-H" OR filename = "--header" THEN
@WS("filename");@WS(Field_Separator);
- @Write_Metrics_List();
+ @Write_Metrics_List("");
@WL("");
ELSIF filename = "-HC" THEN
C:"Header for comparison";
@WS("filename");@WS(Field_Separator);
- @Write_Metrics_List();@WS(Field_Separator);
- @WS("P2 ");
- @Write_Metrics_List();@WS(Field_Separator);
- @WS("DIF ");
- @Write_Metrics_List();@WS(Field_Separator);
- @WS("% ");
- @Write_Metrics_List();
+ @Write_Metrics_List("P1-");@WS(Field_Separator);
+ @Write_Metrics_List("P2-");@WS(Field_Separator);
+ @Write_Metrics_List("DIFF-");@WS(Field_Separator);
+ @Write_Metrics_List("%-");
@WL("");
ELSIF filename = "-o" THEN
C:"set output";