MCPcopy Create free account
hub / github.com/appium/appium / validate

Method validate

packages/docutils/lib/validate.ts:161–179  ·  view source on GitHub ↗

* Runs the configured validations, then resets internal state upon completion or rejection.

()

Source from the content-addressed store, hash-verified

159 * Runs the configured validations, then resets internal state upon completion or rejection.
160 */
161 public async validate() {
162 try {
163 this.emit(DocutilsValidator.BEGIN, [...this.validations]);
164
165 if (this.validations.has(NAME_PYTHON)) {
166 await this.validatePythonVersion();
167 await this.validatePythonDeps();
168 }
169
170 if (this.validations.has(NAME_MKDOCS)) {
171 await this.validateMkDocs();
172 await this.validateMkDocsConfig();
173 }
174
175 this.emit(DocutilsValidator.END, this.emittedErrors.size);
176 } finally {
177 this.reset();
178 }
179 }
180
181 /**
182 * If a thing like `err` has not already been emitted, emit

Callers 1

handlerFunction · 0.45

Calls 6

validatePythonVersionMethod · 0.95
validatePythonDepsMethod · 0.95
validateMkDocsMethod · 0.95
validateMkDocsConfigMethod · 0.95
resetMethod · 0.95
emitMethod · 0.80

Tested by

no test coverage detected