def build_review_config(ini_config, app_config=None): """ Build a new ReviewConfig object using the ini config file and the defaults if they exist in the app_config """ config = ReviewConfig(app_config) if app_config: defaults = get_lintrc_defaults(app_config) if defaults: config.load_ini(defaults) config.load_ini(ini_config) return config
def build_review_config(ini_config, app_config=None): """ Build a new ReviewConfig object using the ini config file and the defaults if they exist in the app_config """ config = ReviewConfig() if app_config: defaults = get_lintrc_defaults(app_config) if defaults: config.load_ini(defaults) config.load_ini(ini_config) return config