gems.scss_lint-0.42.2.lib.scss_lint.plugins.linter_dir.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.
module SCSSLint
class Plugins
# Load ruby files from linter plugin directories.
class LinterDir
attr_reader :config
def initialize(dir)
@dir = dir
@config = SCSSLint::Config.new({}) # Will always be empty
end
def load
ruby_files.each { |file| require file }
self
end
private
def ruby_files
Dir.glob(File.expand_path(File.join(@dir, '**', '*.rb')))
end
end
end
end
© 2015 - 2025 Weber Informatics LLC | Privacy Policy