Move files from lib/haml_lint to haml_lint
Files in lib will be eager loaded and hence will require haml_lint to be loaded. Since this is only a development dependency, we can't assume this gem will be available in production, so it should never be loaded in production.
This commit is contained in:
parent
0ded86570c
commit
27381e22a9
|
@ -7,7 +7,7 @@ exclude:
|
||||||
- 'vendor/**/*'
|
- 'vendor/**/*'
|
||||||
- 'spec/**/*'
|
- 'spec/**/*'
|
||||||
require:
|
require:
|
||||||
- './lib/haml_lint/linter/no_plain_nodes.rb'
|
- './haml_lint/linter/no_plain_nodes.rb'
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
AltText:
|
AltText:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
unless Rails.env.production?
|
unless Rails.env.production?
|
||||||
require 'haml_lint/rake_task'
|
require 'haml_lint/rake_task'
|
||||||
require 'haml_lint/inline_javascript'
|
require Rails.root.join('haml_lint/inline_javascript')
|
||||||
|
|
||||||
# Workaround for warnings from parser/current
|
# Workaround for warnings from parser/current
|
||||||
# Keep it even if it no longer emits any warnings,
|
# Keep it even if it no longer emits any warnings,
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
require 'spec_helper'
|
require 'spec_helper'
|
||||||
require 'haml_lint'
|
require 'haml_lint'
|
||||||
require 'haml_lint/spec'
|
require 'haml_lint/spec'
|
||||||
|
require Rails.root.join('haml_lint/linter/no_plain_nodes')
|
||||||
|
|
||||||
describe HamlLint::Linter::NoPlainNodes do
|
describe HamlLint::Linter::NoPlainNodes do
|
||||||
include_context 'linter'
|
include_context 'linter'
|
Loading…
Reference in New Issue