Closed petr-fischer closed 5 months ago
I think this was explicitly noted here https://github.com/crystal-ameba/ameba/pull/430#issuecomment-1871646886 that such cases can't (or very hard) to be properly handled. There is a configuration property exclude_type_declarations
which excludes the type declarations from the check, however it will not help here with a second example (in_edit
property).
@Sija would you like to hop-in? Should we add another property to handle that?
@veelenga That is correct. There's not much we can do here.
OK, so I'm sticking with the ignore rules in the config. Thanks for the recheck and explanation.
Example correct code:
Then:
Wrong output:
Related: #77