lib/slim_lint.rb in slim_lint-0.19.0 vs lib/slim_lint.rb in slim_lint-0.20.0

- old
+ new

@@ -17,11 +17,11 @@ require 'slim_lint/linter_registry' require 'slim_lint/logger' require 'slim_lint/version' # Load all filters (required by SlimLint::Engine) -Dir[File.expand_path('slim_lint/filters/*.rb', File.dirname(__FILE__))].each do |file| +Dir[File.expand_path('slim_lint/filters/*.rb', File.dirname(__FILE__))].sort.each do |file| require file end require 'slim_lint/engine' require 'slim_lint/document' @@ -35,18 +35,18 @@ require 'slim_lint/linter_selector' require 'slim_lint/runner' # Load all matchers require 'slim_lint/matcher/base' -Dir[File.expand_path('slim_lint/matcher/*.rb', File.dirname(__FILE__))].each do |file| +Dir[File.expand_path('slim_lint/matcher/*.rb', File.dirname(__FILE__))].sort.each do |file| require file end # Load all linters -Dir[File.expand_path('slim_lint/linter/*.rb', File.dirname(__FILE__))].each do |file| +Dir[File.expand_path('slim_lint/linter/*.rb', File.dirname(__FILE__))].sort.each do |file| require file end # Load all reporters -Dir[File.expand_path('slim_lint/reporter/*.rb', File.dirname(__FILE__))].each do |file| +Dir[File.expand_path('slim_lint/reporter/*.rb', File.dirname(__FILE__))].sort.each do |file| require file end