UNPKG

gplint

Version:

A Gherkin linter/validator written in Javascript.

25 lines 704 B
export const name = 'no-unnamed-features'; export function run({ feature }) { const errors = []; if (!feature?.name) { const location = feature ? feature.location : { line: 0, column: 0 }; errors.push({ message: 'Missing Feature name', rule: name, line: location.line, column: location.column, }); } return errors; } export const documentation = { description: 'Disallows empty Feature name.', examples: [{ title: 'Example', description: 'Enable rule', config: { [name]: 'error', } }], }; //# sourceMappingURL=no-unnamed-features.js.map