Skip to content

Enhanced units display in dropdowns and order view #84

Enhanced units display in dropdowns and order view

Enhanced units display in dropdowns and order view #84

Triggered via push December 1, 2023 08:49
Status Failure
Total duration 41s
Artifacts

rubocop.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
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/orders_helper.rb#L96
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#L141
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: db_shared/schema.rb#L13
Style/NumericLiterals: Use underscores(_) as thousands separator and separate every 3 digits with them.
test: db_shared/schema.rb#L14
Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body beginning.
test: db_shared/schema.rb#L33
Style/WordArray: Use `%w` or `%W` for an array of words.
test: db_shared/schema.rb#L61
Layout/EmptyLinesAroundBlockBody: Extra empty line detected at block body end.
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/