A very small release that supports Crystal 0.35.0 and eliminates the deprecation messages which are related to yaml serialization.
Checkout the release notes to see a full scope of changes.
Each rule in Ameba can be serialized to YAML and deserialized back to the Crystal struct. This is needed in order to give users an ability to configure the Ameba binary using the configuration file
Starting from this release, Ameba uses
YAML::Serializable. The older version of Ameba still works with Crystal
0.35.0 however, users might see the deprecation warning while compiling the binary.
This is a new rule that reports the incorrect comment directive for Ameba.
For example, the user can mistakenly add a directive to disable a rule that even doesn’t exist:
# ameba:disable BadRuleName
Now, such a comment directive above will be propertly reported.
Crystal has two ways for checking the
Since the second is much more consice and doing basically the same, now Ameba disallows calls to
.is_a?(Nil) in favor of
This is considered bad:
And needs to be written as:
A new Patreon page has been created recently to support Ameba. If you enjoy the project please consider becoming a patreon which will give more attention to the project from the development perspective and make it better.