Minor edit to inspection result formatting
Add an if statement before adding the language attribute into the inspection error.
@@ -67,6 +67,7 @@ def format_inspection_result(result):
# For context and expression errors, rename the attribute from type to language.
for category in ['context', 'expressions']:
for entry in result.get(category, []):
+ if 'language' not in entry:
entry['language'] = entry['type']
del entry['type']
