Sha256: 34e18532ae543b5def9c5b53cf8c4dba562bb5f74b26e7c0e90a7cdf81f15a9b
Contents?: true
Size: 632 Bytes
Versions: 45
Compression:
Stored size: 632 Bytes
Contents
'use strict'; var helpers = require('../helpers'); module.exports = { 'name': 'no-extends', 'defaults': {}, 'detect': function (ast, parser) { var result = []; ast.traverseByType('atkeyword', function (keyword) { keyword.traverse(function (item) { if (item.content === 'extend') { result = helpers.addUnique(result, { 'ruleId': parser.rule.name, 'line': item.start.line, 'column': item.start.column, 'message': '@extend not allowed', 'severity': parser.severity }); } }); }); return result; } };
Version data entries
45 entries across 45 versions & 2 rubygems