mirror of
https://github.com/hohn/sarif-cli.git
synced 2025-12-16 17:23:03 +01:00
Fix new float content handling:
raise Exception("Unknown element type", t, elem)
Exception: ('Unknown element type', <class 'float'>, 99.96780515670306)
from
{
"rule": {
"id": "cpp/telemetry/database-quality",
"index": 53
},
"ruleId": "cpp/telemetry/database-quality",
"ruleIndex": 53,
"value": 99.96780515670306,
"message": {
"text": "Percentage of functions without errors"
}
}
This commit is contained in:
@@ -362,8 +362,8 @@ def fillsig(args, elem, context):
|
||||
return fillsig_dict(args, elem, context)
|
||||
elif t == list:
|
||||
return fillsig_list(args, elem, context)
|
||||
elif t in [str, int, bool]:
|
||||
elif t in [str, int, bool, float]:
|
||||
return elem
|
||||
else:
|
||||
raise Exception("Unknown element type")
|
||||
raise Exception("Unknown element type", t, elem)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user