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

Update buildSizeReport.js #4153

Closed
wants to merge 1 commit into from

Conversation

TusharNaugain
Copy link

@TusharNaugain TusharNaugain commented Oct 25, 2024

Error Handling: Added try-catch blocks around key operations like reading files and compression.
Code Structure: Modularized functions for better readability and maintainability.
Clarity in Reporting: The report sections (Added, Removed, and Changed) are clear and concise with the markdown formatted properly.
Performance: Simplified some of the operations to reduce unnecessary complexity, e.g., computeFileSize directly handles errors instead of causing the script to fail.

Checklist

  • Added markup tests, or they don't apply here because...
  • Updated the changelog at CHANGES.md

Error Handling: Added try-catch blocks around key operations like reading files and compression.
Code Structure: Modularized functions for better readability and maintainability.
Clarity in Reporting: The report sections (Added, Removed, and Changed) are clear and concise with the markdown formatted properly.
Performance: Simplified some of the operations to reduce unnecessary complexity, e.g., computeFileSize directly handles errors instead of causing the script to fail.
@joshgoebel
Copy link
Member

joshgoebel commented Oct 25, 2024

While I actually do prefer some of the code changes made here, there are a lot of other changes I do not like. Filtering out the desired parts from the rest just isn't worth the time.

Please do not submit any further general "code improvement/cleanup" type PRs.


As I suggested before, please find an existing issue that needs to be fixed and start there. Here are the issue tagged "good first issue", you could have a look thru those.

https://github.com/highlightjs/highlight.js/issues?q=is%3Aissue+is%3Aclosed+label%3A%22good+first+issue%22

@joshgoebel joshgoebel closed this Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants