stan
stan copied to clipboard
Add 'fromIntegral' inspection as anti-pattern
fromIntegral produces unexpected results for almost all types and is partial for Natural. We can recommend safer versions of this function.
toIntegralSizedfrombase
Additionally, we can add possible solutions for already existing fromInteger inspection:
- Suggest
integerToBounded - Suggest
integerToNatural