gems.scss_lint-0.57.1.lib.scss_lint.linter.empty_rule.rb Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sass-maven-plugin Show documentation
Show all versions of sass-maven-plugin Show documentation
A Maven Plugin that compiles Sass files.
The newest version!
module SCSSLint
# Checks for rules with no content.
class Linter::EmptyRule < Linter
include LinterRegistry
def visit_rule(node)
add_lint(node, 'Empty rule') if node.children.empty?
yield # Continue linting children
end
end
end