<table><tr><td style="">jpoelen added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D10621">View Revision</a></tr></table><br /><div><div><p>I agree that some rules are excessive or even false, but the last time I watched (it was several months ago now), some regexes suggested to be DetectString seemed to have writing errors (mainly <tt style="background: #ebebeb; font-size: 13px;">\\</tt> count as 2 characters in xml) and some more or less useful propositions. If there has been no change at this level, it should still be checked.</p>
<p>Actually, I came to the conclusion that the parser himself could make some changes on the fly. For example, DetectChar/Detect2Chars are specializations of DetectString and the concatenation of regexes could be automatic, which would make most checks obsolete. There would be only suggestions to turn a Regex into something else, but it is much easier using an AST rather than a very slobbery regexes.</p>
<p>Finally, this commit will never make a complete list without false positives, especially since code reviews filter out such errors. We can abandon it.</p>
<p>PS: this commit uses <tt style="background: #ebebeb; font-size: 13px;">attrToBool</tt> as for the parser (if it has not changed) and adds 2 missing <tt style="background: #ebebeb; font-size: 13px;">return false</tt>. I do not have time to take care of it at the moment.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R216 Syntax Highlighting</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D10621">https://phabricator.kde.org/D10621</a></div></div><br /><div><strong>To: </strong>jpoelen, dhaumann<br /><strong>Cc: </strong>kwrite-devel, kde-frameworks-devel, vkrause, Framework: Syntax Highlighting, dhaumann, bmortimer, hase, michaelh, genethomas, ngraham, bruns, demsking, cullmann, sars<br /></div>