yaml-language-server
Version:
13 lines (12 loc) • 600 B
TypeScript
import type { TextDocument } from 'vscode-languageserver-textdocument';
import { Diagnostic } from 'vscode-languageserver-types';
import type { SingleYAMLDocument } from '../../parser/yaml-documents';
import type { LanguageSettings } from '../../yamlLanguageService';
import type { AdditionalValidator } from './types';
export declare class YAMLStyleValidator implements AdditionalValidator {
private forbidSequence;
private forbidMapping;
constructor(settings: LanguageSettings);
validate(document: TextDocument, yamlDoc: SingleYAMLDocument): Diagnostic[];
private getRangeOf;
}