Skip to content

[ELITERT-1198] Add action to run Ruby linters #26

[ELITERT-1198] Add action to run Ruby linters

[ELITERT-1198] Add action to run Ruby linters #26

Triggered via pull request October 31, 2024 16:47
Status Success
Total duration 57s
Artifacts

ruby-linters.yml

on: pull_request
Matrix: lint
Fit to window
Zoom out
Zoom in

Annotations

10 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#L38
[reek] reported by reviewdog 🐶 ControlParameter: My_Class#do_something_else_with is controlled by argument 'one' [https://github.com/troessner/reek/blob/v6.1.4/docs/Control-Parameter.md] Raw Output: lib/something.rb:38: ControlParameter: My_Class#do_something_else_with is controlled by argument 'one' [https://github.com/troessner/reek/blob/v6.1.4/docs/Control-Parameter.md]
lint (2.7): lib/something.rb#L1
[reek] reported by reviewdog 🐶 InstanceVariableAssumption: My_Class assumes too much for instance variable '@Valid' [https://github.com/troessner/reek/blob/v6.1.4/docs/Instance-Variable-Assumption.md] Raw Output: lib/something.rb:1: InstanceVariableAssumption: My_Class assumes too much for instance variable '@Valid' [https://github.com/troessner/reek/blob/v6.1.4/docs/Instance-Variable-Assumption.md]
lint (2.7): lib/something.rb#L1
[reek] reported by reviewdog 🐶 IrresponsibleModule: My_Class has no descriptive comment [https://github.com/troessner/reek/blob/v6.1.4/docs/Irresponsible-Module.md] Raw Output: lib/something.rb:1: IrresponsibleModule: My_Class has no descriptive comment [https://github.com/troessner/reek/blob/v6.1.4/docs/Irresponsible-Module.md]
lint (2.7): lib/something.rb#L2
[reek] reported by reviewdog 🐶 LongParameterList: My_Class#doSomething has 7 parameters [https://github.com/troessner/reek/blob/v6.1.4/docs/Long-Parameter-List.md] Raw Output: lib/something.rb:2: LongParameterList: My_Class#doSomething has 7 parameters [https://github.com/troessner/reek/blob/v6.1.4/docs/Long-Parameter-List.md]
lint (2.7): lib/something.rb#L2
[reek] reported by reviewdog 🐶 TooManyStatements: My_Class#doSomething has approx 13 statements [https://github.com/troessner/reek/blob/v6.1.4/docs/Too-Many-Statements.md] Raw Output: lib/something.rb:2: TooManyStatements: My_Class#doSomething has approx 13 statements [https://github.com/troessner/reek/blob/v6.1.4/docs/Too-Many-Statements.md]
lint (2.7): lib/something.rb#L2
[reek] reported by reviewdog 🐶 UncommunicativeMethodName: My_Class#doSomething has the name 'doSomething' [https://github.com/troessner/reek/blob/v6.1.4/docs/Uncommunicative-Method-Name.md] Raw Output: lib/something.rb:2: UncommunicativeMethodName: My_Class#doSomething has the name 'doSomething' [https://github.com/troessner/reek/blob/v6.1.4/docs/Uncommunicative-Method-Name.md]
lint (2.7): lib/something.rb#L20
[reek] reported by reviewdog 🐶 UncommunicativeVariableName: My_Class#doSomething has the variable name 'n' [https://github.com/troessner/reek/blob/v6.1.4/docs/Uncommunicative-Variable-Name.md] Raw Output: lib/something.rb:20: UncommunicativeVariableName: My_Class#doSomething has the variable name 'n' [https://github.com/troessner/reek/blob/v6.1.4/docs/Uncommunicative-Variable-Name.md]
lint (2.7): lib/something.rb#L16
[reek] reported by reviewdog 🐶 UncommunicativeVariableName: My_Class#doSomething has the variable name 'x' [https://github.com/troessner/reek/blob/v6.1.4/docs/Uncommunicative-Variable-Name.md] Raw Output: lib/something.rb:16: UncommunicativeVariableName: My_Class#doSomething has the variable name 'x' [https://github.com/troessner/reek/blob/v6.1.4/docs/Uncommunicative-Variable-Name.md]
lint (2.7): lib/something.rb#L1
[rubocop] reported by reviewdog 🐶 Missing top-level documentation comment for `class My_Class`. Raw Output: lib/something.rb:1:1: C: Style/Documentation: Missing top-level documentation comment for `class My_Class`.
lint (2.7): lib/something.rb#L1
[rubocop] reported by reviewdog 🐶 Missing frozen string literal comment. Raw Output: lib/something.rb:1:1: C: Style/FrozenStringLiteralComment: Missing frozen string literal comment.
lint (2.7): lib/something.rb#L1
[rubocop] reported by reviewdog 🐶 Use CamelCase for classes and modules. Raw Output: lib/something.rb:1:7: C: Naming/ClassAndModuleCamelCase: Use CamelCase for classes and modules.
lint (2.7): lib/something.rb#L2
[rubocop] reported by reviewdog 🐶 Assignment Branch Condition size for doSomething is too high. [<5, 22, 16> 27.66/17] Raw Output: lib/something.rb:2:3: C: Metrics/AbcSize: Assignment Branch Condition size for doSomething is too high. [<5, 22, 16> 27.66/17]
lint (2.7): lib/something.rb#L2
[rubocop] reported by reviewdog 🐶 Cyclomatic complexity for doSomething is too high. [16/7] Raw Output: lib/something.rb:2:3: C: Metrics/CyclomaticComplexity: Cyclomatic complexity for doSomething is too high. [16/7]
lint (2.7): lib/something.rb#L2
[rubocop] reported by reviewdog 🐶 Method has too many lines. [26/15] Raw Output: lib/something.rb:2:3: C: Metrics/MethodLength: Method has too many lines. [26/15]
lint (2.7): lib/something.rb#L2
[rubocop] reported by reviewdog 🐶 Perceived complexity for doSomething is too high. [14/8] Raw Output: lib/something.rb:2:3: C: Metrics/PerceivedComplexity: Perceived complexity for doSomething is too high. [14/8]
lint (2.7): lib/something.rb#L2
[rubocop] reported by reviewdog 🐶 Use snake_case for method names. Raw Output: lib/something.rb:2:7: C: Naming/MethodName: Use snake_case for method names.
lint (2.7): lib/something.rb#L2
[rubocop] reported by reviewdog 🐶 Avoid parameter lists longer than 5 parameters. [7/5] Raw Output: lib/something.rb:2:18: C: Metrics/ParameterLists: Avoid parameter lists longer than 5 parameters. [7/5]
lint (2.7): lib/something.rb#L7
[rubocop] reported by reviewdog 🐶 Useless assignment to variable - `e`. Raw Output: lib/something.rb:7:7: W: Lint/UselessAssignment: Useless assignment to variable - `e`.