-
Notifications
You must be signed in to change notification settings - Fork 501
[4.52.0] 엔트리 HW develop <= develop-hw #3026
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
Conversation
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.
Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit
eslint
This line has a length of 132. Maximum allowed is 100.
| if((dataToSend[2] == CommandType.COMMAND_MOTOR1_INFINITE) || (dataToSend[2] == CommandType.COMMAND_MOTOR2_INFINITE)) |
Expected space(s) after "if".
| if((dataToSend[2] == CommandType.COMMAND_MOTOR1_INFINITE) || (dataToSend[2] == CommandType.COMMAND_MOTOR2_INFINITE)) |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert )·
Opening curly brace does not appear on the same line as controlling statement.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| this.motorTrigger = true; |
Closing curly brace does not appear on the same line as the subsequent block.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ⏎················else⏎··············· with ·else
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 377 to 379 in f10ecb8
| } | |
| else | |
| { |
Opening curly brace does not appear on the same line as controlling statement.
This line has a length of 114. Maximum allowed is 100.
| // const sendACK= [0x24,0x52,0x00,this.current_request,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF]; //stop |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ⏎···························
| zumiMiniLite_going_forward_until_sensing: '물체 감지할 때까지 앞으로 가기 %1', |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ⏎···························
| zumiMiniLite_following_line_until_sensing: '교차로 만날 때까지 선 따라가기 %1', |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ,
This line has a length of 110. Maximum allowed is 100.
| zumiMiniLite_going_forward_until_sensing: 'going forward until sensing the object %1', |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ⏎···························
| zumiMiniLite_going_forward_until_sensing: 'going forward until sensing the object %1', |
This line has a length of 119. Maximum allowed is 100.
| zumiMiniLite_following_line_until_sensing: 'following the line until meet the intersection %1', |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ⏎···························
| zumiMiniLite_following_line_until_sensing: 'following the line until meet the intersection %1', |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ,
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 635 to 636 in f10ecb8
| return { | |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| statements: [],// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: 'LEFT',// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: 'CW',// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: '5',// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace "Indicator" with 'Indicator'
| type: "Indicator", |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ,
| size: 14 |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace "zumiMiniLite_move" with 'zumiMiniLite_move'
| class: "zumiMiniLite_move", |
Block must not be padded by blank lines.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 689 to 691 in f10ecb8
| func(sprite, script) { | |
| const DIR_LEFT = 1; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 690 to 691 in f10ecb8
| const DIR_LEFT = 1; |
Unexpected var, use let or const instead.
| var _dirInt = 0; |
Expected space(s) after "if".
| if(_sel == 'LEFT') { |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| if(_sel == 'LEFT') { |
Expected { after 'if' condition.
| if (_dir == 'CW') _dirInt = DIR_RIGHT; |
Expected { after 'if' condition.
| else if (_dir == 'CCW') _dirInt = DIR_LEFT; |
Expected { after 'if' condition.
| else if (_dir == 'STOP') _dirInt = DIR_STOP; |
Expected { after 'if' condition.
| if (_dir == 'CW') _dirInt = DIR_LEFT; |
Expected { after 'if' condition.
| else if (_dir == 'CCW') _dirInt = DIR_RIGHT; |
Expected { after 'if' condition.
| else if (_dir == 'STOP') _dirInt = DIR_STOP; |
🚫 [eslint] <no-const-assign> reported by reviewdog 🐶
'_spd' is constant.
| if (_spd < 0) _spd = 0; |
Expected { after 'if' condition.
| if (_spd < 0) _spd = 0; |
🚫 [eslint] <no-const-assign> reported by reviewdog 🐶
'_spd' is constant.
| else if (_spd > 10) _spd = 10; |
Expected { after 'if' condition.
| else if (_spd > 10) _spd = 10; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ····
| CommandType.COMMAND_MOTOR1_INFINITE, |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ····
| Entry.ZumiMiniLite.tSpd, |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ····
| Entry.ZumiMiniLite.tSpd, |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ···························· with ································
| Entry.ZumiMiniLite.tDir |
Closing curly brace does not appear on the same line as the subsequent block.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎⏎·······················
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 727 to 729 in f10ecb8
| } | |
| else if (_sel == 'RIGHT') { |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| Entry.ZumiMiniLite.sendCommand( |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ···························· with ································
| CommandType.COMMAND_MOTOR2_INFINITE, |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ····
| Entry.ZumiMiniLite.tSpd, |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ····
| Entry.ZumiMiniLite.tSpd, |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ···························· with ································
| Entry.ZumiMiniLite.tDir |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| statements: [],// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: 'FORWARD',// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ,
| [Lang.Blocks.zumiMiniLite_slow, 'SLOW'] |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: 'MID',// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: '10',// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace "Indicator" with 'Indicator'
| type: "Indicator", |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ,
| size: 14 |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace "zumiMiniLite_move" with 'zumiMiniLite_move'
| class: "zumiMiniLite_move", |
Block must not be padded by blank lines.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 799 to 801 in f10ecb8
| async func(sprite, script) { | |
| const DIR_FORWARD = 0; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 799 to 800 in f10ecb8
| async func(sprite, script) { | |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ;
| const _dir = script.getStringField('DIR', script) |
Missing semicolon.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 808 to 809 in f10ecb8
| const _dir = script.getStringField('DIR', script) | |
| const _spd = script.getStringField('SPD', script); |
'_dirV' is never reassigned. Use 'const' instead.
| let _dirV = (_dir === 'FORWARD') ? DIR_FORWARD : DIR_BACKWARD; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (_dir·===·'FORWARD') with _dir·===·'FORWARD'
| let _dirV = (_dir === 'FORWARD') ? DIR_FORWARD : DIR_BACKWARD; |
This line has a length of 112. Maximum allowed is 100.
| let _spdV = (_spd === 'RAPID') ? SPEED_RAPID : (_spd === 'MID') ? SPEED_MID : SPEED_LOW; |
'_spdV' is never reassigned. Use 'const' instead.
| let _spdV = (_spd === 'RAPID') ? SPEED_RAPID : (_spd === 'MID') ? SPEED_MID : SPEED_LOW; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ·(_spd·===·'RAPID')·?·SPEED_RAPID·:·(_spd·===·'MID') with ⏎····························_spd·===·'RAPID'·?·SPEED_RAPID·:·_spd·===·'MID'
| let _spdV = (_spd === 'RAPID') ? SPEED_RAPID : (_spd === 'MID') ? SPEED_MID : SPEED_LOW; |
Do not nest ternary expressions.
| let _spdV = (_spd === 'RAPID') ? SPEED_RAPID : (_spd === 'MID') ? SPEED_MID : SPEED_LOW; |
'_distV' is never reassigned. Use 'const' instead.
| let _distV = parseInt(_dist); |
Missing radix parameter.
| let _distV = parseInt(_dist); |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| statements: [],// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: 'FORWARD',// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ,
| [Lang.Blocks.zumiMiniLite_slow, 'SLOW'] |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: 'MID',// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace "Indicator" with 'Indicator'
| type: "Indicator", |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace "zumiMiniLite_move" with 'zumiMiniLite_move'
| class: "zumiMiniLite_move", |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ;
| const _dir = script.getStringField('DIR', script) |
Missing semicolon.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 881 to 882 in f10ecb8
| const _dir = script.getStringField('DIR', script) | |
| const _spd = script.getStringField('SPD', script); |
'_dirV' is never reassigned. Use 'const' instead.
| let _dirV = (_dir === 'FORWARD') ? DIR_FORWARD : DIR_BACKWARD; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (_dir·===·'FORWARD') with _dir·===·'FORWARD'
| let _dirV = (_dir === 'FORWARD') ? DIR_FORWARD : DIR_BACKWARD; |
This line has a length of 112. Maximum allowed is 100.
| let _spdV = (_spd === 'RAPID') ? SPEED_RAPID : (_spd === 'MID') ? SPEED_MID : SPEED_LOW; |
'_spdV' is never reassigned. Use 'const' instead.
| let _spdV = (_spd === 'RAPID') ? SPEED_RAPID : (_spd === 'MID') ? SPEED_MID : SPEED_LOW; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ·(_spd·===·'RAPID')·?·SPEED_RAPID·:·(_spd·===·'MID') with ⏎····························_spd·===·'RAPID'·?·SPEED_RAPID·:·_spd·===·'MID'
| let _spdV = (_spd === 'RAPID') ? SPEED_RAPID : (_spd === 'MID') ? SPEED_MID : SPEED_LOW; |
Do not nest ternary expressions.
| let _spdV = (_spd === 'RAPID') ? SPEED_RAPID : (_spd === 'MID') ? SPEED_MID : SPEED_LOW; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| statements: [],// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: 'RIGHT',// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ,
| [Lang.Blocks.SLOW, 'SLOW'] |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: 'MID',// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: '90',// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace "Indicator" with 'Indicator'
| type: "Indicator", |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ,
| size: 14 |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace "zumiMiniLite_move" with 'zumiMiniLite_move'
| class: "zumiMiniLite_move", |
Block must not be padded by blank lines.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 948 to 950 in f10ecb8
| async func(sprite, script) { | |
| const DIR_LEFT = 0; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 949 to 950 in f10ecb8
| const DIR_LEFT = 0; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ;
| const _dir = script.getStringField('DIR', script) |
Missing semicolon.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 956 to 957 in f10ecb8
| const _dir = script.getStringField('DIR', script) | |
| const _spd = script.getStringField('SPD', script); |
'_dirV' is never reassigned. Use 'const' instead.
| let _dirV = (_dir === 'LEFT') ? DIR_LEFT : DIR_RIGHT; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (_dir·===·'LEFT') with _dir·===·'LEFT'
| let _dirV = (_dir === 'LEFT') ? DIR_LEFT : DIR_RIGHT; |
This line has a length of 112. Maximum allowed is 100.
| let _spdV = (_spd === 'RAPID') ? SPEED_RAPID : (_spd === 'MID') ? SPEED_MID : SPEED_LOW; |
'_spdV' is never reassigned. Use 'const' instead.
| let _spdV = (_spd === 'RAPID') ? SPEED_RAPID : (_spd === 'MID') ? SPEED_MID : SPEED_LOW; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ·(_spd·===·'RAPID')·?·SPEED_RAPID·:·(_spd·===·'MID') with ⏎····························_spd·===·'RAPID'·?·SPEED_RAPID·:·_spd·===·'MID'
| let _spdV = (_spd === 'RAPID') ? SPEED_RAPID : (_spd === 'MID') ? SPEED_MID : SPEED_LOW; |
Do not nest ternary expressions.
| let _spdV = (_spd === 'RAPID') ? SPEED_RAPID : (_spd === 'MID') ? SPEED_MID : SPEED_LOW; |
Expected { after 'if' condition.
| if (_degV < 5) _degV = 5; else if (_degV > 359) _degV = 359; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ⏎·······················
| if (_degV < 5) _degV = 5; else if (_degV > 359) _degV = 359; |
Expected { after 'if' condition.
| if (_degV < 5) _degV = 5; else if (_degV > 359) _degV = 359; |
Unexpected var, use let or const instead.
| var _degree = _degV * 0.5; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ····
| color: EntryStatic.colorSet.block.default.HARDWARE, |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ····
| outerLine: EntryStatic.colorSet.block.darken.HARDWARE, |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ····
| fontColor: '#ffffff', |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ························ with ····················
| skeleton: 'basic', |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ····statements:·[], with statements:·[],·
| statements: [],// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ························ with ····················
| params: [ |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ···························· with ························
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ································type:·"Indicator" with ····························type:·'Indicator'
| type: "Indicator", |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ····
| img: 'block_icon/hardwarelite_icon.svg', |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ····
| size: 14, |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ····} with },
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ····
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ····
| def: { |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ····························type:·"zumiMiniLite_motion_stop" with ························type:·'zumiMiniLite_motion_stop',
| type: "zumiMiniLite_motion_stop" |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ····
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ····class:·"zumiMiniLite_move" with class:·'zumiMiniLite_move'
| class: "zumiMiniLite_move", |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ····
| isNotFor: ['ZumiMiniLite'], |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ····
| async func(sprite, script) { |
Block must not be padded by blank lines.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 995 to 997 in f10ecb8
| async func(sprite, script) { | |
| await Entry.ZumiMiniLite.runCommandBlock(() => { |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ⏎···························· with ························
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 996 to 997 in f10ecb8
| await Entry.ZumiMiniLite.runCommandBlock(() => { |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ····Entry.ZumiMiniLite.sendCommand(⏎····································CommandType.COMMAND_MOTION_STOP⏎································ with Entry.ZumiMiniLite.sendCommand(CommandType.COMMAND_MOTION_STOP
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 998 to 1000 in f10ecb8
| Entry.ZumiMiniLite.sendCommand( | |
| CommandType.COMMAND_MOTION_STOP | |
| ); |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ···························· with ························
Block must not be padded by blank lines.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1001 to 1003 in f10ecb8
| }); | |
| }, |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎····
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1002 to 1003 in f10ecb8
| }, |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| statements: [],// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace "Indicator" with 'Indicator'
| type: "Indicator", |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ,
| size: 14 |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ,
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace "zumiMiniLite_going_forward_until_sensing" with 'zumiMiniLite_going_forward_until_sensing',
| type: "zumiMiniLite_going_forward_until_sensing" |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace "zumiMiniLite_sense" with 'zumiMiniLite_sense'
| class: "zumiMiniLite_sense", |
Block must not be padded by blank lines.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1024 to 1026 in f10ecb8
| async func(sprite, script) { | |
| await Entry.ZumiMiniLite.runCommandBlock(() => { |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1024 to 1025 in f10ecb8
| async func(sprite, script) { | |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ⏎································CommandType.COMMAND_GOSENSOR⏎···························· with CommandType.COMMAND_GOSENSOR
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1027 to 1029 in f10ecb8
| Entry.ZumiMiniLite.sendCommand( | |
| CommandType.COMMAND_GOSENSOR | |
| ); |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1030 to 1031 in f10ecb8
| }); | |
Block must not be padded by blank lines.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1030 to 1032 in f10ecb8
| }); | |
| }, |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace "Indicator" with 'Indicator'
| type: "Indicator", |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ,
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace "zumiMiniLite_following_line_until_sensing" with 'zumiMiniLite_following_line_until_sensing',
| type: "zumiMiniLite_following_line_until_sensing" |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace "zumiMiniLite_sense" with 'zumiMiniLite_sense'
| class: "zumiMiniLite_sense", |
Block must not be padded by blank lines.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1053 to 1055 in f10ecb8
| async func(sprite, script) { | |
| await Entry.ZumiMiniLite.runCommandBlock(() => { |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1053 to 1054 in f10ecb8
| async func(sprite, script) { | |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace B with b
| 0x8B, |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace A with a
| 0x3A |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1064 to 1065 in f10ecb8
| }); | |
Block must not be padded by blank lines.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1064 to 1066 in f10ecb8
| }); | |
| }, |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| statements: [],// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ,
| [Lang.Blocks.zumiMiniLite_slow, 'SLOW'] |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: 'MID',// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: '30',// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace "Indicator" with 'Indicator'
| type: "Indicator", |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ,
| size: 14 |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace "zumiMiniLite_sense" with 'zumiMiniLite_sense'
| class: "zumiMiniLite_sense", |
Block must not be padded by blank lines.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1109 to 1111 in f10ecb8
| async func(sprite, script) { | |
| const SPEED_RAPID = 3; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1109 to 1110 in f10ecb8
| async func(sprite, script) { | |
This line has a length of 112. Maximum allowed is 100.
| let _spdV = (_spd === 'RAPID') ? SPEED_RAPID : (_spd === 'MID') ? SPEED_MID : SPEED_LOW; |
'_spdV' is never reassigned. Use 'const' instead.
| let _spdV = (_spd === 'RAPID') ? SPEED_RAPID : (_spd === 'MID') ? SPEED_MID : SPEED_LOW; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ·(_spd·===·'RAPID')·?·SPEED_RAPID·:·(_spd·===·'MID') with ⏎····························_spd·===·'RAPID'·?·SPEED_RAPID·:·_spd·===·'MID'
| let _spdV = (_spd === 'RAPID') ? SPEED_RAPID : (_spd === 'MID') ? SPEED_MID : SPEED_LOW; |
Do not nest ternary expressions.
| let _spdV = (_spd === 'RAPID') ? SPEED_RAPID : (_spd === 'MID') ? SPEED_MID : SPEED_LOW; |
Missing radix parameter.
| let _distV = parseInt(_dist); |
Expected { after 'if' condition.
| if (_dist < 10) _distV = 10; |
Expected { after 'if' condition.
| else if (_dist > 200) _distV = 200; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1129 to 1130 in f10ecb8
| }); | |
Block must not be padded by blank lines.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1129 to 1131 in f10ecb8
| }); | |
| }, |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| statements: [],// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ,
| [Lang.Blocks.zumiMiniLite_slow, 'SLOW'] |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: 'MID',// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace "Indicator" with 'Indicator'
| type: "Indicator", |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace "zumiMiniLite_sense" with 'zumiMiniLite_sense'
| class: "zumiMiniLite_sense", |
Block must not be padded by blank lines.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1168 to 1170 in f10ecb8
| func(sprite, script) { | |
| const SPEED_RAPID = 3; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1168 to 1169 in f10ecb8
| func(sprite, script) { | |
This line has a length of 112. Maximum allowed is 100.
| let _spdV = (_spd === 'RAPID') ? SPEED_RAPID : (_spd === 'MID') ? SPEED_MID : SPEED_LOW; |
'_spdV' is never reassigned. Use 'const' instead.
| let _spdV = (_spd === 'RAPID') ? SPEED_RAPID : (_spd === 'MID') ? SPEED_MID : SPEED_LOW; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ·(_spd·===·'RAPID')·?·SPEED_RAPID·:·(_spd·===·'MID') with ⏎····························_spd·===·'RAPID'·?·SPEED_RAPID·:·_spd·===·'MID'
| let _spdV = (_spd === 'RAPID') ? SPEED_RAPID : (_spd === 'MID') ? SPEED_MID : SPEED_LOW; |
Do not nest ternary expressions.
| let _spdV = (_spd === 'RAPID') ? SPEED_RAPID : (_spd === 'MID') ? SPEED_MID : SPEED_LOW; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ⏎····························CommandType.COMMAND_TRACE_INFINITE,⏎····························_spdV with CommandType.COMMAND_TRACE_INFINITE,·_spdV);
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1178 to 1180 in f10ecb8
| Entry.ZumiMiniLite.sendCommand( | |
| CommandType.COMMAND_TRACE_INFINITE, | |
| _spdV |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ····);⏎ with },
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1181 to 1182 in f10ecb8
| ); | |
Block must not be padded by blank lines.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1181 to 1183 in f10ecb8
| ); | |
| }, |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ····
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete },⏎
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1184 to 1185 in f10ecb8
| }, | |
| //-----------------------------------------------------------------------------------// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| fontColor: '#ffffff',// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| statements: [],// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: 'WHITE',// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: 'NORMAL',// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: 'ON',// |
Block must not be padded by blank lines.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1254 to 1256 in f10ecb8
| async func(sprite, script) { | |
| const _col = script.getValue('COLOR'); |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1254 to 1255 in f10ecb8
| async func(sprite, script) { | |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (_col·==·'RED')·&&·(_act·==·'ON') with _col·==·'RED'·&&·_act·==·'ON'
| if ((_col == 'RED') && (_act == 'ON')) _colorSend = LED_RED; |
Expected { after 'if' condition.
| if ((_col == 'RED') && (_act == 'ON')) _colorSend = LED_RED; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ((_col·==·'BLUE')·&&·(_act·==·'ON') with (_col·==·'BLUE'·&&·_act·==·'ON'
| else if ((_col == 'BLUE') && (_act == 'ON')) _colorSend = LED_BLUE; |
Expected { after 'if' condition.
| else if ((_col == 'BLUE') && (_act == 'ON')) _colorSend = LED_BLUE; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (_col·==·'GREEN')·&&·(_act·==·'ON')) with _col·==·'GREEN'·&&·_act·==·'ON')
| else if ((_col == 'GREEN') && (_act == 'ON')) _colorSend = LED_GREEN; |
Expected { after 'if' condition.
| else if ((_col == 'GREEN') && (_act == 'ON')) _colorSend = LED_GREEN; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (_col·==·'SKY_BLUE')·&&·(_act·==·'ON') with _col·==·'SKY_BLUE'·&&·_act·==·'ON'
| else if ((_col == 'SKY_BLUE') && (_act == 'ON')) _colorSend = LED_SKY_BLUE; |
Expected { after 'if' condition.
| else if ((_col == 'SKY_BLUE') && (_act == 'ON')) _colorSend = LED_SKY_BLUE; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ((_col·==·'PINK')·&&·(_act·==·'ON') with (_col·==·'PINK'·&&·_act·==·'ON'
| else if ((_col == 'PINK') && (_act == 'ON')) _colorSend = LED_PINK; |
Expected { after 'if' condition.
| else if ((_col == 'PINK') && (_act == 'ON')) _colorSend = LED_PINK; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (_col·==·'YELLOW')·&&·(_act·==·'ON')) with _col·==·'YELLOW'·&&·_act·==·'ON')
| else if ((_col == 'YELLOW') && (_act == 'ON')) _colorSend = LED_YELLOW; |
Expected { after 'if' condition.
| else if ((_col == 'YELLOW') && (_act == 'ON')) _colorSend = LED_YELLOW; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (_col·==·'WHITE')·&&·(_act·==·'ON') with _col·==·'WHITE'·&&·_act·==·'ON'
| else if ((_col == 'WHITE') && (_act == 'ON')) _colorSend = LED_WHITE; |
Expected { after 'if' condition.
| else if ((_col == 'WHITE') && (_act == 'ON')) _colorSend = LED_WHITE; |
Expected { after 'if' condition.
| if (_eff == 'NORMAL') _effectSend = LED_NORMAL; |
Expected { after 'if' condition.
| else if (_eff == 'BLINK') _effectSend = LED_BLINK; |
Expected { after 'if' condition.
| else if (_eff == 'FLICKER') _effectSend = LED_FLICKER; |
Expected { after 'if' condition.
| else if (_eff == 'DIMMING') _effectSend = LED_DIMMING; |
Expected { after 'if' condition.
| else if (_eff == 'SUNRISE') _effectSend = LED_SUNRISE; |
Expected { after 'if' condition.
| else if (_eff == 'SUNSET') _effectSend = LED_SUNSET; |
Expected { after 'if' condition.
| else if (_eff == 'RAINBOW') _effectSend = LED_RAINBOW; |
Expected space(s) after "if".
| if(_act == 'ON') _actSend = 1; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| if(_act == 'ON') _actSend = 1; |
Expected { after 'if' condition.
| if(_act == 'ON') _actSend = 1; |
Expected space(s) after "if".
| else if(_act == 'OFF') _actSend = 0; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| else if(_act == 'OFF') _actSend = 0; |
Expected { after 'if' condition.
| else if(_act == 'OFF') _actSend = 0; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ····
| Entry.ZumiMiniLite.sendCommand( |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ····
| CommandType.COMMAND_LED_CONTROL, |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ····
| _colorSend, |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ····
| _effectSend, |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ···························· with ································
| _actSend |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ····
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| statements: [],// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: 'RED_BTN',// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: 'PRESS',// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| params: ['RED_BTN','PRESS'], |
Block must not be padded by blank lines.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1355 to 1357 in f10ecb8
| func(sprite, script) { | |
| var result = false; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1356 to 1357 in f10ecb8
| var result = false; |
Unexpected var, use let or const instead.
| var result = false; |
Unexpected var, use let or const instead.
| var bStat = Entry.ZumiMiniLite.btn; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎·······················
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1363 to 1364 in f10ecb8
| if (_stat == 'PRESS') | |
| { |
Opening curly brace does not appear on the same line as controlling statement.
Expected space(s) after "if".
| if((_btn == 'RED_BTN')&&(bStat == 8)) result = true; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ((_btn·==·'RED_BTN')&&(bStat·==·8) with ·(_btn·==·'RED_BTN'·&&·bStat·==·8
| if((_btn == 'RED_BTN')&&(bStat == 8)) result = true; |
Operator '&&' must be spaced.
| if((_btn == 'RED_BTN')&&(bStat == 8)) result = true; |
Expected { after 'if' condition.
| if((_btn == 'RED_BTN')&&(bStat == 8)) result = true; |
Expected space(s) after "if".
| else if((_btn == 'BLUE_BTN') && (bStat == 4)) result = true; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ((_btn·==·'BLUE_BTN')·&&·(bStat·==·4) with ·(_btn·==·'BLUE_BTN'·&&·bStat·==·4
| else if((_btn == 'BLUE_BTN') && (bStat == 4)) result = true; |
Expected { after 'if' condition.
| else if((_btn == 'BLUE_BTN') && (bStat == 4)) result = true; |
Expected space(s) after "if".
| else if((_btn == 'GREEN_BTN') && (bStat == 2)) result = true; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ((_btn·==·'GREEN_BTN')·&&·(bStat·==·2) with ·(_btn·==·'GREEN_BTN'·&&·bStat·==·2
| else if((_btn == 'GREEN_BTN') && (bStat == 2)) result = true; |
Expected { after 'if' condition.
| else if((_btn == 'GREEN_BTN') && (bStat == 2)) result = true; |
Expected space(s) after "if".
| else if((_btn == 'YELLOW_BTN') && (bStat == 1)) result = true; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ((_btn·==·'YELLOW_BTN')·&&·(bStat·==·1) with ·(_btn·==·'YELLOW_BTN'·&&·bStat·==·1
| else if((_btn == 'YELLOW_BTN') && (bStat == 1)) result = true; |
Expected { after 'if' condition.
| else if((_btn == 'YELLOW_BTN') && (bStat == 1)) result = true; |
Expected { after 'else'.
| else result = false; |
Closing curly brace does not appear on the same line as the subsequent block.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ⏎························else·if·(_stat·==·'RELEASE')⏎······················· with ·else·if·(_stat·==·'RELEASE')
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1370 to 1372 in f10ecb8
| } | |
| else if (_stat == 'RELEASE') | |
| { |
Opening curly brace does not appear on the same line as controlling statement.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (_btn·==·'RED_BTN')·&&·(bStat·==·8) with _btn·==·'RED_BTN'·&&·bStat·==·8
| if ((_btn == 'RED_BTN') && (bStat == 8)) result = false; |
Expected { after 'if' condition.
| if ((_btn == 'RED_BTN') && (bStat == 8)) result = false; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (_btn·==·'BLUE_BTN')·&&·(bStat·==·4) with _btn·==·'BLUE_BTN'·&&·bStat·==·4
| else if ((_btn == 'BLUE_BTN') && (bStat == 4)) result = false; |
Expected { after 'if' condition.
| else if ((_btn == 'BLUE_BTN') && (bStat == 4)) result = false; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (_btn·==·'GREEN_BTN')·&&·(bStat·==·2) with _btn·==·'GREEN_BTN'·&&·bStat·==·2
| else if ((_btn == 'GREEN_BTN') && (bStat == 2)) result = false; |
Expected { after 'if' condition.
| else if ((_btn == 'GREEN_BTN') && (bStat == 2)) result = false; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (_btn·==·'YELLOW_BTN')·&&·(bStat·==·1) with _btn·==·'YELLOW_BTN'·&&·bStat·==·1
| else if ((_btn == 'YELLOW_BTN') && (bStat == 1)) result = false; |
Expected { after 'if' condition.
| else if ((_btn == 'YELLOW_BTN') && (bStat == 1)) result = false; |
Expected { after 'else'.
| else result = true; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ················
| //-----------------------------------------------------------------------------------// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| statements: [],// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: 'CAMERA',// |
Block must not be padded by blank lines.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1417 to 1419 in f10ecb8
| func(sprite, script) { | |
| const SCREEN_CAMERA = 1; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1418 to 1419 in f10ecb8
| const SCREEN_CAMERA = 1; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ;
| const _type = script.getStringField('TYPE', script) |
Missing semicolon.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1422 to 1423 in f10ecb8
| const _type = script.getStringField('TYPE', script) | |
'_typeV' is never reassigned. Use 'const' instead.
| let _typeV = (_type === 'CAMERA') ? SCREEN_CAMERA : SCREEN_EMOTION; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (_type·===·'CAMERA') with _type·===·'CAMERA'
| let _typeV = (_type === 'CAMERA') ? SCREEN_CAMERA : SCREEN_EMOTION; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ····························Entry.ZumiMiniLite.sendCommand(⏎································CommandType.COMMAND_SCREEN_TOGGLE,⏎································_typeV⏎···························· with ························Entry.ZumiMiniLite.sendCommand(CommandType.COMMAND_SCREEN_TOGGLE,·_typeV
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1426 to 1429 in f10ecb8
| Entry.ZumiMiniLite.sendCommand( | |
| CommandType.COMMAND_SCREEN_TOGGLE, | |
| _typeV | |
| ); |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| statements: [],// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: 'SMILE',// |
Block must not be padded by blank lines.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1476 to 1478 in f10ecb8
| func(sprite, script) { | |
| const EMO_BLINK = 3; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1477 to 1478 in f10ecb8
| const EMO_BLINK = 3; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ;
| const _type = script.getStringField('TYPE', script) |
Missing semicolon.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1494 to 1495 in f10ecb8
| const _type = script.getStringField('TYPE', script) | |
| let _typeV = 0; |
Expected { after 'if' condition.
| if (_type == 'SMILE') _typeV = EMO_SMILE; |
Expected { after 'if' condition.
| else if (_type == 'LOVE') _typeV = EMO_LOVE; |
Expected { after 'if' condition.
| else if (_type == 'SURP') _typeV = EMO_SURPRISE; |
Expected { after 'if' condition.
| else if (_type == 'NICE') _typeV = EMO_NICE; |
Expected { after 'if' condition.
| else if (_type == 'CHAOS') _typeV = EMO_CHAOS; |
Expected { after 'if' condition.
| else if (_type == 'CRASH') _typeV = EMO_CRASH; |
Expected { after 'if' condition.
| else if (_type == 'CANTBELIEVE') _typeV = EMO_CANTBELIEVE; |
Expected { after 'if' condition.
| else if (_type == 'SLEEP') _typeV = EMO_SLEEP; |
Expected { after 'if' condition.
| else if (_type == 'CRY') _typeV = EMO_CRY; |
Expected { after 'if' condition.
| else if (_type == 'WINK') _typeV = EMO_WINK; |
Expected { after 'if' condition.
| else if (_type == 'BLINK') _typeV = EMO_BLINK; |
Expected { after 'if' condition.
| else if (_type == 'SLEEPING') _typeV = EMO_SLEEPING; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ····························Entry.ZumiMiniLite.sendCommand(⏎································CommandType.COMMAND_EMOTION_CHANGE,⏎································_typeV with ························Entry.ZumiMiniLite.sendCommand(CommandType.COMMAND_EMOTION_CHANGE,·_typeV);
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1510 to 1512 in f10ecb8
| Entry.ZumiMiniLite.sendCommand( | |
| CommandType.COMMAND_EMOTION_CHANGE, | |
| _typeV |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ········); with },
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ····················}, with ················},⏎
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete },⏎⏎
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1515 to 1517 in f10ecb8
| }, | |
| //-----------------------------------------------------------------------------------// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| statements: [],// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: 'HUMAN',// |
Block must not be padded by blank lines.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1547 to 1549 in f10ecb8
| func(sprite, script) { | |
| var result = false; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1547 to 1548 in f10ecb8
| func(sprite, script) { | |
Unexpected var, use let or const instead.
| var result = false; |
Identifier 'sel_detect' is not in camel case.
| const sel_detect = script.getValue('FACE'); |
Expected space(s) after "if".
| if(sel_detect == 'HUMAN') |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (sel_detect·==·'HUMAN')⏎······················· with ·(sel_detect·==·'HUMAN')
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1553 to 1554 in f10ecb8
| if(sel_detect == 'HUMAN') | |
| { |
Identifier 'sel_detect' is not in camel case.
| if(sel_detect == 'HUMAN') |
Opening curly brace does not appear on the same line as controlling statement.
This line has a length of 104. Maximum allowed is 100.
| Entry.ZumiMiniLite.current_request |= RequestType.REQUEST_ENTRY_FACE_DETECT; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ⏎·······························
| Entry.ZumiMiniLite.current_request |= RequestType.REQUEST_ENTRY_FACE_DETECT; |
Expected space(s) after "if".
| if(Entry.ZumiMiniLite.zumiFaceDetected != 0) result = true; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| if(Entry.ZumiMiniLite.zumiFaceDetected != 0) result = true; |
Expected { after 'if' condition.
| if(Entry.ZumiMiniLite.zumiFaceDetected != 0) result = true; |
Expected { after 'else'.
| else result = false; |
Closing curly brace does not appear on the same line as the subsequent block.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ⏎························else·if(sel_detect·==·'CAT')⏎······················· with ·else·if·(sel_detect·==·'CAT')
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1559 to 1561 in f10ecb8
| } | |
| else if(sel_detect == 'CAT') | |
| { |
Expected space(s) after "if".
| else if(sel_detect == 'CAT') |
Identifier 'sel_detect' is not in camel case.
| else if(sel_detect == 'CAT') |
Opening curly brace does not appear on the same line as controlling statement.
This line has a length of 103. Maximum allowed is 100.
| Entry.ZumiMiniLite.current_request |= RequestType.REQUEST_ENTRY_CAT_DETECT; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ⏎·······························
| Entry.ZumiMiniLite.current_request |= RequestType.REQUEST_ENTRY_CAT_DETECT; |
Expected space(s) after "if".
| if(Entry.ZumiMiniLite.zumiCatDetected != 0) result = true; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| if(Entry.ZumiMiniLite.zumiCatDetected != 0) result = true; |
Expected { after 'if' condition.
| if(Entry.ZumiMiniLite.zumiCatDetected != 0) result = true; |
Expected { after 'else'.
| else result = false; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| statements: [],// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: 'RED',// |
Block must not be padded by blank lines.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1609 to 1611 in f10ecb8
| func(sprite, script) { | |
| const sen = script.getValue('PARAM'); |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1609 to 1610 in f10ecb8
| func(sprite, script) { | |
This line has a length of 101. Maximum allowed is 100.
| Entry.ZumiMiniLite.current_request |= RequestType.REQUEST_ENTRY_COLOR_DETECT; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ⏎···························
| Entry.ZumiMiniLite.current_request |= RequestType.REQUEST_ENTRY_COLOR_DETECT; |
Unexpected var, use let or const instead.
| var result = Entry.ZumiMiniLite.zumiColorDetected; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (result·==·0x00)·&&·(sen·==·'RED') with result·==·0x00·&&·sen·==·'RED'
| if ((result == 0x00) && (sen == 'RED')) result = true; |
Expected { after 'if' condition.
| if ((result == 0x00) && (sen == 'RED')) result = true; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (result·==·0x01)·&&·(sen·==·'ORANGE') with result·==·0x01·&&·sen·==·'ORANGE'
| else if ((result == 0x01) && (sen == 'ORANGE')) result = true; |
Expected { after 'if' condition.
| else if ((result == 0x01) && (sen == 'ORANGE')) result = true; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ((result·==·0x02)·&&·(sen·==·'YELLOW') with (result·==·0x02·&&·sen·==·'YELLOW'
| else if ((result == 0x02) && (sen == 'YELLOW')) result = true; |
Expected { after 'if' condition.
| else if ((result == 0x02) && (sen == 'YELLOW')) result = true; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (result·==·0x03)·&&·(sen·==·'GREEN')) with result·==·0x03·&&·sen·==·'GREEN')
| else if ((result == 0x03) && (sen == 'GREEN')) result = true; |
Expected { after 'if' condition.
| else if ((result == 0x03) && (sen == 'GREEN')) result = true; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (result·==·0x04)·&&·(sen·==·'CYAN') with result·==·0x04·&&·sen·==·'CYAN'
| else if ((result == 0x04) && (sen == 'CYAN')) result = true; |
Expected { after 'if' condition.
| else if ((result == 0x04) && (sen == 'CYAN')) result = true; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (result·==·0x05)·&&·(sen·==·'BLUE') with result·==·0x05·&&·sen·==·'BLUE'
| else if ((result == 0x05) && (sen == 'BLUE')) result = true; |
Expected { after 'if' condition.
| else if ((result == 0x05) && (sen == 'BLUE')) result = true; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ((result·==·0x06)·&&·(sen·==·'PURPLE') with (result·==·0x06·&&·sen·==·'PURPLE'
| else if ((result == 0x06) && (sen == 'PURPLE')) result = true; |
Expected { after 'if' condition.
| else if ((result == 0x06) && (sen == 'PURPLE')) result = true; |
Expected { after 'else'.
| else result = false; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| statements: [],// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: '15',// |
Block must not be padded by blank lines.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1655 to 1657 in f10ecb8
| func(sprite, script) { | |
| const _num = script.getValue('NUM'); |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1655 to 1656 in f10ecb8
| func(sprite, script) { | |
This line has a length of 101. Maximum allowed is 100.
| Entry.ZumiMiniLite.current_request |= RequestType.REQUEST_ENTRY_APRIL_DETECT; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ⏎···························
| Entry.ZumiMiniLite.current_request |= RequestType.REQUEST_ENTRY_APRIL_DETECT; |
Unexpected var, use let or const instead.
| var result = Entry.ZumiMiniLite.zumiMarkerDetected; |
Expected space(s) after "if".
| if(result <11) result +=1; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (result·<11)·result·+= with ·(result·<·11)·result·+=·
| if(result <11) result +=1; |
Operator '<' must be spaced.
| if(result <11) result +=1; |
Expected { after 'if' condition.
| if(result <11) result +=1; |
Operator '+=' must be spaced.
| if(result <11) result +=1; |
Expected space(s) after "if".
| else if(result == 14) result = 12; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| else if(result == 14) result = 12; |
Expected { after 'if' condition.
| else if(result == 14) result = 12; |
Expected space(s) after "if".
| else if(result == 15) result = 13; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| else if(result == 15) result = 13; |
Expected { after 'if' condition.
| else if(result == 15) result = 13; |
Expected space(s) after "if".
| else if(result == 16) result = 14; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| else if(result == 16) result = 14; |
Expected { after 'if' condition.
| else if(result == 16) result = 14; |
Expected space(s) after "if".
| else if(result == 18) result = 15; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| else if(result == 18) result = 15; |
Expected { after 'if' condition.
| else if(result == 18) result = 15; |
Expected space(s) after "if".
| else if(result == 19) result = 16; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| else if(result == 19) result = 16; |
Expected { after 'if' condition.
| else if(result == 19) result = 16; |
Expected space(s) after "if".
| else if(result == 20) result = 17; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| else if(result == 20) result = 17; |
Expected { after 'if' condition.
| else if(result == 20) result = 17; |
Expected space(s) after "if".
| if(_num == result) result = true; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| if(_num == result) result = true; |
Expected { after 'if' condition.
| if(_num == result) result = true; |
Expected { after 'else'.
| else result = false; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ················
| //-----------------------------------------------------------------------------------// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| fontColor: '#ffffff',// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| statements: [],// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: 'FL',// |
Expected space(s) after "if".
| if(_dir == 'FL') return Entry.ZumiMiniLite.senFL; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| if(_dir == 'FL') return Entry.ZumiMiniLite.senFL; |
Expected { after 'if' condition.
| if(_dir == 'FL') return Entry.ZumiMiniLite.senFL; |
Expected { after 'else'.
| else return Entry.ZumiMiniLite.senFR; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| fontColor: '#ffffff',// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| statements: [],// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: 'BL',// |
Expected space(s) after "if".
| if(_dir == 'BL') return Entry.ZumiMiniLite.senBL; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| if(_dir == 'BL') return Entry.ZumiMiniLite.senBL; |
Expected { after 'if' condition.
| if(_dir == 'BL') return Entry.ZumiMiniLite.senBL; |
Expected space(s) after "if".
| else if(_dir == 'BR') return Entry.ZumiMiniLite.senBR; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| else if(_dir == 'BR') return Entry.ZumiMiniLite.senBR; |
Expected { after 'if' condition.
| else if(_dir == 'BR') return Entry.ZumiMiniLite.senBR; |
Expected { after 'else'.
| else return Entry.ZumiMiniLite.senBC; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| statements: [],// |
Block must not be padded by blank lines.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1780 to 1782 in f10ecb8
| func(sprite, script) { | |
| var bStat = Entry.ZumiMiniLite.btn; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1781 to 1782 in f10ecb8
| var bStat = Entry.ZumiMiniLite.btn; |
Unexpected var, use let or const instead.
| var bStat = Entry.ZumiMiniLite.btn; |
Expected space(s) after "if".
| if(bStat == 8) bStat = 'R'; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| if(bStat == 8) bStat = 'R'; |
Expected { after 'if' condition.
| if(bStat == 8) bStat = 'R'; |
Expected space(s) after "if".
| else if(bStat == 4) bStat = 'B'; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| else if(bStat == 4) bStat = 'B'; |
Expected { after 'if' condition.
| else if(bStat == 4) bStat = 'B'; |
Expected space(s) after "if".
| else if(bStat == 2) bStat = 'G'; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| else if(bStat == 2) bStat = 'G'; |
Expected { after 'if' condition.
| else if(bStat == 2) bStat = 'G'; |
Expected space(s) after "if".
| else if(bStat == 1) bStat = 'Y'; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| else if(bStat == 1) bStat = 'Y'; |
Expected { after 'if' condition.
| else if(bStat == 1) bStat = 'Y'; |
Expected { after 'else'.
| else bStat = 'N'; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ················ with ····················
| color: EntryStatic.colorSet.block.default.HARDWARE, |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ················ with ····················
| outerLine: EntryStatic.colorSet.block.darken.HARDWARE, |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ····
| fontColor: '#ffffff', |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ················ with ····················
| skeleton: 'basic_string_field', |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ················statements:·[], with ····················statements:·[],·
| statements: [],// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ····
| params: [ |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ····
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ························ with ····························
| type: 'Indicator', |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ····
| img: 'block_icon/hardwarelite_icon.svg', |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ····
| size: 12, |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ····
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ····
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ····
| def: { |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ····
| type: 'zumiMiniLite_power_info', |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ················ with ····················
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ····
| class: 'info', |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ····
| isNotFor: ['ZumiMiniLite'], |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ················ with ····················
| func(sprite, script) { |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ····
| return Entry.ZumiMiniLite.battery; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ····
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| statements: [],// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: 'DETECT',// |
Block must not be padded by blank lines.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1849 to 1851 in f10ecb8
| func(sprite, script) { | |
| const sel_detect = script.getValue('PARAM'); |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1850 to 1851 in f10ecb8
| const sel_detect = script.getValue('PARAM'); |
Identifier 'sel_detect' is not in camel case.
| const sel_detect = script.getValue('PARAM'); |
Expected space(s) after "if".
| if(Entry.ZumiMiniLite.zumiFaceDetected == 0x00) |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (Entry.ZumiMiniLite.zumiFaceDetected·==·0x00)⏎······················· with ·(Entry.ZumiMiniLite.zumiFaceDetected·==·0x00)
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1859 to 1860 in f10ecb8
| if(Entry.ZumiMiniLite.zumiFaceDetected == 0x00) | |
| { |
Opening curly brace does not appear on the same line as controlling statement.
Expected space(s) after "if".
| if(sel_detect == 'DETECT') return false; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| if(sel_detect == 'DETECT') return false; |
Identifier 'sel_detect' is not in camel case.
| if(sel_detect == 'DETECT') return false; |
Expected { after 'if' condition.
| if(sel_detect == 'DETECT') return false; |
Expected space(s) after "if".
| else if(sel_detect == 'CX') return parseInt(-999); |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| else if(sel_detect == 'CX') return parseInt(-999); |
Identifier 'sel_detect' is not in camel case.
| else if(sel_detect == 'CX') return parseInt(-999); |
Expected { after 'if' condition.
| else if(sel_detect == 'CX') return parseInt(-999); |
Missing radix parameter.
| else if(sel_detect == 'CX') return parseInt(-999); |
Expected space(s) after "if".
| else if(sel_detect == 'CY') return parseInt(-999); |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| else if(sel_detect == 'CY') return parseInt(-999); |
Identifier 'sel_detect' is not in camel case.
| else if(sel_detect == 'CY') return parseInt(-999); |
Expected { after 'if' condition.
| else if(sel_detect == 'CY') return parseInt(-999); |
Missing radix parameter.
| else if(sel_detect == 'CY') return parseInt(-999); |
Closing curly brace does not appear on the same line as the subsequent block.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ⏎························else⏎······················· with ·else
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1864 to 1866 in f10ecb8
| } | |
| else | |
| { |
Opening curly brace does not appear on the same line as controlling statement.
Expected space(s) after "if".
| if(sel_detect == 'DETECT') return true; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (sel_detect·==·'DETECT')· with ·(sel_detect·==·'DETECT')
| if(sel_detect == 'DETECT') return true; |
Identifier 'sel_detect' is not in camel case.
| if(sel_detect == 'DETECT') return true; |
Expected { after 'if' condition.
| if(sel_detect == 'DETECT') return true; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ⏎····························else·if(sel_detect·==·'CX')⏎··························· with ····························else·if·(sel_detect·==·'CX')
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1868 to 1870 in f10ecb8
| else if(sel_detect == 'CX') | |
| { |
Expected space(s) after "if".
| else if(sel_detect == 'CX') |
Identifier 'sel_detect' is not in camel case.
| else if(sel_detect == 'CX') |
Opening curly brace does not appear on the same line as controlling statement.
Unexpected var, use let or const instead.
| var Xg = Entry.ZumiMiniLite.zumiFaceCenter[0]; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ((200·/·2)·-·Xg) with 200·/·2·-·Xg
| return ((200 / 2) - Xg) + 10; |
Closing curly brace does not appear on the same line as the subsequent block.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ⏎····························else·if(sel_detect·==·'CY')⏎··························· with ·else·if·(sel_detect·==·'CY')
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1873 to 1875 in f10ecb8
| } | |
| else if(sel_detect == 'CY') | |
| { |
Expected space(s) after "if".
| else if(sel_detect == 'CY') |
Identifier 'sel_detect' is not in camel case.
| else if(sel_detect == 'CY') |
Opening curly brace does not appear on the same line as controlling statement.
Unexpected var, use let or const instead.
| var Yg = Entry.ZumiMiniLite.zumiFaceCenter[1]; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ·((200·/·2)·-·Yg) with 200·/·2·-·Yg
| return ((200 / 2) - Yg) + 35; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| statements: [],// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: 'DETECT',// |
Block must not be padded by blank lines.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1916 to 1918 in f10ecb8
| func(sprite, script) { | |
| const sel_detect = script.getValue('PARAM'); |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1917 to 1918 in f10ecb8
| const sel_detect = script.getValue('PARAM'); |
Identifier 'sel_detect' is not in camel case.
| const sel_detect = script.getValue('PARAM'); |
Expected space(s) after "if".
| if(Entry.ZumiMiniLite.zumiCatDetected == 0x00) |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (Entry.ZumiMiniLite.zumiCatDetected·==·0x00)⏎······················· with ·(Entry.ZumiMiniLite.zumiCatDetected·==·0x00)
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1925 to 1926 in f10ecb8
| if(Entry.ZumiMiniLite.zumiCatDetected == 0x00) | |
| { |
Opening curly brace does not appear on the same line as controlling statement.
Expected space(s) after "if".
| if(sel_detect == 'DETECT') return false; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| if(sel_detect == 'DETECT') return false; |
Identifier 'sel_detect' is not in camel case.
| if(sel_detect == 'DETECT') return false; |
Expected { after 'if' condition.
| if(sel_detect == 'DETECT') return false; |
Expected space(s) after "if".
| else if(sel_detect == 'CX') return parseInt(-999); |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| else if(sel_detect == 'CX') return parseInt(-999); |
Identifier 'sel_detect' is not in camel case.
| else if(sel_detect == 'CX') return parseInt(-999); |
Expected { after 'if' condition.
| else if(sel_detect == 'CX') return parseInt(-999); |
Missing radix parameter.
| else if(sel_detect == 'CX') return parseInt(-999); |
Expected space(s) after "if".
| else if(sel_detect == 'CY') return parseInt(-999); |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| else if(sel_detect == 'CY') return parseInt(-999); |
Identifier 'sel_detect' is not in camel case.
| else if(sel_detect == 'CY') return parseInt(-999); |
Expected { after 'if' condition.
| else if(sel_detect == 'CY') return parseInt(-999); |
Missing radix parameter.
| else if(sel_detect == 'CY') return parseInt(-999); |
Closing curly brace does not appear on the same line as the subsequent block.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ⏎························else⏎······················· with ·else
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1930 to 1932 in f10ecb8
| } | |
| else | |
| { |
Opening curly brace does not appear on the same line as controlling statement.
Expected space(s) after "if".
| if(sel_detect == 'DETECT') return true; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (sel_detect·==·'DETECT')··return·true;⏎ with ·(sel_detect·==·'DETECT')·return·true;
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1933 to 1934 in f10ecb8
| if(sel_detect == 'DETECT') return true; | |
Identifier 'sel_detect' is not in camel case.
| if(sel_detect == 'DETECT') return true; |
Expected { after 'if' condition.
| if(sel_detect == 'DETECT') return true; |
Expected space(s) after "if".
| else if(sel_detect == 'CX') |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (sel_detect·==·'CX')⏎··························· with ·(sel_detect·==·'CX')
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1935 to 1936 in f10ecb8
| else if(sel_detect == 'CX') | |
| { |
Identifier 'sel_detect' is not in camel case.
| else if(sel_detect == 'CX') |
Opening curly brace does not appear on the same line as controlling statement.
Unexpected var, use let or const instead.
| var Xg = Entry.ZumiMiniLite.zumiCatCenter[0]; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ((200·/·2)·-·Xg) with 200·/·2·-·Xg
| return ((200 / 2) - Xg) + 20; |
Closing curly brace does not appear on the same line as the subsequent block.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ⏎····························else·if(sel_detect·==·'CY')⏎··························· with ·else·if·(sel_detect·==·'CY')
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1939 to 1941 in f10ecb8
| } | |
| else if(sel_detect == 'CY') | |
| { |
Expected space(s) after "if".
| else if(sel_detect == 'CY') |
Identifier 'sel_detect' is not in camel case.
| else if(sel_detect == 'CY') |
Opening curly brace does not appear on the same line as controlling statement.
Unexpected var, use let or const instead.
| var Yg = Entry.ZumiMiniLite.zumiCatCenter[1]; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ·((200·/·2)·-·Yg) with 200·/·2·-·Yg
| return ((200 / 2) - Yg) + 30; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| statements: [],// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: 'COLOR',// |
Block must not be padded by blank lines.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1982 to 1984 in f10ecb8
| func(sprite, script) { | |
| const sen = script.getValue('PARAM'); |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 1983 to 1984 in f10ecb8
| const sen = script.getValue('PARAM'); |
This line has a length of 101. Maximum allowed is 100.
| Entry.ZumiMiniLite.current_request |= RequestType.REQUEST_ENTRY_COLOR_DETECT; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ⏎···························
| Entry.ZumiMiniLite.current_request |= RequestType.REQUEST_ENTRY_COLOR_DETECT; |
Unexpected var, use let or const instead.
| var result = Entry.ZumiMiniLite.zumiColorDetected; |
Expected space(s) after "if".
| if((result == 0xFE) && (sen == 'COLOR')) result = 'NONE'; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ((result·==·0xFE)·&&·(sen·==·'COLOR') with ·(result·==·0xfe·&&·sen·==·'COLOR'
| if((result == 0xFE) && (sen == 'COLOR')) result = 'NONE'; |
Expected { after 'if' condition.
| if((result == 0xFE) && (sen == 'COLOR')) result = 'NONE'; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (result·==·0x00)·&&·(sen·==·'COLOR') with result·==·0x00·&&·sen·==·'COLOR'
| else if ((result == 0x00) && (sen == 'COLOR')) result = 'RED'; |
Expected { after 'if' condition.
| else if ((result == 0x00) && (sen == 'COLOR')) result = 'RED'; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ((result·==·0x01)·&&·(sen·==·'COLOR') with (result·==·0x01·&&·sen·==·'COLOR'
| else if ((result == 0x01) && (sen == 'COLOR')) result = 'ORANGE'; |
Expected { after 'if' condition.
| else if ((result == 0x01) && (sen == 'COLOR')) result = 'ORANGE'; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (result·==·0x02)·&&·(sen·==·'COLOR')) with result·==·0x02·&&·sen·==·'COLOR')
| else if ((result == 0x02) && (sen == 'COLOR')) result = 'YELLOW'; |
Expected { after 'if' condition.
| else if ((result == 0x02) && (sen == 'COLOR')) result = 'YELLOW'; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (result·==·0x03)·&&·(sen·==·'COLOR') with result·==·0x03·&&·sen·==·'COLOR'
| else if ((result == 0x03) && (sen == 'COLOR')) result = 'GREEN'; |
Expected { after 'if' condition.
| else if ((result == 0x03) && (sen == 'COLOR')) result = 'GREEN'; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ((result·==·0x04)·&&·(sen·==·'COLOR') with (result·==·0x04·&&·sen·==·'COLOR'
| else if ((result == 0x04) && (sen == 'COLOR')) result = 'CYAN'; |
Expected { after 'if' condition.
| else if ((result == 0x04) && (sen == 'COLOR')) result = 'CYAN'; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (result·==·0x05)·&&·(sen·==·'COLOR')) with result·==·0x05·&&·sen·==·'COLOR')
| else if ((result == 0x05) && (sen == 'COLOR')) result = 'BLUE'; |
Expected { after 'if' condition.
| else if ((result == 0x05) && (sen == 'COLOR')) result = 'BLUE'; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (result·==·0x06)·&&·(sen·==·'COLOR') with result·==·0x06·&&·sen·==·'COLOR'
| else if ((result == 0x06) && (sen == 'COLOR')) result = 'PURPLE'; |
Expected { after 'if' condition.
| else if ((result == 0x06) && (sen == 'COLOR')) result = 'PURPLE'; |
Unexpected var, use let or const instead.
| var Xg = Entry.ZumiMiniLite.zumiColorCenter[0]; |
Unexpected var, use let or const instead.
| var Yg = Entry.ZumiMiniLite.zumiColorCenter[1]; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace FE with fe
| if (result == 0xFE) result = -999; |
Expected { after 'if' condition.
| if (result == 0xFE) result = -999; |
Expected { after 'else'.
| else result = ((200 / 2) - Xg) +20; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ((200·/·2)·-·Xg)·+ with 200·/·2·-·Xg·+·
| else result = ((200 / 2) - Xg) +20; |
Operator '+' must be spaced.
| else result = ((200 / 2) - Xg) +20; |
Closing curly brace does not appear on the same line as the subsequent block.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎·······················
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 2008 to 2009 in f10ecb8
| } | |
| else if (sen == 'CY') { |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace FE with fe
| if (result == 0xFE) result = -999; |
Expected { after 'if' condition.
| if (result == 0xFE) result = -999; |
Expected { after 'else'.
| else result = ((200 / 2) - Yg) +35; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ((200·/·2)·-·Yg)·+ with 200·/·2·-·Yg·+·
| else result = ((200 / 2) - Yg) +35; |
Operator '+' must be spaced.
| else result = ((200 / 2) - Yg) +35; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| statements: [],// |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| value: 'ID',// |
Block must not be padded by blank lines.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 2051 to 2053 in f10ecb8
| func(sprite, script) { | |
| const sen = script.getValue('PARAM'); |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 2052 to 2053 in f10ecb8
| const sen = script.getValue('PARAM'); |
This line has a length of 101. Maximum allowed is 100.
| Entry.ZumiMiniLite.current_request |= RequestType.REQUEST_ENTRY_APRIL_DETECT; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ⏎···························
| Entry.ZumiMiniLite.current_request |= RequestType.REQUEST_ENTRY_APRIL_DETECT; |
Unexpected var, use let or const instead.
| var result = Entry.ZumiMiniLite.zumiMarkerDetected; |
Unexpected var, use let or const instead.
| var Xg = Entry.ZumiMiniLite.zumiMarkerCenter[0]; |
Unexpected var, use let or const instead.
| var Yg = Entry.ZumiMiniLite.zumiMarkerCenter[1]; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ⏎························if(sen·==·'ID')⏎······················· with ························if·(sen·==·'ID')
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 2065 to 2067 in f10ecb8
| if(sen == 'ID') | |
| { |
Expected space(s) after "if".
| if(sen == 'ID') |
Opening curly brace does not appear on the same line as controlling statement.
Expected space(s) after "if".
| if(result == 0xFE) result = -1; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (result·==·0xFE with ·(result·==·0xfe
| if(result == 0xFE) result = -1; |
Expected { after 'if' condition.
| if(result == 0xFE) result = -1; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎···························
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 2069 to 2070 in f10ecb8
| else | |
| { |
Opening curly brace does not appear on the same line as controlling statement.
Expected space(s) after "if".
| if(result <11) result +=1; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (result·<11)·result·+= with ·(result·<·11)·result·+=·
| if(result <11) result +=1; |
Operator '<' must be spaced.
| if(result <11) result +=1; |
Expected { after 'if' condition.
| if(result <11) result +=1; |
Operator '+=' must be spaced.
| if(result <11) result +=1; |
Expected space(s) after "if".
| else if(result == 14) result = 12; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| else if(result == 14) result = 12; |
Expected { after 'if' condition.
| else if(result == 14) result = 12; |
Expected space(s) after "if".
| else if(result == 15) result = 13; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| else if(result == 15) result = 13; |
Expected { after 'if' condition.
| else if(result == 15) result = 13; |
Expected space(s) after "if".
| else if(result == 16) result = 14; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| else if(result == 16) result = 14; |
Expected { after 'if' condition.
| else if(result == 16) result = 14; |
Expected space(s) after "if".
| else if(result == 18) result = 15; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| else if(result == 18) result = 15; |
Expected { after 'if' condition.
| else if(result == 18) result = 15; |
Expected space(s) after "if".
| else if(result == 19) result = 16; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| else if(result == 19) result = 16; |
Expected { after 'if' condition.
| else if(result == 19) result = 16; |
Expected space(s) after "if".
| else if(result == 20) result = 17; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| else if(result == 20) result = 17; |
Expected { after 'if' condition.
| else if(result == 20) result = 17; |
Closing curly brace does not appear on the same line as the subsequent block.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ⏎························else·if(sen·==·'CX')⏎······················· with ·else·if·(sen·==·'CX')
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 2079 to 2081 in f10ecb8
| } | |
| else if(sen == 'CX') | |
| { |
Expected space(s) after "if".
| else if(sen == 'CX') |
Opening curly brace does not appear on the same line as controlling statement.
Expected space(s) after "if".
| if(result == 0xFE) result = -999; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (result·==·0xFE with ·(result·==·0xfe
| if(result == 0xFE) result = -999; |
Expected { after 'if' condition.
| if(result == 0xFE) result = -999; |
Expected { after 'else'.
| else result = (200 / 2) - Xg; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (200·/·2) with 200·/·2
| else result = (200 / 2) - Xg; |
Closing curly brace does not appear on the same line as the subsequent block.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ⏎························else·if·(sen·==·'CY')⏎······················· with ·else·if·(sen·==·'CY')
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 2084 to 2086 in f10ecb8
| } | |
| else if (sen == 'CY') | |
| { |
Opening curly brace does not appear on the same line as controlling statement.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace FE with fe
| if (result == 0xFE) result = -999; |
Expected { after 'if' condition.
| if (result == 0xFE) result = -999; |
Expected { after 'else'.
| else result = (100 / 2) - Yg; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (100·/·2) with 100·/·2
| else result = (100 / 2) - Yg; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| ***************************************************************************************/ |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| makeData(msg){ |
Missing space before opening brace.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 2099 to 2101 in f10ecb8
| makeData(msg){ | |
| console.log(msg); | |
| } |
Block must not be padded by blank lines.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 2103 to 2105 in f10ecb8
| sendCommand(commandType, ...params) { | |
| const commandName = Object.keys(CommandType).find(key => CommandType[key] === commandType); |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ⏎············const·commandName·=·Object.keys(CommandType).find(key·=>·CommandType[key]·===·commandType with ············const·commandName·=·Object.keys(CommandType).find(⏎················(key)·=>·CommandType[key]·===·commandType⏎············
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 2104 to 2105 in f10ecb8
| const commandName = Object.keys(CommandType).find(key => CommandType[key] === commandType); |
This line has a length of 103. Maximum allowed is 100.
| const commandName = Object.keys(CommandType).find(key => CommandType[key] === commandType); |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace FF with ff
| payloadBytes[i + 1] = params[i] & 0xFF; |
Block must not be padded by blank lines.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 2125 to 2127 in f10ecb8
| transferData(payloadBytes) { | |
| const HEADER1 = 0x24; // '$' |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 2126 to 2127 in f10ecb8
| const HEADER1 = 0x24; // '$' |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace - with ·-·
| const fullMessageLength = 4 + payloadBytes.length-1; |
Operator '-' must be spaced.
| const fullMessageLength = 4 + payloadBytes.length-1; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| ***************************************************************************************/ |
Block must not be padded by blank lines.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 2149 to 2151 in f10ecb8
| _updateDataStore(dataArray) { | |
| const offset = this.HEADER_LENGTH; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 2149 to 2150 in f10ecb8
| _updateDataStore(dataArray) { | |
Closing curly brace does not appear on the same line as the subsequent block.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ⏎⏎············else·if·(this.receiverState·===·this.StateLoading.Loaded) with ·else·if·(this.receiverState·===·this.StateLoading.Loaded)·
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 2190 to 2192 in f10ecb8
| } | |
| else if (this.receiverState === this.StateLoading.Loaded){ |
Missing space before opening brace.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 2192 to 2194 in f10ecb8
| else if (this.receiverState === this.StateLoading.Loaded){ | |
| return this.receiverState; | |
| } |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace "Error:·Invalid·Start·Byte·1" with 'Error:·Invalid·Start·Byte·1'
| this.receiverMessage = "Error: Invalid Start Byte 1"; |
'receiverMessage' is not defined.
| console.log(receiverMessage); |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace "Error:·Invalid·Start·Byte·2" with 'Error:·Invalid·Start·Byte·2'
| this.receiverMessage = "Error: Invalid Start Byte 2"; |
'receiverMessage' is not defined.
| console.log(receiverMessage); |
Closing curly brace does not appear on the same line as the subsequent block.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎⏎···········
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 2222 to 2224 in f10ecb8
| } | |
| else if (this.receiverSection === this.Section.Data) { |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace (this.PACKET_DATA_LENGTH·-·1) with this.PACKET_DATA_LENGTH·-·1
| if (this.receiverIndex === (this.PACKET_DATA_LENGTH - 1)) { |
Closing curly brace does not appear on the same line as the subsequent block.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎⏎···········
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 2229 to 2231 in f10ecb8
| } | |
| else if (this.receiverSection === this.Section.End) { |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace "Success:·Receive·complete" with 'Success:·Receive·complete'
| this.receiverMessage = "Success: Receive complete"; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| runCommandBlock = async function(sendCommandFunc) { |
Split 'var' declarations into multiple statements.
| var exCnt = 1, tempCnt = 0; |
Unexpected var, use let or const instead.
| var exCnt = 1, tempCnt = 0; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ⏎···············
| var exCnt = 1, tempCnt = 0; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace resolve with (resolve)
| await new Promise(resolve => { |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| // console.log(" Block Skip Condition Met"); |
Closing curly brace does not appear on the same line as the subsequent block.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ⏎····················else⏎··················· with ·else
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 2273 to 2275 in f10ecb8
| } | |
| else | |
| { |
Opening curly brace does not appear on the same line as controlling statement.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| // console.log(" not Block Skip Condition"); |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace resolve with (resolve)
| await new Promise(resolve => { |
Expected space(s) after "if".
| if((currentStep == STATUS_WAIT) && (hardwareStatus === HW_READY)) |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ((currentStep·==·STATUS_WAIT)·&&·(hardwareStatus·===·HW_READY))⏎······················· with ·(currentStep·==·STATUS_WAIT·&&·hardwareStatus·===·HW_READY)
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 2291 to 2292 in f10ecb8
| if((currentStep == STATUS_WAIT) && (hardwareStatus === HW_READY)) | |
| { |
Opening curly brace does not appear on the same line as controlling statement.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ····
| currentStep = STATUS_SENDING; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ····}⏎····················else·if·((currentStep·==·STATUS_WAIT)·&&·(hardwareStatus·==·HW_PROCESSING))⏎······················· with }·else·if·(currentStep·==·STATUS_WAIT·&&·hardwareStatus·==·HW_PROCESSING)
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 2294 to 2296 in f10ecb8
| } | |
| else if ((currentStep == STATUS_WAIT) && (hardwareStatus == HW_PROCESSING)) | |
| { |
Closing curly brace does not appear on the same line as the subsequent block.
Opening curly brace does not appear on the same line as controlling statement.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ····
| currentStep = STATUS_WAIT; |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ····
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ⏎····························if·(hardwareStatus·===·HW_READY)⏎··························· with ····························if·(hardwareStatus·===·HW_READY)
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 2306 to 2308 in f10ecb8
| if (hardwareStatus === HW_READY) | |
| { |
Opening curly brace does not appear on the same line as controlling statement.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ·
| sendCommandFunc(); // ← 여기만 명령 함수 주입 |
Closing curly brace does not appear on the same line as the subsequent block.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎·······························
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 2312 to 2313 in f10ecb8
| } | |
| else { |
Closing curly brace does not appear on the same line as the subsequent block.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ⏎····························else·if·(hardwareStatus·===·HW_PROCESSING)⏎··························· with ·else·if·(hardwareStatus·===·HW_PROCESSING)
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 2318 to 2320 in f10ecb8
| } | |
| else if (hardwareStatus === HW_PROCESSING) | |
| { |
Opening curly brace does not appear on the same line as controlling statement.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| }, 50);//650 |
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 2335 to 2336 in f10ecb8
| }; | |
Block must not be padded by blank lines.
entryjs/src/playground/blocks/hardwareLite/block_robolink_ZumiMini_lite.js
Lines 2335 to 2337 in f10ecb8
| }; | |
| })(); |
| COMMAND_MOTOR_CALIBRATION_START: 247, | ||
| }; | ||
|
|
||
| const CommandType_DATA_LENGTH = { |
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.
|
|
||
| const RequestType = { |
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.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ⏎
| const RequestType = { | |
| const RequestType = { |
|
|
||
| DATA_DETECT_CAT: 23, | ||
| DATA_DETECT_CAT_X: 24, | ||
| DATA_DETECT_CAT_Y: 25 |
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.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ,
| DATA_DETECT_CAT_Y: 25 | |
| DATA_DETECT_CAT_Y: 25, |
| DATA_DETECT_CAT_Y: 25 | ||
| }; | ||
|
|
||
| (function() { |
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.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ·
| (function() { | |
| (function () { |
| 'zumiMiniLite_cat_face_detector', | ||
| 'zumiMiniLite_color_detector', | ||
| 'zumiMiniLite_april_detector', | ||
| 'zumiMiniLite_power_info' |
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.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert ,
| 'zumiMiniLite_power_info' | |
| 'zumiMiniLite_power_info', |
| } | ||
| else | ||
| { | ||
| const sendACK= [0x24,0x52,0x00,this.current_request,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF]; //stop |
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.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace const·sendACK=·[0x24,0x52,0x00,this.current_request,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF with ····0x52,⏎························0x00,⏎························this.current_request,⏎························0x00,⏎························0x00,⏎························0x00,⏎························0x00,⏎························0x00,⏎························0xff,⏎························0xff,⏎····················
| const sendACK= [0x24,0x52,0x00,this.current_request,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF]; //stop | |
| 0x52, | |
| 0x00, | |
| this.current_request, | |
| 0x00, | |
| 0x00, | |
| 0x00, | |
| 0x00, | |
| 0x00, | |
| 0xff, | |
| 0xff, | |
| ]; //stop |
| } | ||
| else | ||
| { | ||
| const sendACK= [0x24,0x52,0x00,this.current_request,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF]; //stop |
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.
Operator '=' must be spaced.
| const sendACK= [0x24,0x52,0x00,this.current_request,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF]; //stop | |
| const sendACK = [0x24,0x52,0x00,this.current_request,0x00,0x00,0x00,0x00,0x00,0xFF,0xFF]; //stop |
| } | ||
| else |
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.
Closing curly brace does not appear on the same line as the subsequent block.
| } | |
| else | |
| } else |
| } | ||
| else | ||
| { | ||
| if((dataToSend[2] == CommandType.COMMAND_MOTOR1_INFINITE) || (dataToSend[2] == CommandType.COMMAND_MOTOR2_INFINITE)) |
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.
🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ⏎············else⏎············{⏎················if((dataToSend[2]·==·CommandType.COMMAND_MOTOR1_INFINITE)·||·(dataToSend[2]·==·CommandType.COMMAND_MOTOR2_INFINITE)) with ·else·{⏎················if·(⏎····················dataToSend[2]·==·CommandType.COMMAND_MOTOR1_INFINITE·||⏎····················dataToSend[2]·==·CommandType.COMMAND_MOTOR2_INFINITE
| } | |
| else | |
| { | |
| if((dataToSend[2] == CommandType.COMMAND_MOTOR1_INFINITE) || (dataToSend[2] == CommandType.COMMAND_MOTOR2_INFINITE)) | |
| } else { | |
| if ( | |
| dataToSend[2] == CommandType.COMMAND_MOTOR1_INFINITE || | |
| dataToSend[2] == CommandType.COMMAND_MOTOR2_INFINITE |
| else | ||
| { |
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.
Opening curly brace does not appear on the same line as controlling statement.
| else | |
| { | |
| else { |
10126
entry-hw : entrylabs/entry-hw#853 (comment)