Snowtrack / snowfs

Found single char variable name JS-C1002
Anti-pattern
Minor
10 occurrences in this check
Variable name is too small.
336  await exec(t, snow, ['commit', '-m', 'Delete foo.txt'], { cwd: snowWorkdir });
337  const out = await exec(t, snow, ['log', '--changed-files'], { cwd: snowWorkdir }, EXEC_OPTIONS.RETURN_STDOUT);
338
339  const c: any = JSON.parse(String(out));340  t.true(c.commits[2].root.children[0].status == "added" &&
341         c.commits[1].root.children[0].status == "modified");
342});
Variable name is too small.
558  );
559
560  const out = await exec(t, snow, ['log', '--output=json'], { cwd: snowWorkdir }, EXEC_OPTIONS.RETURN_STDOUT);
561  const c: any = JSON.parse(String(out));562
563  let identical = false;
564  if (c.commits.length > 0) {
Variable name is too small.
562
563  let identical = false;
564  if (c.commits.length > 0) {
565    const d = c.commits[0].userData;566
567    // eslint-disable-next-line guard-for-in
568    for (const key in d) {
Variable name is too small.
612  await exec(t, snow, ['commit', '-m', 'unit test tags', '--allow-empty', `--tags=${tag1},${tag2}`], { cwd: snowWorkdir });
613
614  const out = await exec(t, snow, ['log', '--output=json'], { cwd: snowWorkdir }, EXEC_OPTIONS.RETURN_STDOUT);
615  const c: any = JSON.parse(String(out));616
617  let identical = false;
618  if (c.commits.length > 0) {
Variable name is too small.
616
617  let identical = false;
618  if (c.commits.length > 0) {
619    const d = c.commits[0].tags;620    identical = d.includes(tag1) && d.includes(tag2);
621  }
622
Variable name is too small.
634  await exec(t, snow, ['commit', '-m', 'unit test tags', '--allow-empty', `--tags=${tag1},${tag2}`], { cwd: snowWorkdir });
635
636  const out = await exec(t, snow, ['log', '--output=json'], { cwd: snowWorkdir }, EXEC_OPTIONS.RETURN_STDOUT);
637  const c: any = JSON.parse(String(out));638
639  let tags: string[] = [];
640  if (c.commits.length > 0) {
Variable name is too small.
676  );
677
678  const out = await exec(t, snow, ['log', '--output=json'], { cwd: snowWorkdir }, EXEC_OPTIONS.RETURN_STDOUT);
679  const c: any = JSON.parse(String(out));680
681  let identical = false;
682  if (c.refs.length > 1) {
Variable name is too small.
680
681  let identical = false;
682  if (c.refs.length > 1) {
683    const d = c.refs[1].userData;684
685    // eslint-disable-next-line guard-for-in
686    for (const key in d) {
Variable name is too small.
405      const index: Index = getIndex(repo, opts.index);
406
407      if (opts.output === 'json' || opts.output === 'json-pretty') {
408        const o = { new: newe, modified, deleted };409
410        process.stdout.write(JSON.stringify(o, (key, value) => {
411          if (value instanceof StatusEntry) {
Variable name is too small.
529      const headName: string = repo.getHead().getName();
530
531      if (opts.output === 'json' || opts.output === 'json-pretty' || opts.changedFiles) {
532        const o = { commits, refs, head: repo.getHead().isDetached() ? headHash : headName };533        
534        if (opts.changedFiles) {
535          var statuses = {};