Class: SCSSLint::Linter::SpaceAfterComment
- Inherits:
-
SCSSLint::Linter
- Object
- Sass::Tree::Visitors::Base
- SCSSLint::Linter
- SCSSLint::Linter::SpaceAfterComment
- Includes:
- SCSSLint::LinterRegistry
- Defined in:
- lib/scss_lint/linter/space_after_comment.rb
Overview
Checks for a space after comment literals
Constant Summary
Constants included from Utils
Instance Attribute Summary
Attributes inherited from SCSSLint::Linter
Instance Method Summary collapse
Methods included from SCSSLint::LinterRegistry
extract_linters_from, included
Methods inherited from SCSSLint::Linter
inherited, #initialize, #name, #run
Methods included from Utils
#color?, #color_hex?, #color_keyword?, #color_keyword_to_code, #else_node?, #extract_string_selectors, #node_ancestor, #node_siblings, #pluralize, #previous_node, #remove_quoted_strings, #same_position?
Methods included from SelectorVisitor
Constructor Details
This class inherits a constructor from SCSSLint::Linter
Instance Method Details
#visit_comment(node) ⇒ Object
6 7 8 9 10 |
# File 'lib/scss_lint/linter/space_after_comment.rb', line 6 def visit_comment(node) source = source_from_range(node.source_range).strip check_method = "check_#{node.type}_comment" send(check_method, node, source) end |