def get_global_option(checker, option, default=None):
 try:
  return getattr(checker.config, option.replace('-', '_'))
 except AttributeError:
  pass
 for provider in checker.linter.options_providers:
  for options in provider.options:
   if (options[0] == option):
    return getattr(provider.config, option.replace('-', '_'))
 return default

def get_global_option ( checker , option , default = None ) : try : return getattr ( checker . config , option . replace ( '-' , '_' ) ) except AttributeError : pass for provider in checker . linter . options_providers : for options in provider . options : if ( options [ 0 ] == option ) : return getattr ( provider . config , option . replace ( '-' , '_' ) ) return default
retrieve an option defined by the given *checker* or by all known option providers .