Keep code correct with the new Linter!
Yes, There is now a new linting tool built into the RustScript CLI!
Validate your scripts using the -l
or --lint
options.
-l, --lint [files]
Lints the given files.
Example
> java Cli -l test\input1.rs
Linting 1 file(s)...
Syntax error in 'test\input1.rs':
Error at line 5 column 16:
Expected RParen, got Ident 'println'
Found 1 errors.
Linting 1 file(s)...
All files passed!