46 releases

new 0.6.48 Nov 20, 2024
0.6.47-nightly.4 Oct 20, 2024
0.6.40 Jul 24, 2024

#920 in Programming languages

Download history 74/week @ 2024-07-29 201/week @ 2024-08-05 215/week @ 2024-08-12 409/week @ 2024-08-19 103/week @ 2024-08-26 537/week @ 2024-09-02 33/week @ 2024-09-09 357/week @ 2024-09-16 291/week @ 2024-09-23 679/week @ 2024-09-30 254/week @ 2024-10-07 679/week @ 2024-10-14 131/week @ 2024-10-21 116/week @ 2024-10-28 287/week @ 2024-11-04 62/week @ 2024-11-11

726 downloads per month
Used in 2 crates

MIT/Apache

4MB
98K SLoC

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

Dependencies

~2–28MB
~426K SLoC