Sha256: 5cd5a8e0722da723e3d0d1c989c796c4dcce454103f66040552fd8fef560151c
Contents?: true
Size: 537 Bytes
Versions: 8
Compression:
Stored size: 537 Bytes
Contents
require 'sass' module SCSSLint class Linter::EmptyRuleLinter < Linter include LinterRegistry class << self def run(engine) lints = [] engine.tree.each do |node| if node.is_a?(Sass::Tree::RuleNode) lints << check_empty_rule(node) end end lints.compact end def description 'Empty rule' end private def check_empty_rule(rule_node) create_lint(rule_node) if rule_node.children.empty? end end end end
Version data entries
8 entries across 8 versions & 1 rubygems