web3swift icon indicating copy to clipboard operation
web3swift copied to clipboard

Add Decimal splitting SwiftLint rule

Open yaroslavyaroslav opened this issue 3 years ago • 1 comments

Working with a large numbers in lib makes it error prone in term of putting wrong dimension, e.g 1_000_000 instead of 10_000_000. Luckily swift allows to use notation above which makes it much clearer to see what exact dimension number have.

So this notation should be forced with appropriate SwiftLint rule.

yaroslavyaroslav avatar Aug 04 '22 06:08 yaroslavyaroslav

Looks like this is what you are looking for: https://realm.github.io/SwiftLint/number_separator.html

JeneaVranceanu avatar Aug 09 '22 07:08 JeneaVranceanu

@yaroslavyaroslav Can this one be closed?

JeneaVranceanu avatar Sep 26 '22 14:09 JeneaVranceanu