| 123456789101112131415161718192021222324 |
- #!/usr/bin/env zx
- import 'zx/globals';
- import {
- cliArguments,
- getToolchainArgument,
- popArgument,
- workingDirectory,
- } from '../utils.mjs';
- // Configure additional arguments here, e.g.:
- // ['--arg1', '--arg2', ...cliArguments()]
- const lintArgs = cliArguments();
- const fix = popArgument(lintArgs, '--fix');
- const toolchain = getToolchainArgument('lint');
- const manifestPath = path.join(
- workingDirectory,
- 'clients',
- 'rust',
- 'Cargo.toml'
- );
- // Check the client using Clippy.
- await $`cargo ${toolchain} clippy --manifest-path ${manifestPath} ${fix ? '--fix' : ''} ${lintArgs}`;
|