Skip to content

temp block add

temp block add #738

Triggered via pull request November 21, 2023 02:23
Status Success
Total duration 2m 2s
Artifacts

eslint_reviewdog.yml

on: pull_request
runner / eslint
1m 53s
runner / eslint
Fit to window
Zoom out
Zoom in

Annotations

5 warnings
runner / eslint: app/modules/runcoding.js#L264
[eslint] reported by reviewdog 🐶 Expected indentation of 0 spaces but found 1. Raw Output: {"ruleId":"indent","severity":1,"message":"Expected indentation of 0 spaces but found 1.","line":264,"column":1,"nodeType":"Line","messageId":"wrongIndentation","endLine":264,"endColumn":2,"fix":{"range":[6932,6933],"text":""}}
runner / eslint: app/modules/runcoding.js#L272
[eslint] reported by reviewdog 🐶 Unexpected function expression. Raw Output: {"ruleId":"prefer-arrow-callback","severity":1,"message":"Unexpected function expression.","line":272,"column":19,"nodeType":"FunctionExpression","endLine":330,"endColumn":6,"fix":{"range":[7119,8838],"text":"(data) => {\n if (data.length <= 4 || data[0] !== 255 || data[1] !== 85) {\n return;\n }\n var readData = data.subarray(2, data.length);\n\n var value;\n switch (readData[0]) {\n case self.sensorValueSize.FLOAT: {\n value = new Buffer(readData.subarray(1, 5)).readFloatLE();\n value = Math.round(value * 100) / 100;\n break;\n }\n case self.sensorValueSize.SHORT: {\n value = new Buffer(readData.subarray(1, 3)).readInt16LE();\n break;\n }\n default: {\n value = 0;\n break;\n }\n }\n\n var type = readData[readData.length - 1];\n var port = readData[readData.length - 2];\n\n \n\n \n switch (type) {\n case self.sensorTypes.DIGITAL: {\n self.sensorData.DIGITAL[port] = value;\n break;\n }\n case self.sensorTypes.ANALOG: {\n self.sensorData.ANALOG[port] = value;\n break;\n }\n case self.sensorTypes.PULSEIN: {\n self.sensorData.PULSEIN[port] = value;\n break;\n }\n case self.sensorTypes.ULTRASONIC: {\n self.sensorData.ULTRASONIC = value;\n break;\n }\n case self.sensorTypes.TIMER: {\n self.sensorData.TIMER = value;\n break;\n }\n case self.sensorTypes.TEMPCHECK: {\n self.sensorData.TEMPCHECK = value;\n break;\n }\n default: {\n break;\n }\n }\n }"}}
runner / eslint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/[email protected]. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
runner / eslint
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
runner / eslint
The `save-state` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/