enhancement: Detect polymorphic associations in generator #3891
lint.yml
on: pull_request
lint
/
...
/
standardrb
27s
lint
/
...
/
erb-lint
9s
lint
/
check-eslint-config
2s
lint
/
...
/
eslint
0s
Annotations
1 error
lint / runner / standardrb:
lib/generators/avo/resource_generator.rb#L299
[rubocop] reported by reviewdog 🐶
[Corrected] Style/ConditionalAssignment: Use the return of the conditional for variable assignment and comparison.
Raw Output:
lib/generators/avo/resource_generator.rb:299:13: C: [Corrected] Style/ConditionalAssignment: Use the return of the conditional for variable assignment and comparison.
if field_options[:field] == "polymorphic" ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|