lint-rust.mjs 511 B

1234567891011121314151617
  1. // Script to lint the Rust client crate.
  2. //
  3. // This script runs the following sub-scripts:
  4. // - lint-rust-clippy.mjs
  5. // - lint-rust-features.mjs
  6. // - lint-rust-docs.mjs
  7. import { cliArguments, workingDirectory } from '../utils.mjs';
  8. const scripts = path.join(workingDirectory, 'scripts', 'client');
  9. // clippy
  10. await $`zx ${path.join(scripts, 'lint-rust-clippy.mjs')}`;
  11. // features
  12. await $`zx ${path.join(scripts, 'lint-rust-features.mjs')}`;
  13. // rustdoc
  14. await $`zx ${path.join(scripts, 'lint-rust-docs.mjs')}`;