Closed raptisj closed 6 months ago
Latest commit: ac131ac3449e2a37a731eaf09d14fbb1e3b8d43e
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Nice! I'll review it later today and merge it!
@raptisj r u interested on another format utility I have in mind?...
Nice! I'll review it later today and merge it!
@raptisj r u interested on another format utility I have in mind?...
@tsevdos Regarding the SonarCloud, what is up with the strictness? I removed "nearly" all tests and it still fails. Am I doing something wrong?
I was thinking about doing a times util(e.g. 1 χρόνο πριν, 2 χρόνια πριν, 13 μήνες πριν) or something like that but sure. If you want just open a discussion with your idea.
Failed conditions
16.6% Duplication on New Code (required ≤ 3%)
Nice! I'll review it later today and merge it! @raptisj r u interested on another format utility I have in mind?...
@tsevdos Regarding the SonarCloud, what is up with the strictness? I removed "nearly" all tests and it still fails. Am I doing something wrong?
I was thinking about doing a times util(e.g. 1 χρόνο πριν, 2 χρόνια πριν, 13 μήνες πριν) or something like that but sure. If you want just open a discussion with your idea.
I know, I notice that too, but don't bother... I had the same issue with my tests, but I thought I fixed it... Let's review and merge it.
Description
This pull request introduces a new util,
formatWeight
, to the newly createdformatUtils
module. This util helps users format the wording of weight values, like appending the SI symbol, handling plural/single values, and having the weight name in short(p) or full(pound) format.Changes Made
formatUtils
module(also updated the README.md file)formatWeight
util in theformatUtils
module.formatUtils.md
file for documentation.Usage
A simple example
This change can be the start of introducing a wide range of format utils such as speed, time, energy etc.