Skip to content

Keep code correct with the new Linter!

Compare
Choose a tag to compare
@WilliamRagstad WilliamRagstad released this 06 Aug 08:09
· 62 commits to main since this release

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!