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 677c757

      typeof(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