lint.mts 530 B

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