Skip to content

Fixes #43

Fixes #43 #119

Triggered via push February 23, 2024 14:54
Status Failure
Total duration 44s
Artifacts

rubocop.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
test: app/controllers/articles_controller.rb#L1
Metrics/ClassLength: Class has too many lines. [331/288]
test: app/controllers/articles_controller.rb#L114
Style/HashEachMethods: Use `each_value` instead of `values.each`.
test: app/controllers/suppliers_controller.rb#L67
Style/OpenStructUse: Avoid using `OpenStruct`; use `Struct`, `Hash`, a class or test doubles instead.
test: app/documents/order_matrix.rb#L14
Metrics/AbcSize: Assignment Branch Condition size for body is too high. [<54, 133, 12> 144.0/143]
test: app/helpers/application_helper.rb#L3
Metrics/ModuleLength: Module has too many lines. [193/190]
test: app/helpers/group_order_articles_helper.rb#L3
Style/OptionalBooleanParameter: Prefer keyword arguments for arguments with a boolean default value; use `convert_to_billing_unit: true` instead of `convert_to_billing_unit = true`.
test: app/helpers/orders_helper.rb#L97
Lint/BinaryOperatorWithIdenticalOperands: Binary operator `==` has identical operands.
test: app/models/article.rb#L147
Lint/UselessAssignment: Useless assignment to variable - `new_unit_quantity`.
test: app/models/article_version.rb#L142
Style/MapToHash: Pass a block to `to_h` instead of calling `map.to_h`.
test: app/models/order.rb#L1
Metrics/ClassLength: Class has too many lines. [289/288]
test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/