Module: HamlI18nLint

Defined in:
lib/haml_i18n_lint.rb,
lib/haml_i18n_lint/config.rb,
lib/haml_i18n_lint/linter.rb,
lib/haml_i18n_lint/runner.rb,
lib/haml_i18n_lint/linter5.rb,
lib/haml_i18n_lint/options.rb,
lib/haml_i18n_lint/version.rb,
lib/haml_i18n_lint/ruby_parser.rb,
lib/haml_i18n_lint/linter/compiler_extension.rb,
lib/haml_i18n_lint/linter5/compiler_extension.rb

Overview

Lint for the lines that needs i18n

Defined Under Namespace

Classes: Config, Linter, Linter5, LoadConfigError, Options, RubyParser, Runner

Constant Summary collapse

VERSION =
"0.12.0"

Class Method Summary collapse

Class Method Details

.linterObject



13
14
15
16
17
18
19
# File 'lib/haml_i18n_lint.rb', line 13

def linter
  if Haml::VERSION.start_with?('5')
    ::HamlI18nLint::Linter5
  else
    ::HamlI18nLint::Linter
  end
end