@validation_task
def validate_file(file_id, hash_, is_webextension=False, **kw):
 file_ = File.objects.get(pk=file_id)
 try:
  return file_.validation.validation
 except FileValidation.DoesNotExist:
  listed = (file_.version.channel == amo.RELEASE_CHANNEL_LISTED)
  if is_webextension:
   return run_addons_linter(file_.current_file_path, listed=listed)
  return run_validator(file_.current_file_path, listed=listed)

@ validation_task def validate_file ( file_id , hash_ , is_webextension = False , ** kw ) : file_ = File . objects . get ( pk = file_id ) try : return file_ . validation . validation except FileValidation . DoesNotExist : listed = ( file_ . version . channel == amo . RELEASE_CHANNEL_LISTED ) if is_webextension : return run_addons_linter ( file_ . current_file_path , listed = listed ) return run_validator ( file_ . current_file_path , listed = listed )
validate if requirements_all .