erg_linter

Crates.ioerg_linter
lib.rserg_linter
version
sourcesrc
created_at2024-04-11 13:08:23.064682
updated_at2024-12-12 16:48:41.208248
descriptionthe Erg linter
homepagehttps://erg-lang.org/
repositoryhttps://github.com/erg-lang/erg
max_upload_size
id1204891
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Shunsuke Shibayama (mtshiba)

documentation

http://docs.rs/erg_linter

README

erg-linter (WIP)

erg-linter (can be used with erg lint) is a tool to check the erg file for errors.

Features

The following codes are warned.

  • Unreachable codes
  • Wildcard import
  • Shadowing of built-in variables
  • Procedures without side-effects
  • Variables that can be defined as constants
  • Unnecessary .clone
  • Mutable objects that do not change
  • Hardcoded well-known constants (e.g. 3.14)
  • Defining a subroutine with too many parameters
  • Defining a class with too many fields

These are warned by the compiler

  • Unused variables
  • Unused objects that are not NoneLike
Commit count: 4163

cargo fmt