lint.mjs 317 B

1234567891011
  1. #!/usr/bin/env zx
  2. import "zx/globals";
  3. import { workingDirectory, getProgramFolders } from "../utils.mjs";
  4. // Lint the programs using clippy.
  5. await Promise.all(
  6. getProgramFolders().map(async (folder) => {
  7. await $`cd ${path.join(workingDirectory, folder)}`.quiet();
  8. await $`cargo clippy ${argv._}`;
  9. })
  10. );