Add capability to read sourceLanguage if exists in CLI sarif

otherwise dummy val
previously assumed never present in CLI sarif
This commit is contained in:
Kristen Newbury
2023-01-05 12:50:54 -05:00
parent d602efd3f0
commit fc2c6bac99
3 changed files with 9 additions and 10 deletions

View File

@@ -28,7 +28,7 @@ struct_graph_CLI = (
('Struct3497', ('struct', ('index', 'Int'), ('uri', 'String'))),
('Struct9567', ('struct', ('location', 'Struct3497'))),
('Array6920', ('array', (0, 'Struct5277'), (1, 'Struct9567'))),
('Struct1509', ('struct', ('semmle.formatSpecifier', 'String'))),
('Struct1509', ('struct', ('semmle.formatSpecifier', 'String'), ('semmle.sourceLanguage', 'String'))),
('Struct2774', ('struct', ('text', 'String'))),
( 'Struct6299',
( 'struct',