Changelog History
Page 1
-
v0.13.3 Changes
December 04, 2020- ๐ Incorrect
Lint/EmptyExpression
: Avoid empty expression #169 - ๐ Change supported crystal version to
>= 0.35.0
(thanks @Sija) - ๐ณ Docker Hub now ships the latest image: https://hub.docker.com/repository/docker/veelenga/ameba/tags
- ๐ Incorrect
-
v0.13.2 Changes
August 26, 2020 -
v0.13.1 Changes
July 16, 2020 -
v0.13.0 Changes
June 19, 2020๐ This is a small release that supports Crystal 0.35.0 and eliminates the deprecation messages which are related to yaml serialization.
- ๐ Move to YAML::Serializable #157
- โ Travis CI: test against Crystal nightlies #153
- ๐ Feature/Layout trailing lines, final newline checkup #152
๐ New rules added:
-
v0.12.1 Changes
April 13, 2020This is a small release which includes few important bugfixes
-
v0.12.0 Changes
March 27, 2020๐ New features & improvements
- โ Added compability for Crystal
0.34
(BC with Crystal0.33
). See #138 (thanks @bcardiff) โ Added ability to configured globs and exclude paths to sources globally (see #125):
.ameba.ymlGlobs: - **/*.cr - !libExcluded: - spec - src/server/*
๐
Style/RedundantReturn
rule was extended to catch redundant returns in binary operators. See 946ec67๐
Lint/LiteralInInterpolation
rule now reports multiple nodes and points to the specific literal locations. See 04497fe๐
AST::NodeVisitor
is now a default for all rules, which reduces a good portion of a boilerplate. See 1a0468c
๐ New rules added:
- ๐
Style/RedundantNext
- disallows redundant next expressions. See #134 - ๐
Lint/SharedVarInSpawn
- disallows using shared variables in fibers, which are mutated during iterations. See #135 - ๐
Lint/EmptyLoop
- disallows empty loops, see #136 - ๐
Lint/RedundantStringCoercion
- disallows string conversion in string interpolation, which is redundant. See #137
๐ Bugfixes
- ๐ Corrected broken links in Readme. See #123 (thanks @hanneskaeufler)
- ๐ Nested block params were mistakenly reported as useless assignments. This is now fixed 74dfa0b
- ๐ Block params in macro were mistakenly reported as shadowed local var. This is now fixed aff723b
- โ Added compability for Crystal
-
v0.11.0 Changes
November 29, 2019๐ 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
- ๐
-
v0.10.1 Changes
September 14, 2019 -
v0.10.0 Changes
June 06, 2019- ๐ Crystal 0.29.0 compatibility
-
v0.9.2 Changes
June 03, 2019๐ Improvements
- Rules now have severities. The
--fail-level
can be set to control the level of failure #100
๐ Bug fixes
- Rules now have severities. The