lib/scss_lint/linter/empty_rule.rb in scss-lint-0.20.3 vs lib/scss_lint/linter/empty_rule.rb in scss-lint-0.21.0
- old
+ new
@@ -2,14 +2,10 @@
# Checks for rules with no content.
class Linter::EmptyRule < Linter
include LinterRegistry
def visit_rule(node)
- add_lint(node) if node.children.empty?
+ add_lint(node, 'Empty rule') if node.children.empty?
yield # Continue linting children
- end
-
- def description
- 'Empty rule'
end
end
end