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 88698bf commit 79610f7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 17 deletions.
24 changes: 8 additions & 16 deletions src/language/validation/other/expressions/references.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,23 +65,15 @@ export const referenceMustNotBeStaticClassOrEnumReference = (node: SdsReference,

// Static reference to the class or enum
if (isSdsClass(target)) {
accept(
'error',
"A class must not be statically referenced.",
{
node,
code: CODE_REFERENCE_STATIC_CLASS_REFERENCE,
},
);
accept('error', 'A class must not be statically referenced.', {
node,
code: CODE_REFERENCE_STATIC_CLASS_REFERENCE,
});
} else if (isSdsEnum(target)) {
accept(
'error',
"An enum must not be statically referenced.",
{
node,
code: CODE_REFERENCE_STATIC_ENUM_REFERENCE,
},
);
accept('error', 'An enum must not be statically referenced.', {
node,
code: CODE_REFERENCE_STATIC_ENUM_REFERENCE,
});
}
};

Expand Down
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 @@ -59,7 +59,8 @@ import {
} from './other/types/callableTypes.js';
import { argumentListMustNotHavePositionalArgumentsAfterNamedArguments } from './other/argumentLists.js';
import {
referenceMustNotBeFunctionPointer, referenceMustNotBeStaticClassOrEnumReference,
referenceMustNotBeFunctionPointer,
referenceMustNotBeStaticClassOrEnumReference,
referenceTargetMustNotBeAnnotationPipelineOrSchema,
} from './other/expressions/references.js';
import {
Expand Down

0 comments on commit 79610f7

Please sign in to comment.