New features & improvements
- Added compability for Crystal
0.34
(BC with Crystal 0.33
). See #138 (thanks @bcardiff)
- Added ability to configured globs and exclude paths to sources globally (see #125):
# .ameba.yml
Globs:
- **/*.cr
- !lib
Excluded:
- 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