mirror of
https://github.com/github/codeql.git
synced 2025-12-22 11:46:32 +01:00
Use camelCase for XML acronym
This commit is contained in:
@@ -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() }
|
||||
|
||||
@@ -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= |
|
||||
@@ -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" }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user