mirror of
https://github.com/erg-lang/erg.git
synced 2025-12-23 05:36:48 +00:00
feat(linter): add lint command
This commit is contained in:
parent
1a0daed8a4
commit
6ef11887ed
1 changed files with 3 additions and 0 deletions
|
|
@ -288,6 +288,9 @@ impl ErgConfig {
|
|||
"--check" => {
|
||||
cfg.mode = ErgMode::FullCheck;
|
||||
}
|
||||
"--lint" => {
|
||||
cfg.mode = ErgMode::Lint;
|
||||
}
|
||||
"--compile" | "--dump-as-pyc" => {
|
||||
cfg.mode = ErgMode::Compile;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue