enhancement: Detect polymorphic associations in generator #3885
Annotations
10 errors
standardrb:
lib/generators/avo/resource_generator.rb#L156
[rubocop] reported by reviewdog 🐶
[Corrected] Layout/SpaceInsideBlockBraces: Space between { and | missing.
Raw Output:
lib/generators/avo/resource_generator.rb:156:40: C: [Corrected] Layout/SpaceInsideBlockBraces: Space between { and | missing.
@tags ||= reflections.select {|_, reflection| reflection.options[:as] == :taggable}
^^
|
standardrb:
lib/generators/avo/resource_generator.rb#L156
[rubocop] reported by reviewdog 🐶
[Corrected] Layout/SpaceInsideBlockBraces: Space missing inside }.
Raw Output:
lib/generators/avo/resource_generator.rb:156:93: C: [Corrected] Layout/SpaceInsideBlockBraces: Space missing inside }.
@tags ||= reflections.select {|_, reflection| reflection.options[:as] == :taggable}
^
|
standardrb:
lib/generators/avo/resource_generator.rb#L227
[rubocop] reported by reviewdog 🐶
[Corrected] Layout/SpaceInsideBlockBraces: Space between { and | missing.
Raw Output:
lib/generators/avo/resource_generator.rb:227:21: C: [Corrected] Layout/SpaceInsideBlockBraces: Space between { and | missing.
.select {|column| column.end_with?("_type")}
^^
|
standardrb:
lib/generators/avo/resource_generator.rb#L227
[rubocop] reported by reviewdog 🐶
[Corrected] Layout/SpaceInsideBlockBraces: Space missing inside }.
Raw Output:
lib/generators/avo/resource_generator.rb:227:56: C: [Corrected] Layout/SpaceInsideBlockBraces: Space missing inside }.
.select {|column| column.end_with?("_type")}
^
|
standardrb:
lib/generators/avo/resource_generator.rb#L228
[rubocop] reported by reviewdog 🐶
[Corrected] Layout/SpaceInsideBlockBraces: Space between { and | missing.
Raw Output:
lib/generators/avo/resource_generator.rb:228:18: C: [Corrected] Layout/SpaceInsideBlockBraces: Space between { and | missing.
.map {|type_column| type_column.remove("_type")}
^^
|
standardrb:
lib/generators/avo/resource_generator.rb#L228
[rubocop] reported by reviewdog 🐶
[Corrected] Layout/SpaceInsideBlockBraces: Space missing inside }.
Raw Output:
lib/generators/avo/resource_generator.rb:228:60: C: [Corrected] Layout/SpaceInsideBlockBraces: Space missing inside }.
.map {|type_column| type_column.remove("_type")}
^
|
standardrb:
lib/generators/avo/resource_generator.rb#L229
[rubocop] reported by reviewdog 🐶
[Corrected] Layout/SpaceInsideBlockBraces: Space between { and | missing.
Raw Output:
lib/generators/avo/resource_generator.rb:229:21: C: [Corrected] Layout/SpaceInsideBlockBraces: Space between { and | missing.
.select {|association| model_db_columns.key?("#{association}_id")}
^^
|
standardrb:
lib/generators/avo/resource_generator.rb#L229
[rubocop] reported by reviewdog 🐶
[Corrected] Layout/SpaceInsideBlockBraces: Space missing inside }.
Raw Output:
lib/generators/avo/resource_generator.rb:229:78: C: [Corrected] Layout/SpaceInsideBlockBraces: Space missing inside }.
.select {|association| model_db_columns.key?("#{association}_id")}
^
|
standardrb:
lib/generators/avo/resource_generator.rb#L287
[rubocop] reported by reviewdog 🐶
[Corrected] Layout/SpaceInsideBlockBraces: Space between { and | missing.
Raw Output:
lib/generators/avo/resource_generator.rb:287:44: C: [Corrected] Layout/SpaceInsideBlockBraces: Space between { and | missing.
field_options[:options].each {|k, v| options += ", #{k}: #{v}"}
^^
|
standardrb
reviewdog: Too many results (annotations) in diff.
You may miss some annotations due to GitHub limitation for annotation created by logging command.
Please check GitHub Actions log console to see all results.
Limitation:
- 10 warning annotations and 10 error annotations per step
- 50 annotations per job (sum of annotations from all the steps)
- 50 annotations per run (separate from the job annotations, these annotations aren't created by users)
Source: https://github.community/t5/GitHub-Actions/Maximum-number-of-annotations-that-can-be-created-using-GitHub/m-p/39085
|
Loading