Sha256: 33a28d2d61e8828581650a12221ab4bcdd0d8a26cf17879e12a2ddecc55812ef
Contents?: true
Size: 1.29 KB
Versions: 3
Compression:
Stored size: 1.29 KB
Contents
require 'find' module SCSSLint autoload :CLI, 'scss_lint/cli' autoload :Engine, 'scss_lint/engine' autoload :Lint, 'scss_lint/lint' autoload :LinterRegistry, 'scss_lint/linter_registry' autoload :Linter, 'scss_lint/linter' autoload :Reporter, 'scss_lint/reporter' autoload :Runner, 'scss_lint/runner' autoload :SelectorVisitor, 'scss_lint/selector_visitor' autoload :Utils, 'scss_lint/utils' autoload :VERSION, 'scss_lint/version' # Preload Sass so we can monkey patch it require 'sass' require File.expand_path('sass/script', File.dirname(__FILE__)) require File.expand_path('sass/tree', File.dirname(__FILE__)) # Load all linters Dir[File.expand_path('scss_lint/linter/*.rb', File.dirname(__FILE__))].each do |file| require file end # Load all reporters Dir[File.expand_path('scss_lint/reporter/*.rb', File.dirname(__FILE__))].each do |file| require file end class << self def extract_files_from(list) files = [] list.each do |file| Find.find(file) do |f| files << f if scssish_file?(f) end end files.uniq end private VALID_EXTENSIONS = %w[.css .scss] def scssish_file?(file) return false unless FileTest.file?(file) VALID_EXTENSIONS.include?(File.extname(file)) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
scss-lint-0.11.1 | lib/scss_lint.rb |
scss-lint-0.10.1 | lib/scss_lint.rb |
scss-lint-0.10.0 | lib/scss_lint.rb |