| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'> |
| 5 |
<title>Diff Quality</title> |
| 6 |
<style> |
| 7 |
.src-snippet { margin-top: 2em; } |
| 8 |
.src-name { font-weight: bold; } |
| 9 |
.snippets { |
| 10 |
border-top: 1px solid #bdbdbd; |
| 11 |
border-bottom: 1px solid #bdbdbd; |
| 12 |
} |
| 13 |
.hll { background-color: #ffcccc } |
| 14 |
.c { color: #408080; font-style: italic } /* Comment */ |
| 15 |
.err { border: 1px solid #FF0000 } /* Error */ |
| 16 |
.k { color: #008000; font-weight: bold } /* Keyword */ |
| 17 |
.o { color: #666666 } /* Operator */ |
| 18 |
.cm { color: #408080; font-style: italic } /* Comment.Multiline */ |
| 19 |
.cp { color: #BC7A00 } /* Comment.Preproc */ |
| 20 |
.c1 { color: #408080; font-style: italic } /* Comment.Single */ |
| 21 |
.cs { color: #408080; font-style: italic } /* Comment.Special */ |
| 22 |
.gd { color: #A00000 } /* Generic.Deleted */ |
| 23 |
.ge { font-style: italic } /* Generic.Emph */ |
| 24 |
.gr { color: #FF0000 } /* Generic.Error */ |
| 25 |
.gh { color: #000080; font-weight: bold } /* Generic.Heading */ |
| 26 |
.gi { color: #00A000 } /* Generic.Inserted */ |
| 27 |
.go { color: #888888 } /* Generic.Output */ |
| 28 |
.gp { color: #000080; font-weight: bold } /* Generic.Prompt */ |
| 29 |
.gs { font-weight: bold } /* Generic.Strong */ |
| 30 |
.gu { color: #800080; font-weight: bold } /* Generic.Subheading */ |
| 31 |
.gt { color: #0044DD } /* Generic.Traceback */ |
| 32 |
.kc { color: #008000; font-weight: bold } /* Keyword.Constant */ |
| 33 |
.kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ |
| 34 |
.kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ |
| 35 |
.kp { color: #008000 } /* Keyword.Pseudo */ |
| 36 |
.kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ |
| 37 |
.kt { color: #B00040 } /* Keyword.Type */ |
| 38 |
.m { color: #666666 } /* Literal.Number */ |
| 39 |
.s { color: #BA2121 } /* Literal.String */ |
| 40 |
.na { color: #7D9029 } /* Name.Attribute */ |
| 41 |
.nb { color: #008000 } /* Name.Builtin */ |
| 42 |
.nc { color: #0000FF; font-weight: bold } /* Name.Class */ |
| 43 |
.no { color: #880000 } /* Name.Constant */ |
| 44 |
.nd { color: #AA22FF } /* Name.Decorator */ |
| 45 |
.ni { color: #999999; font-weight: bold } /* Name.Entity */ |
| 46 |
.ne { color: #D2413A; font-weight: bold } /* Name.Exception */ |
| 47 |
.nf { color: #0000FF } /* Name.Function */ |
| 48 |
.nl { color: #A0A000 } /* Name.Label */ |
| 49 |
.nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ |
| 50 |
.nt { color: #008000; font-weight: bold } /* Name.Tag */ |
| 51 |
.nv { color: #19177C } /* Name.Variable */ |
| 52 |
.ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ |
| 53 |
.w { color: #bbbbbb } /* Text.Whitespace */ |
| 54 |
.mb { color: #666666 } /* Literal.Number.Bin */ |
| 55 |
.mf { color: #666666 } /* Literal.Number.Float */ |
| 56 |
.mh { color: #666666 } /* Literal.Number.Hex */ |
| 57 |
.mi { color: #666666 } /* Literal.Number.Integer */ |
| 58 |
.mo { color: #666666 } /* Literal.Number.Oct */ |
| 59 |
.sb { color: #BA2121 } /* Literal.String.Backtick */ |
| 60 |
.sc { color: #BA2121 } /* Literal.String.Char */ |
| 61 |
.sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ |
| 62 |
.s2 { color: #BA2121 } /* Literal.String.Double */ |
| 63 |
.se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ |
| 64 |
.sh { color: #BA2121 } /* Literal.String.Heredoc */ |
| 65 |
.si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ |
| 66 |
.sx { color: #008000 } /* Literal.String.Other */ |
| 67 |
.sr { color: #BB6688 } /* Literal.String.Regex */ |
| 68 |
.s1 { color: #BA2121 } /* Literal.String.Single */ |
| 69 |
.ss { color: #19177C } /* Literal.String.Symbol */ |
| 70 |
.bp { color: #008000 } /* Name.Builtin.Pseudo */ |
| 71 |
.vc { color: #19177C } /* Name.Variable.Class */ |
| 72 |
.vg { color: #19177C } /* Name.Variable.Global */ |
| 73 |
.vi { color: #19177C } /* Name.Variable.Instance */ |
| 74 |
.il { color: #666666 } /* Literal.Number.Integer.Long */ |
| 75 |
</style> |
| 76 |
</head> |
| 77 |
<body> |
| 78 |
<h1>Diff Quality</h1> |
| 79 |
<p>Quality Report: pylint</p> |
| 80 |
<p>Diff: origin/main...HEAD, staged and unstaged changes</p> |
| 81 |
<table border="1"> |
| 82 |
<tr> |
| 83 |
<th>Source File</th> |
| 84 |
<th>Diff Quality (%)</th> |
| 85 |
<th>Lines in violation</th> |
| 86 |
</tr> |
| 87 |
<tr> |
| 88 |
<td>violations_test_file.py</td> |
| 89 |
<td>77.8%</td> |
| 90 |
<td> |
| 91 |
<ul> |
| 92 |
<li>1: C0114: (missing-module-docstring), : Missing module docstring</li> |
| 93 |
<li>1: C0116: (missing-function-docstring), func_1: Missing function or method docstring</li> |
| 94 |
<li>11: W0612: (unused-variable), func_2: Unused variable 'unused'</li> |
| 95 |
</ul> |
| 96 |
</td> |
| 97 |
</tr> |
| 98 |
</table> |
| 99 |
<ul> |
| 100 |
<li><b>Total</b>: 9 lines</li> |
| 101 |
<li><b>Violation</b>: 2 lines</li> |
| 102 |
<li><b>% Quality</b>: 77%</li> |
| 103 |
</ul> |
| 104 |
<div class="src-snippet"> |
| 105 |
<div class="src-name">violations_test_file.py</div> |
| 106 |
<div class="snippets"> |
| 107 |
<div class="snippet"><table class="snippettable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span> |
| 108 |
<span class="normal">2</span> |
| 109 |
<span class="normal">3</span> |
| 110 |
<span class="normal">4</span> |
| 111 |
<span class="normal">5</span></pre></div></td><td class="code"><div><pre><span></span><a id="violations_test_file.py-1" name="violations_test_file.py-1"></a><span class="hll"><span class="k">def</span><span class="w"> </span><span class="nf">func_1</span><span class="p">(</span><span class="n">apple</span><span class="p">,</span> <span class="n">my_list</span><span class="p">):</span> |
| 112 |
</span><a id="violations_test_file.py-2" name="violations_test_file.py-2"></a> <span class="k">if</span> <span class="n">apple</span><span class="o"><</span><span class="mi">10</span><span class="p">:</span> |
| 113 |
<a id="violations_test_file.py-3" name="violations_test_file.py-3"></a> <span class="c1"># Do something </span> |
| 114 |
<a id="violations_test_file.py-4" name="violations_test_file.py-4"></a> <span class="n">my_list</span><span class="o">.</span><span class="n">append</span><span class="p">(</span><span class="n">apple</span><span class="p">)</span> |
| 115 |
<a id="violations_test_file.py-5" name="violations_test_file.py-5"></a> <span class="k">return</span> <span class="n">my_list</span><span class="p">[</span><span class="mi">1</span><span class="p">:]</span> |
| 116 |
</pre></div></td></tr></table></div> |
| 117 |
|
| 118 |
<div class="snippet"><table class="snippettable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 7</span> |
| 119 |
<span class="normal"> 8</span> |
| 120 |
<span class="normal"> 9</span> |
| 121 |
<span class="normal">10</span> |
| 122 |
<span class="normal">11</span> |
| 123 |
<span class="normal">12</span></pre></div></td><td class="code"><div><pre><span></span><a id="violations_test_file.py-7" name="violations_test_file.py-7"></a><span class="w"> </span><span class="sd">"""A less messy function"""</span> |
| 124 |
<a id="violations_test_file.py-8" name="violations_test_file.py-8"></a> <span class="k">for</span> <span class="n">char</span> <span class="ow">in</span> <span class="n">spongebob</span><span class="p">:</span> |
| 125 |
<a id="violations_test_file.py-9" name="violations_test_file.py-9"></a> <span class="k">if</span> <span class="n">char</span> <span class="ow">in</span> <span class="n">squarepants</span><span class="p">:</span> |
| 126 |
<a id="violations_test_file.py-10" name="violations_test_file.py-10"></a> <span class="k">return</span> <span class="n">char</span> |
| 127 |
<a id="violations_test_file.py-11" name="violations_test_file.py-11"></a><span class="hll"> <span class="n">unused</span><span class="o">=</span><span class="mi">1</span> |
| 128 |
</span><a id="violations_test_file.py-12" name="violations_test_file.py-12"></a> <span class="k">return</span> <span class="kc">None</span> |
| 129 |
</pre></div></td></tr></table></div> |
| 130 |
|
| 131 |
</div> |
| 132 |
</div> |
| 133 |
</body> |
| 134 |
</html> |