lib/codeowners/cli/base.rb in codeowners-checker-1.0.5 vs lib/codeowners/cli/base.rb in codeowners-checker-1.1.1

- old
+ new

@@ -1,19 +1,21 @@ # frozen_string_literal: true require 'thor' require_relative '../config' +require_relative 'warner' module Codeowners module Cli # Base collects shared methods used by all CLI sub commands # It loads and validate the default config file or output an explanation # about how to configure it. class Base < Thor def initialize(args = [], options = {}, config = {}) super @config ||= config[:config] || default_config + Warner.check_warnings end private attr_reader :config