UNPKG

gherkin-lint-ts

Version:

Gherkin features linter written in Typescript

19 lines 632 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.run = exports.name = void 0; exports.name = "no-unnamed-features"; function run(feature) { var _a; const errors = []; if (!feature || !feature.name) { const location = ((_a = feature === null || feature === void 0 ? void 0 : feature.location) === null || _a === void 0 ? void 0 : _a.line) || 0; errors.push({ message: "Missing Feature name", rule: exports.name, line: location, }); } return errors; } exports.run = run; //# sourceMappingURL=no-unnamed-features.js.map