ameba v0.11.0 Release Notes
Release Date: 2019-11-29 // over 4 years ago-
๐ New features & improvements
- ๐
--gen-config
now does not generate a todo file if there are no linting issues, see 2704a0d ๐ A new AST structure
typeof
is added to the list of scope, so rules now properly report unused assignment, shadowed variables etc, see 677c757typeof(begin foo = 1 # unused variable# ...end)
Note: Such kind of structure is usually used as type specs when the compiler can report a problem at the compilation step instead of runtime.
- ๐ Ameba can now lint in parallel, see #118
- ๐ New rule: RedundantWithIndex, see #120
- ๐ New rule: RedundantWithObject, see #121
๐ Bug fixes
- ๐ Lint/UnusedArgument: fails to recognized used argument inside macro #117
- ๐ Generated TODO file could have duplicated sections in yaml file. This is fixed by 1115965, 4ae0195
- ๐ A custom
bin/ameba.cr
run file could be deleted even it was already created by the user. This is fixed by 4a54f6d Previously Ameba reported false positiveness if argument is shadowed by instance variable:
def bar(@foo) @foo.try do |foo| endend
๐ This is fixed by 6b56c87
- ๐