validateLinkConfig function

Future<ValidationErrors> validateLinkConfig(
  1. LinkConfig config
)

Implementation

Future<ValidationErrors> validateLinkConfig(LinkConfig config) async {
  final errors = <String>[
    ..._validateHookConfig(config),
  ];
  final recordUses = config.recordedUsagesFile;
  if (recordUses != null && !File.fromUri(recordUses).existsSync()) {
    errors.add('Config.recordUses ($recordUses) does not exist.');
  }
  return errors;
}