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:
2025-08-23 20:31:54 -07:00
committed by =michael hohn
parent 1ee2dae8d7
commit bed9d3e659

View File

@@ -362,8 +362,8 @@ def fillsig(args, elem, context):
return fillsig_dict(args, elem, context) return fillsig_dict(args, elem, context)
elif t == list: elif t == list:
return fillsig_list(args, elem, context) return fillsig_list(args, elem, context)
elif t in [str, int, bool]: elif t in [str, int, bool, float]:
return elem return elem
else: else:
raise Exception("Unknown element type") raise Exception("Unknown element type", t, elem)