Sha256: 35581f079270a9be126a4b841addc9a4fe9f204c970fff50c021dab5f9f24350

Contents?: true

Size: 470 Bytes

Versions: 21

Compression:

Stored size: 470 Bytes

Contents

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

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
scss_lint-0.51.0 lib/scss_lint/plugins/linter_dir.rb
scss_lint-0.50.3 lib/scss_lint/plugins/linter_dir.rb
scss_lint-0.50.2 lib/scss_lint/plugins/linter_dir.rb
scss_lint-0.50.1 lib/scss_lint/plugins/linter_dir.rb
scss_lint-0.50.0 lib/scss_lint/plugins/linter_dir.rb
scss_lint-0.49.0 lib/scss_lint/plugins/linter_dir.rb
scss_lint-0.48.0 lib/scss_lint/plugins/linter_dir.rb
scss_lint-0.47.1 lib/scss_lint/plugins/linter_dir.rb
scss_lint-0.47.0 lib/scss_lint/plugins/linter_dir.rb
scss_lint-0.46.0 lib/scss_lint/plugins/linter_dir.rb
scss_lint-0.45.0 lib/scss_lint/plugins/linter_dir.rb
scss_lint-0.44.0 lib/scss_lint/plugins/linter_dir.rb
scss_lint-0.43.2 lib/scss_lint/plugins/linter_dir.rb
scss_lint-0.43.1 lib/scss_lint/plugins/linter_dir.rb
scss_lint-0.43.0 lib/scss_lint/plugins/linter_dir.rb
scss_lint-0.42.2 lib/scss_lint/plugins/linter_dir.rb
scss_lint-0.42.1 lib/scss_lint/plugins/linter_dir.rb
scss_lint-0.42.0 lib/scss_lint/plugins/linter_dir.rb
scss_lint-0.41.0 lib/scss_lint/plugins/linter_dir.rb
scss_lint-0.40.1 lib/scss_lint/plugins/linter_dir.rb