Add description to syntax special rule

This commit is contained in:
Vitalii Elenhaupt 2018-12-09 00:12:14 +02:00
parent 20938da89a
commit 148044f479
No known key found for this signature in database
GPG Key ID: 7558EF3A4056C706
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@ module Ameba::Rule::Lint
# ```
#
struct Syntax < Base
getter description = "Reports invalid Crystal syntax."
def test(source)
source.ast
rescue e : Crystal::SyntaxException