From 3e373537613624e3cdc5058919aeb98f6bd9b1b6 Mon Sep 17 00:00:00 2001 From: megalinter-bot <129584137+megalinter-bot@users.noreply.github.com> Date: Mon, 16 Oct 2023 12:43:02 +0000 Subject: [PATCH] style: apply automated linter fixes --- src/language/validation/other/modules.ts | 14 +++++++------- src/language/validation/safe-ds-validator.ts | 3 ++- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/language/validation/other/modules.ts b/src/language/validation/other/modules.ts index 1f14f13e6..2dcc94590 100644 --- a/src/language/validation/other/modules.ts +++ b/src/language/validation/other/modules.ts @@ -1,6 +1,6 @@ -import {ValidationAcceptor} from 'langium'; -import {isSdsDeclaration, isSdsPipeline, isSdsSegment, SdsDeclaration, SdsModule} from '../../generated/ast.js'; -import {isInPipelineFile, isInStubFile} from '../../helpers/fileExtensions.js'; +import { ValidationAcceptor } from 'langium'; +import { isSdsDeclaration, isSdsPipeline, isSdsSegment, SdsDeclaration, SdsModule } from '../../generated/ast.js'; +import { isInPipelineFile, isInStubFile } from '../../helpers/fileExtensions.js'; export const CODE_MODULE_MISSING_PACKAGE = 'module/missing-package'; export const CODE_MODULE_FORBIDDEN_IN_PIPELINE_FILE = 'module/forbidden-in-pipeline-file'; @@ -46,9 +46,9 @@ export const moduleDeclarationsMustMatchFileKind = (node: SdsModule, accept: Val }; export const declarationIsAllowedInPipelineFile = (declaration: SdsDeclaration): boolean => { - return isSdsPipeline(declaration) || isSdsSegment(declaration) -} + return isSdsPipeline(declaration) || isSdsSegment(declaration); +}; export const declarationIsAllowedInStubFile = (declaration: SdsDeclaration): boolean => { - return !isSdsPipeline(declaration) && !isSdsSegment(declaration) -} + return !isSdsPipeline(declaration) && !isSdsSegment(declaration); +}; diff --git a/src/language/validation/safe-ds-validator.ts b/src/language/validation/safe-ds-validator.ts index 1afecb66c..93547e3f9 100644 --- a/src/language/validation/safe-ds-validator.ts +++ b/src/language/validation/safe-ds-validator.ts @@ -9,7 +9,8 @@ import { enumMustContainUniqueNames, enumVariantMustContainUniqueNames, expressionLambdaMustContainUniqueNames, - functionMustContainUniqueNames, moduleMemberMustHaveNameThatIsUniqueInPackage, + functionMustContainUniqueNames, + moduleMemberMustHaveNameThatIsUniqueInPackage, moduleMustContainUniqueNames, nameMustNotStartWithBlockLambdaPrefix, nameShouldHaveCorrectCasing,