Skip to content

Commit

Permalink
style: apply automated linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
megalinter-bot committed Oct 16, 2023
1 parent b3d7727 commit 3e37353
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/language/validation/other/modules.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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);
};
3 changes: 2 additions & 1 deletion src/language/validation/safe-ds-validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import {
enumMustContainUniqueNames,
enumVariantMustContainUniqueNames,
expressionLambdaMustContainUniqueNames,
functionMustContainUniqueNames, moduleMemberMustHaveNameThatIsUniqueInPackage,
functionMustContainUniqueNames,
moduleMemberMustHaveNameThatIsUniqueInPackage,
moduleMustContainUniqueNames,
nameMustNotStartWithBlockLambdaPrefix,
nameShouldHaveCorrectCasing,
Expand Down

0 comments on commit 3e37353

Please sign in to comment.