You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letscannerId = "9d632724-5c18-43e9-9314-555e9587b30c";
cluster("foo").database("bar").table("baz")
| extend ScannerName = tostring(todynamic(Properties).scannerConfigurationName)
| where Name matchesregex"Skipping comment creation for file"and Name matchesregex"as the scanner rule is in silent mode"
| extend FullFileName = extract("Skipping comment creation for file (. + ) as the scanner rule is in silent mode", 1, Name)
| extend FileNameParts = split(FullFileName, "Modified\\")
| extend FileName = iff(isempty(FileNameParts[1]), FullFileName, strcat("\\", FileNameParts[1])) //FullFileName was added on 2/2/24
| extend FileName = trim("'", FileName)
Notice how the github highlighting recognizes the line | extend FileNameParts = split(FullFileName, "Modified\\") to be escaping the backslash characted being escaped. However, the kuskus extension doesn't (as shown below)
Version Information:
The text was updated successfully, but these errors were encountered:
If you (or anyone reading) is willing to put a fix together, I'd be happy to facilitate. There's some good test coverage for the syntax highlighting, so it would be "as simple" as adding a new test case to cover this scenario, then updating the syntax highlighting regex to make the new test pass.
Consider the following query:
Notice how the github highlighting recognizes the line
| extend FileNameParts = split(FullFileName, "Modified\\")
to be escaping the backslash characted being escaped. However, the kuskus extension doesn't (as shown below)Version Information:
The text was updated successfully, but these errors were encountered: