AI tests #175
Annotations
6 errors and 11 warnings
build:
server/src/bot/bots/Futuro.ts#L33
'node' is never reassigned. Use 'const' instead
|
build:
server/src/bot/bots/Futuro.ts#L63
Immediately return this expression instead of assigning it to the temporary variable "result"
|
build:
server/src/bot/bots/Futuro.ts#L67
Unsafe usage of optional chaining. If it short-circuits with 'undefined' the evaluation will throw TypeError
|
build:
server/src/bot/bots/Futuro.ts#L68
Unsafe usage of optional chaining. If it short-circuits with 'undefined' the evaluation will throw TypeError
|
build:
server/src/bot/bots/utils.ts#L7
Expected { after 'if' condition
|
build
Process completed with exit code 1.
|
build
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
build:
server/src/bot/simulation/simulation.ts#L113
Refactor this function to reduce its Cognitive Complexity from 47 to the 20 allowed
|
build:
server/src/game/game.ts#L41
Refactor this function to reduce its Cognitive Complexity from 26 to the 20 allowed
|
build:
server/src/game/game.ts#L138
Refactor this function to reduce its Cognitive Complexity from 35 to the 20 allowed
|
build:
server/src/game/game.ts#L298
Refactor this function to reduce its Cognitive Complexity from 25 to the 20 allowed
|
build:
server/src/game/generateMovesUtils.ts#L7
Refactor this function to reduce its Cognitive Complexity from 32 to the 20 allowed
|
build:
server/src/game/generateMovesUtils.ts#L205
Refactor this function to reduce its Cognitive Complexity from 22 to the 20 allowed
|
build:
server/src/game/generateMovesUtils.ts#L297
Refactor this function to reduce its Cognitive Complexity from 45 to the 20 allowed
|
build:
server/src/game/performMoveUtils.ts#L113
Refactor this function to reduce its Cognitive Complexity from 25 to the 20 allowed
|
build:
server/src/game/statistic.ts#L44
Refactor this function to reduce its Cognitive Complexity from 30 to the 20 allowed
|
build:
server/src/test/captureCompare.ts#L16
Refactor this function to reduce its Cognitive Complexity from 27 to the 20 allowed
|