I would like to look into implementing a rule that checks for a width mismatch between LHS and RHS values. There have been a couple of issues already submitted:
I have browsed the codebase a little, but I figured it would probably be more efficient for anyone here to provide some guidance on where to look. Does the ability to evaluate the total bit width of lhs/rhs expressions and port connections exist already? If so, do any current rules utilize this functionality?
I feel like detecting width mismatches should be one of the first lint rules created since it is one of the most controversial topics when discussing SV vs. VHDL, etc. I fear that because this type of rule doesn't exist, there may not be any mechanism in place yet in Verible to easily implement it. Hopefully I'm wrong!