[ELITERT-1198] Add action to run Ruby linters #13
Annotations
2 errors and 10 warnings
lint (2.7)
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.com/orgs/community/discussions/26680#discussioncomment-3252835
|
lint (2.7)
Process completed with exit code 1.
|
lint (2.7):
lib/something.rb#L32
[rubocop] reported by reviewdog 🐶
Add empty line after guard clause.
Raw Output:
lib/something.rb:32:9: C: Layout/EmptyLineAfterGuardClause: Add empty line after guard clause.
|
lint (2.7):
lib/something.rb#L32
[rubocop] reported by reviewdog 🐶
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Raw Output:
lib/something.rb:32:39: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
lint (2.7):
lib/something.rb#L34
[rubocop] reported by reviewdog 🐶
Favor modifier `if` usage when having a single-line body. Another good alternative is the usage of control flow `&&`/`||`.
Raw Output:
lib/something.rb:34:9: C: Style/IfUnlessModifier: Favor modifier `if` usage when having a single-line body. Another good alternative is the usage of control flow `&&`/`||`.
|
lint (2.7):
lib/something.rb#L34
[rubocop] reported by reviewdog 🐶
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Raw Output:
lib/something.rb:34:28: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
lint (2.7):
lib/something.rb#L40
[rubocop] reported by reviewdog 🐶
Redundant `return` detected.
Raw Output:
lib/something.rb:40:5: C: Style/RedundantReturn: Redundant `return` detected.
|
lint (2.7):
lib/something.rb#L48
[rubocop] reported by reviewdog 🐶
Unused method argument - `two`. If it's necessary, use `_` or `_two` as an argument name to indicate that it won't be used. If it's unnecessary, remove it.
Raw Output:
lib/something.rb:48:35: W: Lint/UnusedMethodArgument: Unused method argument - `two`. If it's necessary, use `_` or `_two` as an argument name to indicate that it won't be used. If it's unnecessary, remove it.
|
lint (2.7):
lib/something.rb#L48
[rubocop] reported by reviewdog 🐶
Unused method argument - `three`. If it's necessary, use `_` or `_three` as an argument name to indicate that it won't be used. If it's unnecessary, remove it.
Raw Output:
lib/something.rb:48:40: W: Lint/UnusedMethodArgument: Unused method argument - `three`. If it's necessary, use `_` or `_three` as an argument name to indicate that it won't be used. If it's unnecessary, remove it.
|
lint (2.7):
lib/something.rb#L49
[rubocop] reported by reviewdog 🐶
Use a guard clause (`return unless one == true`) instead of wrapping the code inside a conditional expression.
Raw Output:
lib/something.rb:49:5: C: Style/GuardClause: Use a guard clause (`return unless one == true`) instead of wrapping the code inside a conditional expression.
|
lint (2.7):
lib/something.rb#L50
[rubocop] reported by reviewdog 🐶
Prefer single-quoted strings when you don't need string interpolation or special symbols.
Raw Output:
lib/something.rb:50:12: C: Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.
|
lint (2.7):
lib/something.rb#L51
[rubocop] reported by reviewdog 🐶
Interpolation in single quoted string detected. Use double quoted strings if you need interpolation.
Raw Output:
lib/something.rb:51:12: W: Lint/InterpolationCheck: Interpolation in single quoted string detected. Use double quoted strings if you need interpolation.
|