lib/gitlab/styles/rubocop.rb in gitlab-styles-7.1.0 vs lib/gitlab/styles/rubocop.rb in gitlab-styles-8.0.0
- old
+ new
@@ -1,8 +1,8 @@
# frozen_string_literal: true
-# Auto-require all cops under `gitlab/styles/rubocop/cop/**/*.rb`
-cops_glob = File.join(__dir__, 'rubocop', 'cop', '**', '*.rb')
+# Auto-require all cops under `rubocop/cop/**/*.rb`
+cops_glob = File.join(__dir__, '..', '..', 'rubocop', 'cop', '**', '*.rb')
Dir[cops_glob].sort.each { |cop| require(cop) }
module Gitlab
module Styles
module Rubocop