From 5457d78d655822d36552fab9230afeb3624a3764 Mon Sep 17 00:00:00 2001 From: Jonas Franz Date: Sat, 19 Feb 2022 14:39:17 +0000 Subject: [PATCH] Update metrics --- results/inheritedwidget/benchmarks.txt | 4 + results/inheritedwidget/metrics.tex | 115 +++++++++++++++++++++++++ 2 files changed, 119 insertions(+) create mode 100644 results/inheritedwidget/benchmarks.txt create mode 100644 results/inheritedwidget/metrics.tex diff --git a/results/inheritedwidget/benchmarks.txt b/results/inheritedwidget/benchmarks.txt new file mode 100644 index 0000000..891ebca --- /dev/null +++ b/results/inheritedwidget/benchmarks.txt @@ -0,0 +1,4 @@ +00:00 +0: /app/test/efficiency_bechmark_test.dart: Efficiency Test +cartButton: 8 +userSwitch: 4 +00:01 +1: All tests passed! diff --git a/results/inheritedwidget/metrics.tex b/results/inheritedwidget/metrics.tex new file mode 100644 index 0000000..2d57be7 --- /dev/null +++ b/results/inheritedwidget/metrics.tex @@ -0,0 +1,115 @@ +% Options for packages loaded elsewhere +\PassOptionsToPackage{unicode}{hyperref} +\PassOptionsToPackage{hyphens}{url} +% +\documentclass[ +]{article} +\usepackage{amsmath,amssymb} +\usepackage{lmodern} +\usepackage{iftex} +\ifPDFTeX + \usepackage[T1]{fontenc} + \usepackage[utf8]{inputenc} + \usepackage{textcomp} % provide euro and other symbols +\else % if luatex or xetex + \usepackage{unicode-math} + \defaultfontfeatures{Scale=MatchLowercase} + \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1} +\fi +% Use upquote if available, for straight quotes in verbatim environments +\IfFileExists{upquote.sty}{\usepackage{upquote}}{} +\IfFileExists{microtype.sty}{% use microtype if available + \usepackage[]{microtype} + \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts +}{} +\makeatletter +\@ifundefined{KOMAClassName}{% if non-KOMA class + \IfFileExists{parskip.sty}{% + \usepackage{parskip} + }{% else + \setlength{\parindent}{0pt} + \setlength{\parskip}{6pt plus 2pt minus 1pt}} +}{% if KOMA class + \KOMAoptions{parskip=half}} +\makeatother +\usepackage{xcolor} +\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available +\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}} +\hypersetup{ + pdftitle={Metrics report}, + pdflang={en}, + hidelinks, + pdfcreator={LaTeX via pandoc}} +\urlstyle{same} % disable monospaced font for URLs +\usepackage{longtable,booktabs,array} +\usepackage{calc} % for calculating minipage widths +% Correct order of tables after \paragraph or \subparagraph +\usepackage{etoolbox} +\makeatletter +\patchcmd\longtable{\par}{\if@noskipsec\mbox{}\fi\par}{}{} +\makeatother +% Allow footnotes in longtable head/foot +\IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}} +\makesavenoteenv{longtable} +\setlength{\emergencystretch}{3em} % prevent overfull lines +\providecommand{\tightlist}{% + \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} +\setcounter{secnumdepth}{-\maxdimen} % remove section numbering +\ifLuaTeX +\usepackage[bidi=basic]{babel} +\else +\usepackage[bidi=default]{babel} +\fi +\babelprovide[main,import]{english} +% get rid of language-specific shorthands (see #6817): +\let\LanguageShortHands\languageshorthands +\def\languageshorthands#1{} +\ifLuaTeX + \usepackage{selnolig} % disable illegal ligatures +\fi + +\title{Metrics report} +\author{} +\date{} + +\begin{document} +\maketitle + +\hypertarget{all-files}{% +\section{All files}\label{all-files}} + +\begin{longtable}[]{@{}lllllll@{}} +\toprule +Directory & Cyclomatic complexity & Source lines of code & +Maintainability index & Number of Arguments & Maximum Nesting & +Technical Debt \\ +\midrule +\endhead +\href{lib/index.html}{lib} & 5 & 28 & 68 & 1 & 1 & 0.0 \\ +\href{lib/models/index.html}{lib/models} & 16 & 12 & 97 & 0 & 1 & 0.0 \\ +\href{lib/screens/cart/index.html}{lib/screens/cart} & 7 & 45 & 80 & 1 & +1 & 0.0 \\ +\href{lib/screens/product_list/index.html}{lib/screens/product\_list} & +15 & 54 & 83 & 1 & 1 & 0.0 \\ +\href{lib/service/index.html}{lib/service} & 2 & 8 & 83 & 0 & 1 & 0.0 \\ +\href{lib/stores/index.html}{lib/stores} & 35 & 100 & 85 & 1 & 1 & +0.0 \\ +\href{lib/utils/index.html}{lib/utils} & 1 & 2 & 84 & 1 & 0 & 0.0 \\ +\href{lib/widgets/index.html}{lib/widgets} & 7 & 28 & 83 & 1 & 1 & +0.0 \\ +\bottomrule +\end{longtable} + +{Cyclomatic complexity : }{88} + +{Source lines of code : }{277} + +{Maintainability index : }{83} + +{Number of Arguments : }{1} + +{Maximum Nesting : }{1} + +{Technical Debt : }{0} + +\end{document}