def warn_config_absent(sections, argument, log_printer):
 if all(((argument not in section) for section in sections.values())):
  log_printer.warn('coala will not run any analysis. Did you forget to give the `--{}` argument?'.format(argument))
  return True
 return False

def warn_config_absent ( sections , argument , log_printer ) : if all ( ( ( argument not in section ) for section in sections . values ( ) ) ) : log_printer . warn ( 'coala will not run any analysis. Did you forget to give the `--{}` argument?' . format ( argument ) ) return True return False
checks if the given argument is present somewhere in the sections and emits a warning that code analysis can not be run without it .