Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

infra(unicorn): numeric-separators-style #2815

Merged
merged 2 commits into from
Jun 8, 2024

Conversation

ST-DDT
Copy link
Member

@ST-DDT ST-DDT commented Apr 13, 2024

@ST-DDT ST-DDT added p: 1-normal Nothing urgent c: infra Changes to our infrastructure or project setup labels Apr 13, 2024
@ST-DDT ST-DDT added this to the vAnytime milestone Apr 13, 2024
@ST-DDT ST-DDT requested review from a team April 13, 2024 18:27
@ST-DDT ST-DDT self-assigned this Apr 13, 2024
Copy link

netlify bot commented Apr 13, 2024

Deploy Preview for fakerjs ready!

Name Link
🔨 Latest commit 2313c99
🔍 Latest deploy log https://app.netlify.com/sites/fakerjs/deploys/6663f65a6a403100082387db
😎 Deploy Preview https://deploy-preview-2815.fakerjs.dev
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@ST-DDT
Copy link
Member Author

ST-DDT commented Apr 13, 2024

Not sure about this one. Sometimes it looks useful, at other times the numbers aren't actual numbers...

Copy link

codecov bot commented Apr 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.96%. Comparing base (3ae9393) to head (2313c99).

Additional details and impacted files
@@           Coverage Diff           @@
##             next    #2815   +/-   ##
=======================================
  Coverage   99.95%   99.96%           
=======================================
  Files        2987     2987           
  Lines      216037   216037           
  Branches      946      952    +6     
=======================================
+ Hits       215936   215956   +20     
+ Misses        101       81   -20     

see 2 files with indirect coverage changes

Shinigami92
Shinigami92 previously approved these changes Apr 26, 2024
Copy link
Member

@Shinigami92 Shinigami92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sill thinking that it looks weird for digits <= 5 🤷

Shinigami92
Shinigami92 previously approved these changes Apr 26, 2024
Copy link
Contributor

@matthewmayer matthewmayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not convinced about the need for this rule. I think we could leave it up to authors to use separators when appropriate.

test/scripts/apidocs/verify-jsdoc-tags.spec.ts Outdated Show resolved Hide resolved
test/modules/location.spec.ts Outdated Show resolved Hide resolved
@ST-DDT ST-DDT requested review from a team April 26, 2024 07:49
@ST-DDT ST-DDT added the s: needs decision Needs team/maintainer decision label May 18, 2024
@xDivisionByZerox
Copy link
Member

I've evaluated the proposed rule again and it has become apparent for me that its implementation could generally enhance the uniformity of "magic number" definitions within a codebase. However, our repository's unique context, where numeric values often carry specific meanings, may be compromised by the adoption of numeric separator syntax. This concern was previously expressed by @matthewmayer (see here) as well.

While it is possible to configure the rule to enforce separators only where they currently exist, thereby standardizing their usage (e.g., in groups of three), this approach contradicts the rationale for introducing the rule in the first place.

Given these considerations, I propose that we opt not to include this rule in our ruleset.

@ST-DDT
Copy link
Member Author

ST-DDT commented May 23, 2024

Team Decision

  • We will disable this rule permanently

@ST-DDT ST-DDT removed the s: needs decision Needs team/maintainer decision label May 23, 2024
@ST-DDT ST-DDT marked this pull request as draft May 23, 2024 16:58
@ST-DDT ST-DDT marked this pull request as ready for review June 2, 2024 19:01
@ST-DDT ST-DDT enabled auto-merge (squash) June 8, 2024 06:12
@ST-DDT ST-DDT merged commit 567d66d into next Jun 8, 2024
23 checks passed
@ST-DDT ST-DDT deleted the infra/unicorn/numeric-separators-style branch June 8, 2024 06:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: infra Changes to our infrastructure or project setup p: 1-normal Nothing urgent
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants