Sha256: e836c5bf50bcbbbefce10e94174420389149ca574c3b224da3addc96c960a34a

Contents?: true

Size: 280 Bytes

Versions: 1

Compression:

Stored size: 280 Bytes

Contents

require 'slim_lint'

module SlimLintHelpers
  EXCLUDED_LINTERS = %w[LineLength]

  def lint(templates)
    SlimLint::Runner.new.run(files: templates, excluded_linters: EXCLUDED_LINTERS).lints.map(&:message)
  end
end

require_generators slim: ['scaffold', 'controller', 'mailer']

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slim-rails-3.3.0 test/lib/generators/slim/testing_helper.rb