Use camelCase for XML acronym

This commit is contained in:
Tony Torralba
2022-07-29 13:44:11 +02:00
parent 7ca955a0e6
commit 6091f0dbce
3 changed files with 5 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ private class KtExpectationComment extends KtComment, ExpectationComment {
override string getContents() { result = this.getText().suffix(2).trim() }
}
private class XMLExpectationComment extends ExpectationComment instanceof XMLComment {
private class XmlExpectationComment extends ExpectationComment instanceof XMLComment {
override string getContents() { result = this.(XMLComment).getText().trim() }
override Location getLocation() { result = this.(XMLComment).getLocation() }

View File

@@ -0,0 +1,2 @@
| test.xml:4:5:4:32 | attribute=value | Unexpected result: hasXmlResult= |
| test.xml:5:29:5:52 | $ hasXmlResult | Missing result:hasXmlResult= |

View File

@@ -1,8 +1,8 @@
import semmle.code.xml.XML
import TestUtilities.InlineExpectationsTest
class XMLTest extends InlineExpectationsTest {
XMLTest() { this = "XMLTest" }
class XmlTest extends InlineExpectationsTest {
XmlTest() { this = "XmlTest" }
override string getARelevantTag() { result = "hasXmlResult" }