enhancement: Detect polymorphic associations in generator #3883
lint.yml
on: pull_request
lint
/
...
/
standardrb
27s
lint
/
...
/
erb-lint
7s
lint
/
check-eslint-config
4s
lint
/
...
/
eslint
0s
Annotations
10 errors
lint / runner / standardrb:
lib/generators/avo/resource_generator.rb#L16
[rubocop] reported by reviewdog 🐶
[Corrected] Layout/ArgumentAlignment: Use one level of indentation for arguments following the first line of a multi-line method call.
Raw Output:
lib/generators/avo/resource_generator.rb:16:20: C: [Corrected] Layout/ArgumentAlignment: Use one level of indentation for arguments following the first line of a multi-line method call.
desc: "The name of the model.",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
lint / runner / standardrb:
lib/generators/avo/resource_generator.rb#L17
[rubocop] reported by reviewdog 🐶
[Corrected] Layout/ArgumentAlignment: Use one level of indentation for arguments following the first line of a multi-line method call.
Raw Output:
lib/generators/avo/resource_generator.rb:17:20: C: [Corrected] Layout/ArgumentAlignment: Use one level of indentation for arguments following the first line of a multi-line method call.
type: :string,
^^^^^^^^^^^^^
|
lint / runner / standardrb:
lib/generators/avo/resource_generator.rb#L18
[rubocop] reported by reviewdog 🐶
[Corrected] Layout/ArgumentAlignment: Use one level of indentation for arguments following the first line of a multi-line method call.
Raw Output:
lib/generators/avo/resource_generator.rb:18:20: C: [Corrected] Layout/ArgumentAlignment: Use one level of indentation for arguments following the first line of a multi-line method call.
required: false
^^^^^^^^^^^^^^^
|
lint / runner / standardrb:
lib/generators/avo/resource_generator.rb#L21
[rubocop] reported by reviewdog 🐶
[Corrected] Layout/ArgumentAlignment: Use one level of indentation for arguments following the first line of a multi-line method call.
Raw Output:
lib/generators/avo/resource_generator.rb:21:20: C: [Corrected] Layout/ArgumentAlignment: Use one level of indentation for arguments following the first line of a multi-line method call.
desc: "Indicates if the resource should be an array.",
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
lint / runner / standardrb:
lib/generators/avo/resource_generator.rb#L22
[rubocop] reported by reviewdog 🐶
[Corrected] Layout/ArgumentAlignment: Use one level of indentation for arguments following the first line of a multi-line method call.
Raw Output:
lib/generators/avo/resource_generator.rb:22:20: C: [Corrected] Layout/ArgumentAlignment: Use one level of indentation for arguments following the first line of a multi-line method call.
type: :boolean,
^^^^^^^^^^^^^^
|
lint / runner / standardrb:
lib/generators/avo/resource_generator.rb#L23
[rubocop] reported by reviewdog 🐶
[Corrected] Layout/ArgumentAlignment: Use one level of indentation for arguments following the first line of a multi-line method call.
Raw Output:
lib/generators/avo/resource_generator.rb:23:20: C: [Corrected] Layout/ArgumentAlignment: Use one level of indentation for arguments following the first line of a multi-line method call.
default: false
^^^^^^^^^^^^^^
|
lint / runner / standardrb:
lib/generators/avo/resource_generator.rb#L193
[rubocop] reported by reviewdog 🐶
[Corrected] Layout/SpaceInsideHashLiteralBraces: Space inside { detected.
Raw Output:
lib/generators/avo/resource_generator.rb:193:18: C: [Corrected] Layout/SpaceInsideHashLiteralBraces: Space inside { detected.
{ field: "polymorphic", options: { types: [] } }
^
|
lint / runner / standardrb:
lib/generators/avo/resource_generator.rb#L193
[rubocop] reported by reviewdog 🐶
[Corrected] Layout/SpaceInsideHashLiteralBraces: Space inside { detected.
Raw Output:
lib/generators/avo/resource_generator.rb:193:51: C: [Corrected] Layout/SpaceInsideHashLiteralBraces: Space inside { detected.
{ field: "polymorphic", options: { types: [] } }
^
|
lint / runner / standardrb:
lib/generators/avo/resource_generator.rb#L193
[rubocop] reported by reviewdog 🐶
[Corrected] Layout/SpaceInsideHashLiteralBraces: Space inside } detected.
Raw Output:
lib/generators/avo/resource_generator.rb:193:61: C: [Corrected] Layout/SpaceInsideHashLiteralBraces: Space inside } detected.
{ field: "polymorphic", options: { types: [] } }
^
|
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
|