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

Fix js lint #3393

Merged
merged 3 commits into from
Oct 13, 2023
Merged

Fix js lint #3393

merged 3 commits into from
Oct 13, 2023

Conversation

mstoykov
Copy link
Contributor

@mstoykov mstoykov commented Oct 13, 2023

What?

Fix js package lint issues

Why?

Part of #linter issues #769

Checklist

  • I have performed a self-review of my code.
  • I have added tests for my changes.
  • I have run linter locally (make ci-like-lint) and all checks pass.
  • I have run tests locally (make tests) and all tests pass.
  • I have commented on my code, particularly in hard-to-understand areas.

Related PR(s)/Issue(s)

@mstoykov mstoykov added this to the v0.48.0 milestone Oct 13, 2023
@codecov-commenter
Copy link

codecov-commenter commented Oct 13, 2023

Codecov Report

Attention: 9 lines in your changes are missing coverage. Please review.

Comparison is base (c949fd8) 73.11% compared to head (3ae4eb1) 73.13%.

❗ Current head 3ae4eb1 differs from pull request most recent head 0e0cc40. Consider uploading reports for the commit 0e0cc40 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3393      +/-   ##
==========================================
+ Coverage   73.11%   73.13%   +0.02%     
==========================================
  Files         258      258              
  Lines       19650    19648       -2     
==========================================
+ Hits        14367    14370       +3     
+ Misses       4401     4396       -5     
  Partials      882      882              
Flag Coverage Δ
ubuntu 73.07% <57.14%> (+0.02%) ⬆️
windows 72.97% <57.14%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
js/bundle.go 85.90% <100.00%> (ø)
js/console.go 94.28% <100.00%> (ø)
js/summary.go 89.87% <100.00%> (ø)
js/runner.go 85.74% <50.00%> (+0.83%) ⬆️

... and 2 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -241,7 +241,7 @@ func TestInitContextOpen(t *testing.T) {
{[]byte("hello world!"), "ascii", 12},
{[]byte("?((¯°·._.• ţ€$ţɨɲǥ µɲɨȼ๏ď€ΣSЫ ɨɲ Ќ6 •._.·°¯))؟•"), "utf", 47},
{[]byte{0o44, 226, 130, 172}, "utf-8", 2}, // $€
//{[]byte{00, 36, 32, 127}, "utf-16", 2}, // $€
// {[]byte{00, 36, 32, 127}, "utf-16", 2}, // $€
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we want to keep it?

Suggested change
// {[]byte{00, 36, 32, 127}, "utf-16", 2}, // $€

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't want to remove code that isn't absolutely dead in a lint fixing pass.

Maybe one day we will make this work 🤷

olegbespalov
olegbespalov previously approved these changes Oct 13, 2023
Copy link
Contributor

@olegbespalov olegbespalov left a comment

Choose a reason for hiding this comment

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

Left a few minor, non-blocking comments

js/bundle_test.go Show resolved Hide resolved
js/console_test.go Outdated Show resolved Hide resolved
js/runner.go Outdated Show resolved Hide resolved
@mstoykov mstoykov merged commit 7b5aaaa into master Oct 13, 2023
@mstoykov mstoykov deleted the fixJSLint branch October 13, 2023 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants