-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Enable the no-var
linting rule in src/core/bidi.js
#13386
Enable the no-var
linting rule in src/core/bidi.js
#13386
Conversation
This is done automatically with `gulp lint --fix` and the following manual changes: ```diff diff --git a/src/core/bidi.js b/src/core/bidi.js index e9e0a7217..32691c0c6 100644 --- a/src/core/bidi.js +++ b/src/core/bidi.js @@ -82,7 +82,8 @@ function isEven(i) { } function findUnequal(arr, start, value) { - for (var j = start, jj = arr.length; j < jj; ++j) { + let j, jj; + for (j = start, jj = arr.length; j < jj; ++j) { if (arr[j] !== value) { return j; } @@ -251,15 +252,14 @@ function bidi(str, startLevel, vertical) { for (i = 0; i < strLength; ++i) { if (types[i] === "EN") { // do before - var j; - for (j = i - 1; j >= 0; --j) { + for (let j = i - 1; j >= 0; --j) { if (types[j] !== "ET") { break; } types[j] = "EN"; } // do after - for (j = i + 1; j < strLength; ++j) { + for (let j = i + 1; j < strLength; ++j) { if (types[j] !== "ET") { break; } ```
/botio test |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 1 Live output at: http://54.67.70.0:8877/d38d40f7235eac5/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_test from @timvandermeij received. Current queue size: 1 Live output at: http://3.101.106.178:8877/92024bbf2034835/output.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thank you!
I believe that this means that only the test
-folder is left to fix now, which is great :-)
Yes, in the |
From: Bot.io (Linux m4)FailedFull output at http://54.67.70.0:8877/d38d40f7235eac5/output.txt Total script time: 26.07 mins
Image differences available at: http://54.67.70.0:8877/d38d40f7235eac5/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://3.101.106.178:8877/92024bbf2034835/output.txt Total script time: 29.46 mins
Image differences available at: http://3.101.106.178:8877/92024bbf2034835/reftest-analyzer.html#web=eq.log |
This is done automatically with
gulp lint --fix
and the following manual changes: