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