<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace">Hey,<br><br></div><div class="gmail_default" style="font-family:monospace,monospace">We&#39;ve briefly discussed this but here&#39;s the summary of my preferences/modifications:<br><br>&quot;no-trailing-comma&quot;: true, =&gt; rule name is incorrect, should be 
&quot;trailing-comma&quot;: [true, {&quot;multiline&quot;: &quot;never&quot;, &quot;singleline&quot;: &quot;never&quot;}]<br><br>&quot;no-trailing-whitespace&quot;: false, =&gt; should be set to true, line end whitespace is bad for diffs among other things<br><br>&quot;one-line&quot;: [true, ... &quot;check-catch&quot;, &quot;check-else&quot;], =&gt; I&#39;m not much of a one liner person, so if possible not to have else and catch enforced to one line, I&#39;d appreciate. If not, I hope my brain gets used to it :)<br><br>&quot;radix&quot;: false, =&gt; should be set to true, parseInt without radix might produce unexpected value<br><br></div><div class="gmail_default" style="font-family:monospace,monospace">Also, would add<br><br>&quot;no-consecutive-blank-lines&quot;: true =&gt; I don&#39;t see the need for more than a single blank like, if we want to separate something, we should use a comment stating what comes below, eg: [blank line] /* From here, only magic! */ [blank line]. But this is just personal taste :)<br><br></div><div class="gmail_default" style="font-family:monospace,monospace">Regards,<br></div><div class="gmail_default" style="font-family:monospace,monospace">Alexandre<br></div><div class="gmail_default" style="font-family:monospace,monospace"><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 7, 2016 at 5:26 AM, mike thompson <span dir="ltr">&lt;<a href="mailto:mithomps@redhat.com" target="_blank">mithomps@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="word-wrap:break-word"><div>Please disregard if you don’t care about typescript linting or formatting.</div><div><br></div><div>I have a proposal for some changes to the tslint settings(hawkular/console/src/main/scripts/tslint.json). There are lots of little changes that need to be done to the code because of this tslint policy change. However, these changes produce more consistent, readable code that is better for long term maintenance. </div><div><br></div><div>For further reference on tslint rules see:</div><div><a href="http://palantir.github.io/tslint/rules/" target="_blank">http://palantir.github.io/tslint/rules/</a></div><div><br></div><div>The second question I have is if this changes are agreed upon. When should it get put in? I’m of the mindset that it should be put in now, but happy to hear any other arguments against it.</div><div><br></div><div>HINT: With Webstorm 11, it can read in the tslint file and interactively show all the tslint hints in the code. </div><div><br></div><div>Sorry, I didn’t include the diff file.</div><div><br></div><div>hawkular/console/src/main/scripts/tslint.json:</div><div><pre style="background-color:rgb(43,43,43);color:rgb(169,183,198);font-family:&quot;Menlo&quot;;font-size:9pt">{<br>  <span style="color:rgb(152,118,170)">&quot;rules&quot;</span><span style="color:rgb(204,120,50)">: </span>{<br>    <span style="color:rgb(152,118,170)">&quot;class-name&quot;</span><span style="color:rgb(204,120,50)">: </span><span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;curly&quot;</span><span style="color:rgb(204,120,50)">: </span><span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;eofline&quot;</span><span style="color:rgb(204,120,50)">: </span><span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;forin&quot;</span><span style="color:rgb(204,120,50)">: </span><span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;indent&quot;</span><span style="color:rgb(204,120,50)">: </span>[<span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(106,135,89)">&quot;spaces&quot;</span>]<span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;label-position&quot;</span><span style="color:rgb(204,120,50)">: </span><span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;label-undefined&quot;</span><span style="color:rgb(204,120,50)">: </span><span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;max-line-length&quot;</span><span style="color:rgb(204,120,50)">: </span>[<span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(104,151,187)">120</span>]<span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;member-access&quot;</span><span style="color:rgb(204,120,50)">: </span><span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;no-arg&quot;</span><span style="color:rgb(204,120,50)">: </span><span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;no-bitwise&quot;</span><span style="color:rgb(204,120,50)">: </span><span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;no-console&quot;</span><span style="color:rgb(204,120,50)">: </span>[<span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">      </span><span style="color:rgb(106,135,89)">&quot;trace&quot;<br></span><span style="color:rgb(106,135,89)">    </span>]<span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;no-construct&quot;</span><span style="color:rgb(204,120,50)">: </span><span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;no-debugger&quot;</span><span style="color:rgb(204,120,50)">: </span><span style="color:rgb(204,120,50);font-weight:bold">false</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;no-duplicate-key&quot;</span><span style="color:rgb(204,120,50)">: </span><span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;no-duplicate-variable&quot;</span><span style="color:rgb(204,120,50)">: </span><span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;no-empty&quot;</span><span style="color:rgb(204,120,50)">: </span><span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;no-eval&quot;</span><span style="color:rgb(204,120,50)">: </span><span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;no-require-imports&quot;</span><span style="color:rgb(204,120,50)">: </span><span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;no-string-literal&quot;</span><span style="color:rgb(204,120,50)">: </span><span style="color:rgb(204,120,50);font-weight:bold">false</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;no-switch-case-fall-through&quot;</span><span style="color:rgb(204,120,50)">: </span><span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;no-shadowed-variable&quot;</span><span style="color:rgb(204,120,50)">: </span><span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;no-trailing-comma&quot;</span><span style="color:rgb(204,120,50)">: </span><span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;no-trailing-whitespace&quot;</span><span style="color:rgb(204,120,50)">: </span><span style="color:rgb(204,120,50);font-weight:bold">false</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;no-unused-expression&quot;</span><span style="color:rgb(204,120,50)">: </span><span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;no-unused-variable&quot;</span><span style="color:rgb(204,120,50)">: </span><span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;no-unreachable&quot;</span><span style="color:rgb(204,120,50)">: </span><span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;no-use-before-declare&quot;</span><span style="color:rgb(204,120,50)">: </span><span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;no-var-keyword&quot;</span><span style="color:rgb(204,120,50)">: </span><span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;one-line&quot;</span><span style="color:rgb(204,120,50)">: </span>[<span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">      </span><span style="color:rgb(106,135,89)">&quot;check-open-brace&quot;</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">      </span><span style="color:rgb(106,135,89)">&quot;check-whitespace&quot;</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">      </span><span style="color:rgb(106,135,89)">&quot;check-catch&quot;</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">      </span><span style="color:rgb(106,135,89)">&quot;check-else&quot;<br></span><span style="color:rgb(106,135,89)">    </span>]<span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;quotemark&quot;</span><span style="color:rgb(204,120,50)">: </span>[<span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(106,135,89)">&quot;single&quot;</span>]<span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;radix&quot;</span><span style="color:rgb(204,120,50)">: </span><span style="color:rgb(204,120,50);font-weight:bold">false</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;semicolon&quot;</span><span style="color:rgb(204,120,50)">: </span><span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;triple-equals&quot;</span><span style="color:rgb(204,120,50)">: </span>[<span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(106,135,89)">&quot;allow-null-check&quot;</span>]<span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;typedef-whitespace&quot;</span><span style="color:rgb(204,120,50)">: </span>[<span style="color:rgb(204,120,50);font-weight:bold">true</span>]<span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;variable-name&quot;</span><span style="color:rgb(204,120,50)">: </span>[<span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(106,135,89)">&quot;ban-keywords&quot;</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(106,135,89)">&quot;check-format&quot;</span><span style="color:rgb(204,120,50)">, </span><span style="color:rgb(106,135,89)">&quot;allow-leading-underscore&quot;</span>]<span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;whitespace&quot;</span><span style="color:rgb(204,120,50)">: </span>[<span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">      </span><span style="color:rgb(106,135,89)">&quot;check-decl&quot;</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">      </span><span style="color:rgb(106,135,89)">&quot;check-operator&quot;</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">      </span><span style="color:rgb(106,135,89)">&quot;check-type&quot;<br></span><span style="color:rgb(106,135,89)">    </span>]<span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">    </span><span style="color:rgb(152,118,170)">&quot;license-header&quot;</span><span style="color:rgb(204,120,50)">: </span>[ <span style="color:rgb(204,120,50);font-weight:bold">true</span><span style="color:rgb(204,120,50)">,<br></span><span style="color:rgb(204,120,50)">      </span><span style="color:rgb(106,135,89)">&quot;/// Copyright 2014-2016 Red Hat, Inc. and/or its affiliates</span><span style="color:rgb(204,120,50)">\n</span><span style="color:rgb(106,135,89)">/// and other contributors as indicated by the @author tags.</span><span style="color:rgb(204,120,50)">\n</span><span style="color:rgb(106,135,89)">///</span><span style="color:rgb(204,120,50)">\n</span><span style="color:rgb(106,135,89)">/// Licensed under the Apache License, Version 2.0 (the </span><span style="color:rgb(204,120,50)">\&quot;</span><span style="color:rgb(106,135,89)">License</span><span style="color:rgb(204,120,50)">\&quot;</span><span style="color:rgb(106,135,89)">);</span><span style="color:rgb(204,120,50)">\n</span><span style="color:rgb(106,135,89)">/// you may not use this file except in compliance with the License.</span><span style="color:rgb(204,120,50)">\n</span><span style="color:rgb(106,135,89)">/// You may obtain a copy of the License at</span><span style="color:rgb(204,120,50)">\n</span><span style="color:rgb(106,135,89)">///</span><span style="color:rgb(204,120,50)">\n</span><span style="color:rgb(106,135,89)">///   <a href="http://www.apache.org/licenses/LICENSE-2.0" target="_blank">http://www.apache.org/licenses/LICENSE-2.0</a></span><span style="color:rgb(204,120,50)">\n</span><span style="color:rgb(106,135,89)">///</span><span style="color:rgb(204,120,50)">\n</span><span style="color:rgb(106,135,89)">/// Unless required by applicable law or agreed to in writing, software</span><span style="color:rgb(204,120,50)">\n</span><span style="color:rgb(106,135,89)">/// distributed under the License is distributed on an </span><span style="color:rgb(204,120,50)">\&quot;</span><span style="color:rgb(106,135,89)">AS IS</span><span style="color:rgb(204,120,50)">\&quot;</span><span style="color:rgb(106,135,89)"> BASIS,</span><span style="color:rgb(204,120,50)">\n</span><span style="color:rgb(106,135,89)">/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span><span style="color:rgb(204,120,50)">\n</span><span style="color:rgb(106,135,89)">/// See the License for the specific language governing permissions and</span><span style="color:rgb(204,120,50)">\n</span><span style="color:rgb(106,135,89)">/// limitations under the License.&quot;<br></span><span style="color:rgb(106,135,89)">    </span>]<br>  }<br>}<br></pre><div><br></div></div></div><br>_______________________________________________<br>
hawkular-dev mailing list<br>
<a href="mailto:hawkular-dev@lists.jboss.org">hawkular-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/hawkular-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/hawkular-dev</a><br>
<br></blockquote></div><br></div></div>