Module: SCSSLint::LinterRegistry
- Included in:
- SCSSLint::Linter::BangFormat, SCSSLint::Linter::Bliss::Module, SCSSLint::Linter::BorderZero, SCSSLint::Linter::ColorKeyword, SCSSLint::Linter::ColorVariable, SCSSLint::Linter::Comment, SCSSLint::Linter::Compass::PropertyWithMixin, SCSSLint::Linter::DebugStatement, SCSSLint::Linter::DeclarationOrder, SCSSLint::Linter::DuplicateProperty, SCSSLint::Linter::ElsePlacement, SCSSLint::Linter::EmptyLineBetweenBlocks, SCSSLint::Linter::EmptyRule, SCSSLint::Linter::FinalNewline, SCSSLint::Linter::HexLength, SCSSLint::Linter::HexNotation, SCSSLint::Linter::HexValidation, SCSSLint::Linter::IdSelector, SCSSLint::Linter::ImportPath, SCSSLint::Linter::ImportantRule, SCSSLint::Linter::Indentation, SCSSLint::Linter::LeadingZero, SCSSLint::Linter::MergeableSelector, SCSSLint::Linter::NameFormat, SCSSLint::Linter::NestingDepth, SCSSLint::Linter::PlaceholderInExtend, SCSSLint::Linter::PropertyCount, SCSSLint::Linter::PropertySortOrder, SCSSLint::Linter::PropertySpelling, SCSSLint::Linter::PropertyUnits, SCSSLint::Linter::QualifyingElement, SCSSLint::Linter::SelectorDepth, SCSSLint::Linter::SelectorFormat, SCSSLint::Linter::Shorthand, SCSSLint::Linter::SingleLinePerProperty, SCSSLint::Linter::SingleLinePerSelector, SCSSLint::Linter::SpaceAfterComma, SCSSLint::Linter::SpaceAfterPropertyColon, SCSSLint::Linter::SpaceAfterPropertyName, SCSSLint::Linter::SpaceBeforeBrace, SCSSLint::Linter::SpaceBetweenParens, SCSSLint::Linter::StringQuotes, SCSSLint::Linter::TrailingSemicolon, SCSSLint::Linter::TrailingZero, SCSSLint::Linter::UnnecessaryMantissa, SCSSLint::Linter::UnnecessaryParentReference, SCSSLint::Linter::UrlFormat, SCSSLint::Linter::UrlQuotes, SCSSLint::Linter::VariableForProperty, SCSSLint::Linter::VendorPrefix, SCSSLint::Linter::ZeroUnit
- Defined in:
- lib/scss_lint/linter_registry.rb
Overview
Stores all linters available to the application.
Class Attribute Summary collapse
-
.linters ⇒ Object
readonly
Returns the value of attribute linters.
Class Method Summary collapse
Class Attribute Details
.linters ⇒ Object (readonly)
Returns the value of attribute linters.
9 10 11 |
# File 'lib/scss_lint/linter_registry.rb', line 9 def linters @linters end |
Class Method Details
.extract_linters_from(linter_names) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/scss_lint/linter_registry.rb', line 15 def extract_linters_from(linter_names) linter_names.map do |linter_name| begin Linter.const_get(linter_name) rescue NameError raise NoSuchLinter, "Linter #{linter_name} does not exist" end end end |
.included(base) ⇒ Object
11 12 13 |
# File 'lib/scss_lint/linter_registry.rb', line 11 def included(base) @linters << base end |