Skip to content

enhancement: Detect polymorphic associations in generator #3885

enhancement: Detect polymorphic associations in generator

enhancement: Detect polymorphic associations in generator #3885

Triggered via pull request February 7, 2025 10:21
Status Failure
Total duration 2m 12s
Artifacts

lint.yml

on: pull_request
lint  /  ...  /  standardrb
26s
lint / runner / standardrb
lint  /  ...  /  erb-lint
6s
lint / runner / erb-lint
lint  /  check-eslint-config
3s
lint / check-eslint-config
lint  /  ...  /  eslint
0s
lint / runner / eslint
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint / runner / 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} ^^
lint / runner / 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} ^
lint / runner / 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")} ^^
lint / runner / 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")} ^
lint / runner / 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")} ^^
lint / runner / 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")} ^
lint / runner / 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")} ^^
lint / runner / 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")} ^
lint / runner / 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}"} ^^
lint / runner / 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