refactor(core): Lint for cyclomatic complexity in BE packages (no-changelog) (#9111)

This commit is contained in:
Iván Ovejero
2024-04-10 14:02:02 +02:00
committed by GitHub
parent 9eab357b75
commit a3b59843d5
31 changed files with 40 additions and 1 deletions

View File

@@ -154,7 +154,7 @@ export class WorkflowExecute {
// IMPORTANT: Do not add "async" to this function, it will then convert the
// PCancelable to a regular Promise and does so not allow canceling
// active executions anymore
// eslint-disable-next-line @typescript-eslint/promise-function-async
// eslint-disable-next-line @typescript-eslint/promise-function-async, complexity
runPartialWorkflow(
workflow: Workflow,
runData: IRunData,
@@ -371,6 +371,7 @@ export class WorkflowExecute {
}
}
// eslint-disable-next-line complexity
addNodeToBeExecuted(
workflow: Workflow,
connectionData: IConnection,
@@ -836,6 +837,7 @@ export class WorkflowExecute {
setTimeout(() => resolve(fullRunData), 10);
});
// eslint-disable-next-line complexity
const returnPromise = (async () => {
try {
if (!this.additionalData.restartExecutionId) {