3 releases
new 0.6.36-nightly.0 | Apr 29, 2024 |
---|---|
0.6.35 | Apr 24, 2024 |
0.6.35-nightly.0 | Apr 11, 2024 |
#6 in #erg
258 downloads per month
Used in 2 crates
3.5MB
89K
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–12MB
~118K SLoC