lib/rubocop/minitest.rb in rubocop-minitest-0.0.1 vs lib/rubocop/minitest.rb in rubocop-minitest-0.1.0
- old
+ new
@@ -1,8 +1,12 @@
-require "rubocop/minitest/version"
+# frozen_string_literal: true
-module Rubocop
+module RuboCop
+ # RuboCop minitest project namespace
module Minitest
- class Error < StandardError; end
- # Your code goes here...
+ PROJECT_ROOT = Pathname.new(__dir__).parent.parent.expand_path.freeze
+ CONFIG_DEFAULT = PROJECT_ROOT.join('config', 'default.yml').freeze
+ CONFIG = YAML.safe_load(CONFIG_DEFAULT.read).freeze
+
+ private_constant(:CONFIG_DEFAULT, :PROJECT_ROOT)
end
end