|
1 |
| -import {ValidationChecks} from 'langium'; |
2 |
| -import {SafeDsAstType} from '../generated/ast.js'; |
3 |
| -import type {SafeDsServices} from '../safe-ds-module.js'; |
4 |
| -import {nameMustNotStartWithBlockLambdaPrefix, nameShouldHaveCorrectCasing} from './names.js'; |
| 1 | +import { ValidationChecks } from 'langium'; |
| 2 | +import { SafeDsAstType } from '../generated/ast.js'; |
| 3 | +import type { SafeDsServices } from '../safe-ds-module.js'; |
| 4 | +import { nameMustNotStartWithBlockLambdaPrefix, nameShouldHaveCorrectCasing } from './names.js'; |
5 | 5 | import {
|
6 | 6 | annotationParameterListShouldNotBeEmpty,
|
7 | 7 | assignmentShouldHaveMoreThanWildcardsAsAssignees,
|
8 |
| - classBodyShouldNotBeEmpty, constraintListShouldNotBeEmpty, |
| 8 | + classBodyShouldNotBeEmpty, |
| 9 | + constraintListShouldNotBeEmpty, |
9 | 10 | enumBodyShouldNotBeEmpty,
|
10 | 11 | enumVariantParameterListShouldNotBeEmpty,
|
11 | 12 | functionResultListShouldNotBeEmpty,
|
12 | 13 | segmentResultListShouldNotBeEmpty,
|
13 | 14 | typeParameterListShouldNotBeEmpty,
|
14 | 15 | unionTypeShouldNotHaveASingularTypeArgument,
|
15 | 16 | } from './style.js';
|
16 |
| -import {templateStringMustHaveExpressionBetweenTwoStringParts} from './other/expressions/templateStrings.js'; |
17 |
| -import {yieldMustNotBeUsedInPipeline} from './other/statements/assignments.js'; |
18 |
| -import {attributeMustHaveTypeHint, parameterMustHaveTypeHint, resultMustHaveTypeHint} from './types.js'; |
19 |
| -import {moduleDeclarationsMustMatchFileKind, moduleWithDeclarationsMustStatePackage} from './other/modules.js'; |
20 |
| -import { |
21 |
| - typeParameterConstraintLeftOperandMustBeOwnTypeParameter |
22 |
| -} from './other/declarations/typeParameterConstraints.js'; |
| 17 | +import { templateStringMustHaveExpressionBetweenTwoStringParts } from './other/expressions/templateStrings.js'; |
| 18 | +import { yieldMustNotBeUsedInPipeline } from './other/statements/assignments.js'; |
| 19 | +import { attributeMustHaveTypeHint, parameterMustHaveTypeHint, resultMustHaveTypeHint } from './types.js'; |
| 20 | +import { moduleDeclarationsMustMatchFileKind, moduleWithDeclarationsMustStatePackage } from './other/modules.js'; |
| 21 | +import { typeParameterConstraintLeftOperandMustBeOwnTypeParameter } from './other/declarations/typeParameterConstraints.js'; |
23 | 22 |
|
24 | 23 | /**
|
25 | 24 | * Register custom validation checks.
|
@@ -53,5 +52,4 @@ export const registerValidationChecks = function (services: SafeDsServices) {
|
53 | 52 | /**
|
54 | 53 | * Implementation of custom validations.
|
55 | 54 | */
|
56 |
| -export class SafeDsValidator { |
57 |
| -} |
| 55 | +export class SafeDsValidator {} |
0 commit comments