Open
Description
Reference: @bridiver
- We must transition from C-style cast rules to
static_cast
, while ensuring all C-style casts,reinterpret_cast
, andconst_cast
are flagged, irrespective of their type. - Please refer to the following link: Unify default.json and regional.json into list_catalog.json adblock-resources#130 (comment) to verify the legitimacy of enum values. More broadly, if the value functions as a bitmask, it should ideally be classified as an enum and validated rather than merely being cast (for another example, see https://github.com/brave/adblock-resources/pull/130/files#r1329319150).
Proposed Solution
- Remove the rule
- Fork and improve the rule