message: refactor(schema:check): use constant for configName
  This will also allow us to determine the validation task name before we
  define the tasks so we don't have to change the task name after we start
  running.
  This required changing whitespace on many lines; review this commit with
  whitespace turned off.
diff: @@ -233,18 +233,21 @@ export default class ServiceCheck extends ProjectCommand {
  try {
  await this.runTasks<TasksOutput>(
  - ({ config, flags, project }) => [
  + ({ config, flags, project }) => {
  + const configName = config.name;
  + if (!configName) {
  + throw new Error("No service found to link to Engine");
  + }
  +
  + return [
  {
  title: "Checking service for changes",
  task: async (ctx: TasksOutput, task) => {
  - if (!config.name) {
  - throw new Error("No service found to link to Engine");
  - }
  const tag = flags.tag || config.tag || "current";
  task.title = `Validating local schema against tag ${chalk.blue(
  tag
  - )} on service ${chalk.blue(config.name)}`;
  + )} on service ${chalk.blue(configName)}`;
  task.output = "Resolving schema";
  @@ -262,7 +265,7 @@ export default class ServiceCheck extends ProjectCommand {
  const newContext: typeof ctx = {
  checkSchemaResult: await project.engine.checkSchema({
  - id: config.name,
  + id: configName,
  // @ts-ignore
  // XXX Looks like TS should be generating ReadonlyArrays instead
  schema: introspectionFromSchema(schema).__schema,
  @@ -284,7 +287,7 @@ export default class ServiceCheck extends ProjectCommand {
  task.title = `Validated local schema against tag ${chalk.blue(
  tag
  - )} on service ${chalk.blue(config.name)}`;
  + )} on service ${chalk.blue(configName)}`;
  }
  },
  {
  @@ -354,7 +357,8 @@ export default class ServiceCheck extends ProjectCommand {
  }
  }
  }
  - ],
  + ];
  + },
  context => ({
  // It would be better here to use a custom renderer that will output the `Listr` output to stderr and
  // the `this.log` output to `stdout`.
  